public class GenericSecuredRepositoryItem extends SecuredRepositoryObject implements SecuredRepositoryItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
static AccessRight[] |
ITEM_RIGHTS
Set of access rights that apply to a generic secured repository item.
|
static java.util.Map |
ITEM_RIGHTS_MAP
Map of access rights for generic secured repository items.
|
protected SecurityPolicy |
mPolicy
The security policy that is applicable for this secured item.
|
protected atg.core.util.UnsyncCaseInsensitiveHashtable |
mPropertyObjects
A mapping of the property name to SecuredRepositoryObjects,
which control access to property security.
|
mDescriptor, mItem, mMutableItem, mRepositorymAcl, mOwner, mSecurityContext| Constructor and Description |
|---|
GenericSecuredRepositoryItem(GenericSecuredRepository pRepository,
RepositoryItem pItem)
Wraps a repository item with a secured repository item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkPropertyAccess(java.lang.String pPropertyName,
AccessRight pRight)
Checks to see if the current user has the indicated access right for
the specified property and, if not, throws a runtime security exception.
|
boolean |
equals(java.lang.Object o)
Two secured repository items are considered equal if they share the same
item descriptor and ID.
|
java.util.Collection<java.lang.String> |
getContextMemberships()
Repository items can be associated with arbitrary contexts.
|
RepositoryItemDescriptor |
getItemDescriptor()
Returns the RepositoryItemDescriptor property, which describes
the known properties for the item
|
java.lang.String |
getItemDisplayName()
The name of this item which can be used in a UI.
|
RepositoryItemDescriptor |
getOriginalItemDescriptor()
Returns the item descriptor that we're wrapping.
|
AccessControlList |
getPropertyAccessControlList(java.lang.String pPropertyName)
Returns the item-specific access control list for the indicated
property.
|
SecuredObject |
getPropertySecuredObject(java.lang.String pPropertyName)
Returns the secured object that controls this property.
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns the property of the given name
|
Repository |
getRepository()
Returns the Repository which contains this item
|
java.lang.String |
getRepositoryId()
Returns the unique id associated with this object in the
repository.
|
boolean |
hasAccess(AccessRight pRight)
Checks to see if the current user has the indicated access right.
|
int |
hashCode()
Returns the hash code for our repository id.
|
boolean |
hasPropertyAccess(java.lang.String pPropertyName,
AccessRight pRight)
Checks to see if the current user has the indicated access right for
the specified property.
|
boolean |
isRemoved()
Returns true if the wrapped item has been removed
|
boolean |
isTransient()
Returns true if this item has been created with createItem, but not
yet added to the repository with addItem.
|
java.lang.String |
toString() |
getRepositoryItem, getSecuredObjectDescriptor, invalidate, logError, logError, logError, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwnercheckAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, setSecurityContext, unsecuredGetSecuredContainers, unsecuredSetCreationSecurityclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwnerpublic static java.lang.String CLASS_VERSION
public static final AccessRight[] ITEM_RIGHTS
public static final java.util.Map ITEM_RIGHTS_MAP
protected SecurityPolicy mPolicy
protected atg.core.util.UnsyncCaseInsensitiveHashtable mPropertyObjects
public GenericSecuredRepositoryItem(GenericSecuredRepository pRepository, RepositoryItem pItem) throws RepositoryException
RepositoryExceptionpublic void checkPropertyAccess(java.lang.String pPropertyName,
AccessRight pRight)
public RepositoryItemDescriptor getOriginalItemDescriptor() throws RepositoryException
RepositoryExceptionpublic boolean isRemoved()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getItemDisplayName()
getItemDisplayName in interface DisplayableItempublic java.lang.String getRepositoryId()
getRepositoryId in interface RepositoryItempublic java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue in interface RepositoryItempublic Repository getRepository()
getRepository in interface RepositoryItempublic RepositoryItemDescriptor getItemDescriptor() throws RepositoryException
getItemDescriptor in interface RepositoryItemRepositoryExceptionpublic boolean isTransient()
isTransient in interface RepositoryItempublic AccessControlList getPropertyAccessControlList(java.lang.String pPropertyName) throws SecurityException
getPropertyAccessControlList in interface SecuredRepositoryItemSecurityExceptionSecuredRepositoryItemDescriptor.getPropertyAccessControlListpublic SecuredObject getPropertySecuredObject(java.lang.String pPropertyName) throws SecurityException
getPropertySecuredObject in interface SecuredRepositoryItemSecurityExceptionpublic boolean hasAccess(AccessRight pRight) throws SecurityException
hasAccess in interface SecuredRepositoryItemhasAccess in class GenericSecuredObjectSecurityExceptionImplementationSecurityExceptionpublic boolean hasPropertyAccess(java.lang.String pPropertyName,
AccessRight pRight)
throws SecurityException
hasPropertyAccess in interface SecuredRepositoryItemSecurityExceptionImplementationSecurityExceptionpublic java.util.Collection<java.lang.String> getContextMemberships()
throws RepositoryException
RepositoryItemgetContextMemberships in interface RepositoryItemRepositoryException