|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.security.GenericSecuredResourceService
public class GenericSecuredResourceService
A generic implementation of the SecuredResource interface as a service.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
GenericSecuredResourceService()
|
|
GenericSecuredResourceService(java.lang.String pName)
|
|
GenericSecuredResourceService(java.lang.String pName,
SecuredResource[] pChildren)
|
Method Summary | |
---|---|
void |
addAccessControlEntry(AccessControlEntry pNewAce)
Adds a new access control entry to this resource. |
void |
addChild(SecuredResource pNewChild)
|
AccessControlEntry[] |
getAccessControlList()
Returns the access control list associated with this resource. |
SecuredResource |
getChild(java.lang.String pName)
Returns the child resource with the given name. |
java.util.Enumeration |
getChildren()
Returns an enumeration of the resource's children, or null if there are no children. |
java.lang.String |
getName()
Returns the name of the resource. |
boolean |
hasAccess(User pUser,
AccessRight pDesiredAccess)
Returns true if the indicated user has the desired access to this resource. |
void |
removeAccessControlEntry(AccessControlEntry pOldAce)
Removes an access control entry from this resource. |
void |
removeChild(SecuredResource pOldChild)
|
void |
removeChild(java.lang.String pChildName)
|
void |
setAccessControlList(AccessControlEntry[] pNewAcl)
Changes access control list associated with this resource. |
void |
setName(java.lang.String pNewName)
|
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
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 GenericSecuredResourceService()
public GenericSecuredResourceService(java.lang.String pName)
public GenericSecuredResourceService(java.lang.String pName, SecuredResource[] pChildren)
Method Detail |
---|
public void addChild(SecuredResource pNewChild)
public void removeChild(SecuredResource pOldChild)
public void removeChild(java.lang.String pChildName)
public void setName(java.lang.String pNewName)
public java.lang.String getName()
getName
in interface NameContextElement
getName
in interface SecuredResource
getName
in class GenericService
public SecuredResource getChild(java.lang.String pName) throws PermissionDeniedException
PermissionDeniedException
public java.util.Enumeration getChildren() throws PermissionDeniedException
PermissionDeniedException
public AccessControlEntry[] getAccessControlList()
getAccessControlList
in interface SecuredResource
public void setAccessControlList(AccessControlEntry[] pNewAcl) throws PermissionDeniedException
setAccessControlList
in interface SecuredResource
PermissionDeniedException
public void addAccessControlEntry(AccessControlEntry pNewAce) throws PermissionDeniedException
addAccessControlEntry
in interface SecuredResource
PermissionDeniedException
public void removeAccessControlEntry(AccessControlEntry pOldAce) throws PermissionDeniedException
removeAccessControlEntry
in interface SecuredResource
PermissionDeniedException
public boolean hasAccess(User pUser, AccessRight pDesiredAccess)
hasAccess
in interface SecuredResource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |