public class GenericSecuredResourceService extends GenericService implements SecuredResource, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
GenericSecuredResourceService() |
GenericSecuredResourceService(java.lang.String pName) |
GenericSecuredResourceService(java.lang.String pName,
SecuredResource[] pChildren) |
| Modifier and Type | Method and Description |
|---|---|
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) |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic GenericSecuredResourceService()
public GenericSecuredResourceService(java.lang.String pName)
public GenericSecuredResourceService(java.lang.String pName,
SecuredResource[] pChildren)
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 NameContextElementgetName in interface SecuredResourcegetName in class GenericServicepublic SecuredResource getChild(java.lang.String pName) throws PermissionDeniedException
PermissionDeniedExceptionpublic java.util.Enumeration getChildren()
throws PermissionDeniedException
PermissionDeniedExceptionpublic AccessControlEntry[] getAccessControlList()
getAccessControlList in interface SecuredResourcepublic void setAccessControlList(AccessControlEntry[] pNewAcl) throws PermissionDeniedException
setAccessControlList in interface SecuredResourcePermissionDeniedExceptionpublic void addAccessControlEntry(AccessControlEntry pNewAce) throws PermissionDeniedException
addAccessControlEntry in interface SecuredResourcePermissionDeniedExceptionpublic void removeAccessControlEntry(AccessControlEntry pOldAce) throws PermissionDeniedException
removeAccessControlEntry in interface SecuredResourcePermissionDeniedExceptionpublic boolean hasAccess(User pUser, AccessRight pDesiredAccess)
hasAccess in interface SecuredResource