atg.rest.security
Class RestSecurityConfiguration

java.lang.Object
  extended by atg.security.GenericSecuredObject
      extended by atg.rest.security.RestSecurityConfiguration
All Implemented Interfaces:
SecuredObject, java.io.Serializable
Direct Known Subclasses:
ComponentSecurityConfiguration, MethodSecurityConfiguration, PropertySecurityConfiguration

public class RestSecurityConfiguration
extends GenericSecuredObject
implements java.io.Serializable

The base type for Rest secured objects.

See Also:
GenericSecuredObject, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.security.GenericSecuredObject
mAcl, mOwner, mSecurityContext
 
Constructor Summary
RestSecurityConfiguration(java.lang.String pName, java.lang.String pComponent, boolean pSecure, java.lang.String pAcl, SecurityConfiguration pSecurityConfiguration)
          Constructs an RestSecurityConfiguration
 
Method Summary
 java.lang.String getComponent()
           
 java.lang.String getName()
           
 SecurityConfiguration getSecurityConfiguration()
           
 boolean hasAccess(AccessRight pRight)
          Determines if the current user has the specified access right for this object.
 boolean hasAcl()
           
 boolean isSecure()
           
 void setAcl(java.lang.String pAcl)
          Set acl
 void setComponent(java.lang.String pComponent)
           
 void setName(java.lang.String pName)
           
 void setSecure(boolean pSecure)
           
 void setSecurityConfiguration(SecurityConfiguration pSecurityConfiguration)
           
 java.lang.String toString()
           
 
Methods inherited from class atg.security.GenericSecuredObject
checkAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, setSecurityContext, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredGetSecuredContainers, unsecuredSetAccessControlList, unsecuredSetCreationSecurity, unsecuredSetOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

RestSecurityConfiguration

public RestSecurityConfiguration(java.lang.String pName,
                                 java.lang.String pComponent,
                                 boolean pSecure,
                                 java.lang.String pAcl,
                                 SecurityConfiguration pSecurityConfiguration)
                          throws SecurityException
Constructs an RestSecurityConfiguration

Parameters:
pName - The name of the resource
pComponent - The component name
pSecure - Is secure?
pAcl - The acl
pSecurityConfiguration - The SecurityConfiguration
Throws:
SecurityException
Method Detail

setSecure

public void setSecure(boolean pSecure)
Parameters:
pSecure - The secure to set

isSecure

public boolean isSecure()
Returns:
the value of secure

setComponent

public void setComponent(java.lang.String pComponent)
Parameters:
pComponent - the component to set

getComponent

public java.lang.String getComponent()
Returns:
the value of component

setName

public void setName(java.lang.String pName)
Parameters:
pName - the name to set

getName

public java.lang.String getName()
Returns:
the value of name

setSecurityConfiguration

public void setSecurityConfiguration(SecurityConfiguration pSecurityConfiguration)
Parameters:
pSecurityConfiguration - new value to set

getSecurityConfiguration

public SecurityConfiguration getSecurityConfiguration()
Returns:
Returns the value of seurityConfiguration

setAcl

public void setAcl(java.lang.String pAcl)
            throws SecurityException
Set acl

Parameters:
pAcl - The acl to set
Throws:
SecurityException

hasAcl

public boolean hasAcl()
Returns:
true if Acl is defined

hasAccess

public boolean hasAccess(AccessRight pRight)
                  throws SecurityException
Description copied from class: GenericSecuredObject
Determines if the current user has the specified access right for this object.

Overrides:
hasAccess in class GenericSecuredObject
Throws:
SecurityException

toString

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