public interface SecurityDomain
Each security domain has a related user authority that determines which personae it is allowed to manage. Any personae that are not related to that user authority are simply ignored.
UserAuthority
,
Persona
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
void |
addAccessAllowedListener(DataListener listener)
Adds a listener for access allowed events.
|
void |
addAccessDeniedListener(DataListener listener)
Adds a listener for access denied events.
|
SecuredResource |
createResource(java.lang.Object object,
java.lang.Object resourceKey,
AccessControlEntry[] initialAcl)
Creates a new SecuredResource object, with the specified key,
for the specified object using the specified resource key.
|
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.
|
AccessRight[] |
getAccessRights()
Returns a list of all possible access rights in this domain.
|
SecuredResource |
getResource(java.lang.Object resourceKey)
Returns the resource with the given key, or null if it's not a
known resource.
|
java.lang.String |
getSecurityDomainDescription()
Returns the description of the security domain.
|
java.lang.String |
getSecurityDomainName()
Returns the name of the security domain.
|
UserAuthority |
getUserAuthority()
Returns the user authority for this domain.
|
boolean |
hasAccess(AccessRight desiredAccess,
java.lang.Object resourceKey)
Returns true if the current user has the indicated access right for the
indicated resource.
|
boolean |
hasAccess(User user,
AccessRight desiredAccess,
java.lang.Object resourceKey)
Checks the access permissions on a resource for the indicated
user.
|
boolean |
hasAccessRight(User pUser,
AccessRight pAccessRight)
Determines if the given user has the given access right
|
boolean |
hasAccessRight(User pUser,
AccessRight pAccessRight,
DirectoryPrincipal pTargetPrincipal)
Determines if the given user has the given access right within the given organization
|
void |
removeAccessAllowedListener(DataListener listener)
Removes a listener for access allowed events.
|
void |
removeAccessDeniedListener(DataListener listener)
Removes a listener for access denied events.
|
static final java.lang.String CLASS_VERSION
java.lang.String getSecurityDomainName()
java.lang.String getSecurityDomainDescription()
UserAuthority getUserAuthority()
AccessRight[] getAccessRights()
SecuredResource createResource(java.lang.Object object, java.lang.Object resourceKey, AccessControlEntry[] initialAcl) throws InvalidResourceException, InvalidAccessControlEntryException, PermissionDeniedException
SecuredResource createResourceAsUser(User pUser, java.lang.Object pObject, java.lang.Object pResourceKey, AccessControlEntry[] pInitialAcl) throws InvalidResourceException, InvalidAccessControlEntryException, PermissionDeniedException
SecuredResource getResource(java.lang.Object resourceKey) throws InvalidResourceException, PermissionDeniedException
boolean hasAccess(User user, AccessRight desiredAccess, java.lang.Object resourceKey) throws InvalidResourceException, InvalidAccessRightException
boolean hasAccess(AccessRight desiredAccess, java.lang.Object resourceKey) throws InvalidResourceException, InvalidAccessRightException
InvalidResourceException
InvalidAccessRightException
ThreadSecurityManager
boolean hasAccessRight(User pUser, AccessRight pAccessRight)
boolean hasAccessRight(User pUser, AccessRight pAccessRight, DirectoryPrincipal pTargetPrincipal)
void addAccessAllowedListener(DataListener listener)
void removeAccessAllowedListener(DataListener listener)
void addAccessDeniedListener(DataListener listener)
void removeAccessDeniedListener(DataListener listener)