|
|||||||||
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
public class SecuredRepositoryObject
Base class used to build secured repository components. This manages the persistence and caching of security information for an object.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected atg.adapter.secure.SecuredRepositoryObjectDescriptor |
mDescriptor
The secured object descriptor that this item is configured with. |
protected RepositoryItem |
mItem
The repository item that manages the backing store for this object. |
protected MutableRepositoryItem |
mMutableItem
The mutable version of the repository item that manages the backing store for this object, or null if the item is immutable. |
protected GenericSecuredRepository |
mRepository
The secured repository that we're a part of. |
Fields inherited from class atg.security.GenericSecuredObject |
---|
mAcl, mOwner, mSecurityContext |
Constructor Summary | |
---|---|
SecuredRepositoryObject(GenericSecuredRepository pRepository,
atg.adapter.secure.SecuredRepositoryObjectDescriptor pDescriptor,
RepositoryItem pItem)
Creates a new repository-backed secured object. |
Method Summary | |
---|---|
RepositoryItem |
getRepositoryItem()
Returns the repository item that this object refers to. |
atg.adapter.secure.SecuredRepositoryObjectDescriptor |
getSecuredObjectDescriptor()
Returns the descriptor for the secured object. |
void |
invalidate()
Invalidates the cache of owner and access control information. |
void |
logError(java.lang.String message)
Logs an error message. |
void |
logError(java.lang.String message,
java.lang.Throwable t)
Logs an error message with an accompanying exception. |
void |
logError(java.lang.Throwable t)
Logs an exception. |
boolean |
supportsAccessControlList()
Returns true if this object supports an access control list. |
boolean |
supportsOwner()
Returns true if this object supports an owner. |
AccessControlList |
unsecuredGetAccessControlList()
Retrieves the access control list associated with this object without performing access control. |
SecuredContainer[] |
unsecuredGetContainers()
Returns the set of containers (parents) that contain or may contain access control information that should be effective when this object is being manipulated. |
Persona |
unsecuredGetOwner()
Retrieves the owner of this object without performing access control. |
void |
unsecuredSetAccessControlList(AccessControlList acl)
Changes the access control list associated with this object without performing access control. |
void |
unsecuredSetOwner(Persona pOwner)
Changes the owner of this object without performing access control. |
Methods inherited from class atg.security.GenericSecuredObject |
---|
checkAccess, checkRuntimeAccess, getAccessControlList, getOwner, getSecurityContext, hasAccess, setAccessControlList, setOwner, setSecurityContext, unsecuredGetSecuredContainers, unsecuredSetCreationSecurity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected GenericSecuredRepository mRepository
protected atg.adapter.secure.SecuredRepositoryObjectDescriptor mDescriptor
protected RepositoryItem mItem
protected MutableRepositoryItem mMutableItem
Constructor Detail |
---|
public SecuredRepositoryObject(GenericSecuredRepository pRepository, atg.adapter.secure.SecuredRepositoryObjectDescriptor pDescriptor, RepositoryItem pItem)
Method Detail |
---|
public RepositoryItem getRepositoryItem()
public atg.adapter.secure.SecuredRepositoryObjectDescriptor getSecuredObjectDescriptor()
public void invalidate()
public void logError(java.lang.String message)
public void logError(java.lang.String message, java.lang.Throwable t)
public void logError(java.lang.Throwable t)
public boolean supportsAccessControlList()
supportsAccessControlList
in interface SecuredObject
supportsAccessControlList
in class GenericSecuredObject
public boolean supportsOwner()
supportsOwner
in interface SecuredObject
supportsOwner
in class GenericSecuredObject
public AccessControlList unsecuredGetAccessControlList() throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications.
unsecuredGetAccessControlList
in interface SecuredObject
unsecuredGetAccessControlList
in class GenericSecuredObject
SecurityException
public void unsecuredSetAccessControlList(AccessControlList acl) throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications.
unsecuredSetAccessControlList
in interface SecuredObject
unsecuredSetAccessControlList
in class GenericSecuredObject
SecurityException
public Persona unsecuredGetOwner() throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications.
unsecuredGetOwner
in interface SecuredObject
unsecuredGetOwner
in class GenericSecuredObject
SecurityException
public void unsecuredSetOwner(Persona pOwner) throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications.
unsecuredSetOwner
in interface SecuredObject
unsecuredSetOwner
in class GenericSecuredObject
SecurityException
public SecuredContainer[] unsecuredGetContainers() throws SecurityException
This is considered to be a private API for the security policy and domain objects and should not be used by applications. In this implementation the container is considered to be the object descriptor.
unsecuredGetContainers
in interface SecuredObject
unsecuredGetContainers
in class GenericSecuredObject
SecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |