|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.GenericSecurityDomain atg.servlet.security.PathSecurityDomain
public class PathSecurityDomain
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class Version String |
Constructor Summary | |
---|---|
PathSecurityDomain()
|
Method Summary | |
---|---|
SecuredResource |
createResourceAsUser(User pUser,
java.lang.Object pObject,
java.lang.Object pResourceKey,
AccessControlEntry[] pInitialAcl)
Creates a new SecuredResource object, with the specified key, for the specified object using the specified resource key, using the specified user ID. |
boolean |
getCacheResults()
Do we cache results when looking up SecuredResources? |
java.lang.String[] |
getKeys()
Returns List of keys sorted by length |
SecuredResource |
getResource(java.lang.Object pResourceKey)
Returns the resource with the given key, or null if it's not a known resource. |
java.util.Enumeration |
getResources()
Returns an enumeration of SecuredResource objects that are managed by the security domain. |
ServiceMap |
getSecuredResources()
Returns A list of resources protected by this SecurityDomain |
boolean |
hasAccess(User pUser,
AccessRight pDesiredAccess,
java.lang.Object pResourceKey)
Checks the access permissions on a resource for the indicated user. |
boolean |
isEnabled()
Returns Is this servlet enabled inside of the pipline? |
void |
setCacheResults(boolean pCacheResults)
Sets whether to cache results when looking up SecuredResources. |
void |
setEnabled(boolean pEnabled)
Sets Is this servlet enabled inside of the pipline? |
void |
setSecuredResources(ServiceMap pSecuredResources)
Sets A list of resources protected by this SecurityDomain |
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
Constructor Detail |
---|
public PathSecurityDomain()
Method Detail |
---|
public boolean getCacheResults()
public void setCacheResults(boolean pCacheResults)
public java.lang.String[] getKeys()
public void setEnabled(boolean pEnabled)
public boolean isEnabled()
public void setSecuredResources(ServiceMap pSecuredResources)
public ServiceMap getSecuredResources()
public SecuredResource getResource(java.lang.Object pResourceKey) throws InvalidResourceException, PermissionDeniedException
InvalidResourceException
PermissionDeniedException
public java.util.Enumeration getResources() throws PermissionDeniedException
PermissionDeniedException
public boolean hasAccess(User pUser, AccessRight pDesiredAccess, java.lang.Object pResourceKey) throws InvalidResourceException, InvalidAccessRightException
hasAccess
in interface SecurityDomain
hasAccess
in class GenericSecurityDomain
user
- The user attempting access.desiredAccess
- The access that is desired.resourceKey
- The key used to look up the resource to access.
InvalidResourceException
InvalidAccessRightException
public SecuredResource createResourceAsUser(User pUser, java.lang.Object pObject, java.lang.Object pResourceKey, AccessControlEntry[] pInitialAcl) throws InvalidResourceException, InvalidAccessControlEntryException, PermissionDeniedException
pUser
- The user security object.pObject
- The object to be assigned a SecuredResource object.pResourceKey
- The key to use for the SecuredResource object.pInitialAcl
- The access control list to assign to the
SecuredResource object on creation. If null, the
security domain will use a reasonable default.
InvalidResourceException
InvalidAccessControlEntryException
PermissionDeniedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |