atg.repository
Interface SecuredRepositoryItem

All Superinterfaces:
DisplayableItem, RepositoryItem, SecuredObject
All Known Subinterfaces:
SecuredMutableRepositoryItem
All Known Implementing Classes:
GenericSecuredMutableContentItem, GenericSecuredMutableFolderItem, GenericSecuredMutableRepositoryItem, GenericSecuredRepositoryItem

public interface SecuredRepositoryItem
extends RepositoryItem, SecuredObject

A repository item that has security features.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Method Summary
 AccessControlList getPropertyAccessControlList(java.lang.String propertyName)
          Returns the item-specific access control list for the indicated property.
 SecuredObject getPropertySecuredObject(java.lang.String propertyName)
          Returns the secured object that controls this property.
 boolean hasAccess(AccessRight right)
          Checks to see if the current user has the indicated access right.
 boolean hasPropertyAccess(java.lang.String propertyName, AccessRight right)
          Checks to see if the current user has the indicated access right for the specified property.
 
Methods inherited from interface atg.repository.RepositoryItem
getItemDescriptor, getPropertyValue, getRepository, getRepositoryId, isTransient
 
Methods inherited from interface atg.repository.DisplayableItem
getItemDisplayName
 
Methods inherited from interface atg.security.SecuredObject
getAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner
 

Field Detail

CLASS_VERSION

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

getPropertyAccessControlList

AccessControlList getPropertyAccessControlList(java.lang.String propertyName)
                                               throws SecurityException
Returns the item-specific access control list for the indicated property. Note that there may also be an item-descriptor-wide access control list.

Throws:
SecurityException
See Also:
SecuredRepositoryItemDescriptor.getPropertyAccessControlList

getPropertySecuredObject

SecuredObject getPropertySecuredObject(java.lang.String propertyName)
                                       throws SecurityException
Returns the secured object that controls this property. This is useful if you need to do your own access checks against the property.

Throws:
SecurityException

hasAccess

boolean hasAccess(AccessRight right)
                  throws SecurityException
Checks to see if the current user has the indicated access right. This method may be called by anyone; a security exception thrown from here is most likely to be an ImplementationSecurityException indicating a failure in the underlying persistence mechanism.

Throws:
SecurityException
See Also:
ImplementationSecurityException

hasPropertyAccess

boolean hasPropertyAccess(java.lang.String propertyName,
                          AccessRight right)
                          throws SecurityException
Checks to see if the current user has the indicated access right for the specified property. This method may be called by anyone; a security exception thrown from here is most likely to be an ImplementationSecurityException indicating a failure in the underlying persistence mechanism.

Throws:
SecurityException
See Also:
ImplementationSecurityException