com.bea.dsp.management.beans
Class AdminDefinedSecureResourceConfig

java.lang.Object
  extended by com.bea.dsp.management.beans.AdminDefinedSecureResourceConfig
All Implemented Interfaces:
Validatable, java.io.Serializable

public final class AdminDefinedSecureResourceConfig
extends java.lang.Object
implements java.io.Serializable, Validatable

Security configuration defined for a schema element (or attribute).

See Also:
Serialized Form

Constructor Summary
AdminDefinedSecureResourceConfig(java.lang.String xpath)
           
 
Method Summary
 java.util.List<javax.xml.namespace.QName> getDataDrivenSecurityQuery()
          Returns a list of all the security xquery references to be used to control access to this element.
 java.lang.String getDefaultValue()
          Returns the default value to be used in place of the actual value if the element access is denied.
 java.lang.String getXpath()
          Returns the unique xpath for the element in the return type.
 boolean isUsesTag()
          Returns true if the element must be present in the return value.
 void setDataDrivenSecurityQuery(java.util.List<javax.xml.namespace.QName> dataDrivenSecurityQuery)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setUsesTag(boolean usesTag)
           
 java.lang.String toString()
           
 void validate()
          Validates bean specific attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdminDefinedSecureResourceConfig

public AdminDefinedSecureResourceConfig(java.lang.String xpath)
Method Detail

getXpath

public java.lang.String getXpath()
Returns the unique xpath for the element in the return type.

Returns:
the unique xpath for the element in the return type

getDataDrivenSecurityQuery

public java.util.List<javax.xml.namespace.QName> getDataDrivenSecurityQuery()
Returns a list of all the security xquery references to be used to control access to this element. This xquery functions are defined at the dataspace level in AccessControlConfig. This list will never be null.

Returns:
a list of all the security xquery references to be used to control access to this element
See Also:
AccessControlConfig.getDataDrivenSecurityQueries()

setDataDrivenSecurityQuery

public void setDataDrivenSecurityQuery(java.util.List<javax.xml.namespace.QName> dataDrivenSecurityQuery)

getDefaultValue

public java.lang.String getDefaultValue()
Returns the default value to be used in place of the actual value if the element access is denied. This is used only when uses tag is true.

Returns:
the default value to be used in place of the actual value if the element access is denied

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

isUsesTag

public boolean isUsesTag()
Returns true if the element must be present in the return value. If the access is denied then the default value must be used. When an element is mandatory this has to be true. Even if the element is not mandatory an administrator can set this to true.

Returns:
true if the element must be present in the return value

setUsesTag

public void setUsesTag(boolean usesTag)

validate

public void validate()
              throws ValidationException
Description copied from interface: Validatable
Validates bean specific attributes.

Specified by:
validate in interface Validatable
Throws:
ValidationException - if the validation fails.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 BEA Systems Inc. All Rights Reserved.