|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.GenericSecuredObject atg.adapter.secure.SecuredRepositoryObject atg.adapter.secure.GenericSecuredRepositoryItem
public class GenericSecuredRepositoryItem
A class which wraps a repository item to add security features.
Field Summary | |
---|---|
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. |
Fields inherited from class atg.adapter.secure.SecuredRepositoryObject |
---|
mDescriptor, mItem, mMutableItem, mRepository |
Fields inherited from class atg.security.GenericSecuredObject |
---|
mAcl, mOwner, mSecurityContext |
Constructor Summary | |
---|---|
GenericSecuredRepositoryItem(GenericSecuredRepository pRepository,
RepositoryItem pItem)
Wraps a repository item with a secured repository item. |
Method Summary | |
---|---|
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()
Get the contexts this item is a member of. |
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. |
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, setAccessControlList, setOwner, setSecurityContext, unsecuredGetSecuredContainers, unsecuredSetCreationSecurity |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.security.SecuredObject |
---|
getAccessControlList, getOwner, getSecurityContext, setAccessControlList, setOwner, supportsAccessControlList, supportsOwner, unsecuredGetAccessControlList, unsecuredGetContainers, unsecuredGetOwner, unsecuredSetAccessControlList, unsecuredSetOwner |
Field Detail |
---|
public 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
Constructor Detail |
---|
public GenericSecuredRepositoryItem(GenericSecuredRepository pRepository, RepositoryItem pItem) throws RepositoryException
RepositoryException
Method Detail |
---|
public void checkPropertyAccess(java.lang.String pPropertyName, AccessRight pRight)
public RepositoryItemDescriptor getOriginalItemDescriptor() throws RepositoryException
RepositoryException
public boolean isRemoved()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getItemDisplayName()
getItemDisplayName
in interface DisplayableItem
public java.lang.String getRepositoryId()
getRepositoryId
in interface RepositoryItem
public java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue
in interface RepositoryItem
public Repository getRepository()
getRepository
in interface RepositoryItem
public RepositoryItemDescriptor getItemDescriptor() throws RepositoryException
getItemDescriptor
in interface RepositoryItem
RepositoryException
public boolean isTransient()
isTransient
in interface RepositoryItem
public AccessControlList getPropertyAccessControlList(java.lang.String pPropertyName) throws SecurityException
getPropertyAccessControlList
in interface SecuredRepositoryItem
SecurityException
SecuredRepositoryItemDescriptor.getPropertyAccessControlList
public SecuredObject getPropertySecuredObject(java.lang.String pPropertyName) throws SecurityException
getPropertySecuredObject
in interface SecuredRepositoryItem
SecurityException
public boolean hasAccess(AccessRight pRight) throws SecurityException
hasAccess
in interface SecuredRepositoryItem
hasAccess
in class GenericSecuredObject
SecurityException
ImplementationSecurityException
public boolean hasPropertyAccess(java.lang.String pPropertyName, AccessRight pRight) throws SecurityException
hasPropertyAccess
in interface SecuredRepositoryItem
SecurityException
ImplementationSecurityException
public java.util.Collection<java.lang.String> getContextMemberships() throws RepositoryException
RepositoryItem
getContextMemberships
in interface RepositoryItem
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |