atg.adapter.secure
Class GenericSecuredMutableRepositoryItem

java.lang.Object
  extended by atg.security.GenericSecuredObject
      extended by atg.adapter.secure.SecuredRepositoryObject
          extended by atg.adapter.secure.GenericSecuredRepositoryItem
              extended by atg.adapter.secure.GenericSecuredMutableRepositoryItem
All Implemented Interfaces:
DisplayableItem, MutableRepositoryItem, RepositoryItem, SecuredMutableRepositoryItem, SecuredRepositoryItem, SecuredObject
Direct Known Subclasses:
GenericSecuredMutableContentItem, GenericSecuredMutableFolderItem

public class GenericSecuredMutableRepositoryItem
extends GenericSecuredRepositoryItem
implements SecuredMutableRepositoryItem

A class which wraps a repository item to add security features.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.adapter.secure.GenericSecuredRepositoryItem
ITEM_RIGHTS, ITEM_RIGHTS_MAP, mPolicy, mPropertyObjects
 
Fields inherited from class atg.adapter.secure.SecuredRepositoryObject
mDescriptor, mItem, mMutableItem, mRepository
 
Fields inherited from class atg.security.GenericSecuredObject
mAcl, mOwner, mSecurityContext
 
Constructor Summary
GenericSecuredMutableRepositoryItem(GenericSecuredMutableRepository pRepository, MutableRepositoryItem pItem)
          Wraps a repository item with a secured repository item.
 
Method Summary
 RepositoryItemDescriptor getOriginalItemDescriptor()
          Returns the item descriptor that we're wrapping.
 void setAccessControlList(AccessControlList pNewAcl)
          Changes the access control list associated with this object.
 void setOwner(Persona pNewOwner)
          Changes the owner of the object, if any.
 void setPropertyAccessControlList(java.lang.String pPropertyName, AccessControlList pNewAcl)
          Changes the item-specific access control list for the indicated property.
 void setPropertyValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue)
          Sets the property of the given name with the supplied object
 void unsecuredSetCreationSecurity()
          Sets the object's security to the creation defaults, also invokes this method on all SecuredRepositoryProperty objects for this item.
 
Methods inherited from class atg.adapter.secure.GenericSecuredRepositoryItem
checkPropertyAccess, equals, getContextMemberships, getItemDescriptor, getItemDisplayName, getPropertyAccessControlList, getPropertySecuredObject, getPropertyValue, getRepository, getRepositoryId, hasAccess, hashCode, hasPropertyAccess, isRemoved, isTransient
 
Methods inherited from class atg.adapter.secure.SecuredRepositoryObject
getRepositoryItem, getSecuredObjectDescriptor, invalidate, logError, logError, logError, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner
 
Methods inherited from class atg.security.GenericSecuredObject
checkAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, setSecurityContext, unsecuredGetSecuredContainers
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface atg.repository.SecuredRepositoryItem
getPropertyAccessControlList, getPropertySecuredObject, hasAccess, hasPropertyAccess
 
Methods inherited from interface atg.security.SecuredObject
getAccessControlList, getOwner, getSecurityContext, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner
 
Methods inherited from interface atg.repository.RepositoryItem
getContextMemberships, getItemDescriptor, getPropertyValue, getRepository, getRepositoryId, isTransient
 
Methods inherited from interface atg.repository.DisplayableItem
getItemDisplayName
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

GenericSecuredMutableRepositoryItem

public GenericSecuredMutableRepositoryItem(GenericSecuredMutableRepository pRepository,
                                           MutableRepositoryItem pItem)
                                    throws RepositoryException
Wraps a repository item with a secured repository item.

Throws:
RepositoryException
Method Detail

getOriginalItemDescriptor

public RepositoryItemDescriptor getOriginalItemDescriptor()
                                                   throws RepositoryException
Returns the item descriptor that we're wrapping.

Overrides:
getOriginalItemDescriptor in class GenericSecuredRepositoryItem
Throws:
RepositoryException

setPropertyValue

public void setPropertyValue(java.lang.String pPropertyName,
                             java.lang.Object pPropertyValue)
Sets the property of the given name with the supplied object

Specified by:
setPropertyValue in interface MutableRepositoryItem

setAccessControlList

public void setAccessControlList(AccessControlList pNewAcl)
                          throws SecurityException
Changes the access control list associated with this object. In a non-mutable repository item this always fails.

Specified by:
setAccessControlList in interface SecuredObject
Overrides:
setAccessControlList in class GenericSecuredObject
Throws:
SecurityException

setOwner

public void setOwner(Persona pNewOwner)
              throws SecurityException
Changes the owner of the object, if any. In a non-mutable repository this always fails.

Specified by:
setOwner in interface SecuredObject
Overrides:
setOwner in class GenericSecuredObject
Throws:
SecurityException

setPropertyAccessControlList

public void setPropertyAccessControlList(java.lang.String pPropertyName,
                                         AccessControlList pNewAcl)
                                  throws SecurityException
Changes the item-specific access control list for the indicated property. Note that there may also be an item-descriptor-wide access control list.

Specified by:
setPropertyAccessControlList in interface SecuredMutableRepositoryItem
Throws:
SecurityException
See Also:
SecuredRepositoryItemDescriptor.setPropertyAccessControlList(java.lang.String, atg.security.AccessControlList)

unsecuredSetCreationSecurity

public void unsecuredSetCreationSecurity()
                                  throws SecurityException
Sets the object's security to the creation defaults, also invokes this method on all SecuredRepositoryProperty objects for this item. This initializes secured property support. This is considered to be a private API for the domain object and should not be used by applications.

Overrides:
unsecuredSetCreationSecurity in class GenericSecuredObject
Throws:
SecurityException