atg.security
Class GenericSecuredResource

java.lang.Object
  extended by atg.security.GenericSecuredResource
All Implemented Interfaces:
SecuredResource, java.io.Serializable

public class GenericSecuredResource
extends java.lang.Object
implements SecuredResource, java.io.Serializable

A generic implementation of the SecuredResource interface.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
GenericSecuredResource(java.lang.String pName)
           
 
Method Summary
 void addAccessControlEntry(AccessControlEntry pNewAce)
          Adds a new access control entry to this resource.
 AccessControlEntry[] getAccessControlList()
          Returns the access control list associated with this resource.
 java.lang.String getName()
          Returns the name of the resource.
 boolean hasAccess(User pUser, AccessRight pDesiredAccess)
          Returns true if the indicated user has the desired access to this resource.
 void removeAccessControlEntry(AccessControlEntry pOldAce)
          Removes an access control entry from this resource.
 void setAccessControlList(AccessControlEntry[] pNewAcl)
          Changes access control list associated with this resource.
 void setName(java.lang.String pNewName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

GenericSecuredResource

public GenericSecuredResource(java.lang.String pName)
Method Detail

setName

public void setName(java.lang.String pNewName)

getName

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

Specified by:
getName in interface SecuredResource

getAccessControlList

public AccessControlEntry[] getAccessControlList()
Returns the access control list associated with this resource.

Specified by:
getAccessControlList in interface SecuredResource

setAccessControlList

public void setAccessControlList(AccessControlEntry[] pNewAcl)
                          throws PermissionDeniedException
Changes access control list associated with this resource.

Specified by:
setAccessControlList in interface SecuredResource
Throws:
PermissionDeniedException

addAccessControlEntry

public void addAccessControlEntry(AccessControlEntry pNewAce)
                           throws PermissionDeniedException
Adds a new access control entry to this resource.

Specified by:
addAccessControlEntry in interface SecuredResource
Throws:
PermissionDeniedException

removeAccessControlEntry

public void removeAccessControlEntry(AccessControlEntry pOldAce)
                              throws PermissionDeniedException
Removes an access control entry from this resource.

Specified by:
removeAccessControlEntry in interface SecuredResource
Throws:
PermissionDeniedException

hasAccess

public boolean hasAccess(User pUser,
                         AccessRight pDesiredAccess)
Returns true if the indicated user has the desired access to this resource.

Specified by:
hasAccess in interface SecuredResource