atg.security
Interface SecuredResource

All Known Implementing Classes:
GenericSecuredResource, GenericSecuredResourceService, SecuredPathAccessController

public interface SecuredResource

An interface used to work with a resource that has associated access control entries.

See Also:
SecurityDomain

Field Summary
static java.lang.String CLASS_VERSION
           
 
Method Summary
 void addAccessControlEntry(AccessControlEntry newAccessControlEntry)
          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 oldAccessControlEntry)
          Removes an access control entry from this resource.
 void setAccessControlList(AccessControlEntry[] newAccessControlList)
          Changes the access control list associated with this resource.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Method Detail

getName

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


getAccessControlList

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

Throws:
PermissionDeniedException

setAccessControlList

void setAccessControlList(AccessControlEntry[] newAccessControlList)
                          throws InvalidAccessControlEntryException,
                                 PermissionDeniedException
Changes the access control list associated with this resource.

Throws:
InvalidAccessControlEntryException
PermissionDeniedException

addAccessControlEntry

void addAccessControlEntry(AccessControlEntry newAccessControlEntry)
                           throws InvalidAccessControlEntryException,
                                  PermissionDeniedException
Adds a new access control entry to this resource.

Throws:
InvalidAccessControlEntryException
PermissionDeniedException

removeAccessControlEntry

void removeAccessControlEntry(AccessControlEntry oldAccessControlEntry)
                              throws InvalidAccessControlEntryException,
                                     PermissionDeniedException
Removes an access control entry from this resource.

Throws:
InvalidAccessControlEntryException
PermissionDeniedException

hasAccess

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