public interface AccessControlContext
authenticated
,
that is, security credentials have been associated with this session
authenticate
methods
impersonated
.
authenticate
will fail.Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_DOMAIN |
static String |
SYSTEM_RESOURCE_CLASS |
Modifier and Type | Method and Description |
---|---|
void |
assertGlobalResourcePermission(String resourceClassName,
ResourcePermission resourcePermission)
Checks if the current session resource has the specified global resource permission on
the specified resource class in the session resource's domain.
|
void |
assertGlobalResourcePermission(String resourceClassName,
ResourcePermission resourcePermission,
String domainName)
Checks if the current session resource has the specified global resource permission on
the specified resource class in the specified domain.
|
void |
assertPostCreateResourcePermission(String resourceClassName,
ResourcePermission resourcePermission)
Checks if the current session resource would receive the specified permission on an object of
the specified class in the session resource's domain, if were to create such an object.
|
void |
assertPostCreateResourcePermission(String resourceClassName,
ResourcePermission resourcePermission,
String domainName)
Checks if the current session resource would receive the specified permission on an object of
the specified class in the specified domain, if were to create such an object.
|
void |
assertResourcePermission(Resource accessedResource,
ResourcePermission resourcePermission)
Checks if the current session resource has the specified resource permission to
the specified accessed resource.
|
void |
assertResourcePermission(Resource accessorResource,
Resource accessedResource,
ResourcePermission resourcePermission)
Checks if the specified accessor resource has the specified resource permission
to the specified accessed resource.
|
void |
authenticate(Resource resource)
Authenticates this security session against an
AuthenticationProvider without
specifying authentication credentials, if that AuthenticationProvider supports such an operation. |
void |
authenticate(Resource resource,
Credentials credentials)
Authenticates this security session.
|
void |
createDomain(String domainName)
Creates a new domain (at the root level of the domain hierarchy).
|
void |
createDomain(String domainName,
String parentDomainName)
Creates a new domain under the specified parent domain.
|
Resource |
createResource(String resourceClassName)
Creates a new resource class in the same domain as this session resource.
|
Resource |
createResource(String resourceClassName,
Credentials credentials)
Creates a new authenticatable resource in the same domain as the session resource.
|
Resource |
createResource(String resourceClassName,
String domainName)
Creates a new resource class within the specified domain.
|
Resource |
createResource(String resourceClassName,
String domainName,
Credentials credentials)
Creates a new authenticatable resource within the specified domain.
|
void |
createResourceClass(String resourceClassName,
boolean authenticatable,
boolean unuthenticatedCreateAllowed)
Creates a new resource class.
|
void |
createResourcePermission(String resourceClassName,
String permissionName)
Creates a new resource permission that may be applied to objects of the specified resource class.
|
Set<Resource> |
getAccessorResourcesByResourcePermission(Resource accessedResource,
String resourceClassName,
ResourcePermission resourcePermission)
Returns a set of resources that have the specified permission to the specified accessed resource.
|
Resource |
getAuthenticatedResource()
Returns the resource that is currently authenticated in this session.
|
Set<DomainCreatePermission> |
getDomainCreatePermissions(Resource accessorResource)
Gets all direct domain create permissions the specified accessor resource has.
|
Set<String> |
getDomainDescendants(String domainName)
Returns the domains which are descendants of the specified domain.
|
String |
getDomainNameByResource(Resource resource)
Returns the domain to which the specified resource belongs.
|
Set<DomainPermission> |
getDomainPermissions(Resource accessorResource,
String domainName)
Gets all domain permissions the accessor resource has directly to the specified domain.
|
Map<String,Set<DomainPermission>> |
getDomainPermissionsMap(Resource accessorResource)
Gets all domain permissions the accessor resource has directly to any domain, mapped by domain name.
|
Set<DomainCreatePermission> |
getEffectiveDomainCreatePermissions(Resource accessorResource)
Gets all effective domain create permissions the specified accessor resource has, both directly
and inherited (from other resources).
|
Set<DomainPermission> |
getEffectiveDomainPermissions(Resource accessorResource,
String domainName)
Gets all effective domain permissions the accessor resource has to the specified domain.
|
Map<String,Set<DomainPermission>> |
getEffectiveDomainPermissionsMap(Resource accessorResource)
Gets all effective domain permissions the accessor resource has to any domain, mapped by domain name.
|
Set<ResourcePermission> |
getEffectiveGlobalResourcePermissions(Resource accessorResource,
String resourceClassName)
Gets the effective global resource permissions the specified accessor resource has to the resources of
the specified resource class in the current session resource's domain.
|
Set<ResourcePermission> |
getEffectiveGlobalResourcePermissions(Resource accessorResource,
String resourceClassName,
String domainName)
Gets the effective global resource permissions the specified accessor resource has to the resources of
the specified resource class in the specified domain.
|
Map<String,Map<String,Set<ResourcePermission>>> |
getEffectiveGlobalResourcePermissionsMap(Resource accessorResource)
Gets all effective global resource permissions the specified accessor resource has to the resources of
the any resource class in any domain, mapped by domain name and resource class name.
|
Set<ResourceCreatePermission> |
getEffectiveResourceCreatePermissions(Resource accessorResource,
String resourceClassName)
Gets all effective resource create permissions the accessor resource has to the specified
resource class in the the current session resource's domain (which effectively define
the resource permissions the accessor resource will receive directly, if it created
a resource of the specified resource class in the current session resource's domain).
|
Set<ResourceCreatePermission> |
getEffectiveResourceCreatePermissions(Resource accessorResource,
String resourceClassName,
String domainName)
Gets all effective resource create permissions the accessor resource has to the specified
resource class in the specified domain (which effectively define the resource permissions
the accessor resource will receive directly, if it created a resource of the specified
resource class in the specified domain).
|
Map<String,Map<String,Set<ResourceCreatePermission>>> |
getEffectiveResourceCreatePermissionsMap(Resource accessorResource)
Gets all effective resource create permissions the accessor resource has to any resource class in
any domain, mapped by domain name and resource class name.
|
Set<ResourcePermission> |
getEffectiveResourcePermissions(Resource accessorResource,
Resource accessedResource)
Gets the effective resource permissions that the specified accessor resource has to the
specified accessed resource.
|
Set<ResourcePermission> |
getGlobalResourcePermissions(Resource accessorResource,
String resourceClassName)
Gets the global resource permissions the specified accessor resource has directly to the resources of
the specified resource class in the current session resource's domain.
|
Set<ResourcePermission> |
getGlobalResourcePermissions(Resource accessorResource,
String resourceClassName,
String domainName)
Gets the global resource permissions the specified accessor resource has directly to the resources of
the specified resource class in the specified domain.
|
Map<String,Map<String,Set<ResourcePermission>>> |
getGlobalResourcePermissionsMap(Resource accessorResource)
Gets all global resource permissions the specified accessor resource has directly to any resources
of any resource class in any domain, mapped by domain name and resource class name.
|
ResourceClassInfo |
getResourceClassInfo(String resourceClassName)
Returns information about the specified resource class.
|
ResourceClassInfo |
getResourceClassInfoByResource(Resource resource)
Returns information about the resource class to which the specified resource belongs.
|
List<String> |
getResourceClassNames()
Returns the list of names of all resource classes defined in the system
|
Set<ResourceCreatePermission> |
getResourceCreatePermissions(Resource accessorResource,
String resourceClassName)
Gets all direct resource create permissions the accessor resource has to the specified
resource class in the the current session resource's domain (which define a subset of
the resource permissions the accessor resource would receive directly, if it created a
resource of the specified resource class in the current session resource's domain).
|
Set<ResourceCreatePermission> |
getResourceCreatePermissions(Resource accessorResource,
String resourceClassName,
String domainName)
Gets all direct resource create permissions the accessor resource has to the specified
resource class in the specified domain (which define a subset of the resource permissions
the accessor resource would receive directly, if it created a resource of the specified
resource class in the specified domain).
|
Map<String,Map<String,Set<ResourceCreatePermission>>> |
getResourceCreatePermissionsMap(Resource accessorResource)
Gets all direct resource create permissions the accessor resource has to any resource class in
any domain, mapped by domain name and resource class name.
|
List<String> |
getResourcePermissionNames(String resourceClassName)
Returns the list of all resource permission names defined for the specified resource class name
|
Set<ResourcePermission> |
getResourcePermissions(Resource accessorResource,
Resource accessedResource)
Gets the resource permissions that the specified accessor resource has directly to the
specified accessed resource.
|
Set<Resource> |
getResourcesByResourcePermission(Resource accessorResource,
String resourceClassName,
ResourcePermission resourcePermission)
Returns a set of resources (of the specified resource class) on which
the specified accessor resource has the specified permission, regardless of domain.
|
Set<Resource> |
getResourcesByResourcePermission(Resource accessorResource,
String resourceClassName,
ResourcePermission resourcePermission,
String domainName)
Returns a set of resources (of the specified resource class) on which
the specified accessor resource has the specified permission, within the
specified domain or within any descendant domains.
|
Set<Resource> |
getResourcesByResourcePermission(String resourceClassName,
ResourcePermission resourcePermission)
Returns a set of resources (of the specified resource class) on which
the current session resource has the specified permission.
|
Set<Resource> |
getResourcesByResourcePermission(String resourceClassName,
ResourcePermission resourcePermission,
String domainName)
Returns a set of resources (of the specified resource class) on which
the current session resource has the specified permission, within the specified domain
or within any descendant domains.
|
Resource |
getSessionResource()
Returns the session resource, that is, the resource whose security credentials are
associated with this session.
|
void |
impersonate(Resource resource)
Switches the security credentials of this session to those of the specified resource.
|
void |
setCredentials(Resource resource,
Credentials newCredentials)
Sets the authentication credentials of the specified authenticatable resource (= a resource of a
resource class that has been defined with the
isAuthenticatable flag set to true). |
void |
setDomainCreatePermissions(Resource accessorResource,
Set<DomainCreatePermission> domainCreatePermissions)
Sets the domain permissions the specified accessor resource will receive if it created a domain.
|
void |
setDomainPermissions(Resource accessorResource,
String domainName,
Set<DomainPermission> domainPermissions)
Sets the direct domain permissions the specified accessor resource has on the specified domain.
|
void |
setGlobalResourcePermissions(Resource accessorResource,
String resourceClassName,
Set<ResourcePermission> resourcePermissions)
Sets the global resource permissions a resource has on any resource of the specified
resource class in the current session resource's domain.
|
void |
setGlobalResourcePermissions(Resource accessorResource,
String resourceClassName,
Set<ResourcePermission> resourcePermissions,
String domainName)
Sets the global resource permissions a resource has on any resource of the specified
resource class in the specified domain.
|
void |
setResourceCreatePermissions(Resource accessorResource,
String resourceClassName,
Set<ResourceCreatePermission> resourceCreatePermissions)
Sets the resource permissions the specified accessor resource will receive directly, if it
created a resource of the specified resource class in the current session resource's domain.
|
void |
setResourceCreatePermissions(Resource accessorResource,
String resourceClassName,
Set<ResourceCreatePermission> resourceCreatePermissions,
String domainName)
Sets the resource permissions the specified accessor resource will receive directly, if it
created a resource of the specified resource class in the specified domain.
|
void |
setResourcePermissions(Resource accessorResource,
Resource accessedResource,
Set<ResourcePermission> resourcePermissions)
Sets the specified resource permissions that the specified accessor resource has to the
specified accessed resource directly, that is not via inheritance or globally.
|
void |
unauthenticate()
Logs out of this session, to be specific, disassociates any security credentials from this session.
|
void |
unimpersonate()
Unimpersonates the currently impersonated resource.
|
static final String SYSTEM_DOMAIN
static final String SYSTEM_RESOURCE_CLASS
void authenticate(Resource resource, Credentials credentials) throws AccessControlException
authenticate
) will fail.resource
- the resource to be authenticatedcredentials
- the credentials to authenticate the resourceAccessControlException
- if an error occursvoid authenticate(Resource resource) throws AccessControlException
AuthenticationProvider
without
specifying authentication credentials, if that AuthenticationProvider supports such an operation.
The security credentials for this session will be those of the specified and authenticated resource.
Note: Unless a session is authenticated, all attempts to call any other methods (except authenticate
) will fail.resource
- the resource to be authenticatedAccessControlException
- if the resource could not be authenticated, or if an error occursvoid unauthenticate() throws AccessControlException
AccessControlException
- if an error occursvoid impersonate(Resource resource) throws AccessControlException
resource
- the resource to be impersonatedAccessControlException
- if an error occursvoid unimpersonate() throws AccessControlException
AccessControlException
- if an error occursvoid setCredentials(Resource resource, Credentials newCredentials) throws AccessControlException
isAuthenticatable
flag set to true).
One of the following has to be true for this method to succeed:
resource
- the resource for which the credentials should be updated. The resource for which the credentials are
to be changed must be the current auth resource, or the current auth resource must have SUPER-USER permissions
to the domain containing the resource whose credentials are to be changed or must have RESET-CREDENTIALS
permissions to the resource whose credentials are to be changed, otherwise an exception is thrown.newCredentials
- the new credentials for the resourceAccessControlException
- if an error occursvoid assertGlobalResourcePermission(String resourceClassName, ResourcePermission resourcePermission) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to be checkedAccessControlException
- if the session resource does not have the
specified global permission, or if an error occursvoid assertGlobalResourcePermission(String resourceClassName, ResourcePermission resourcePermission, String domainName) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to be checkeddomainName
- the domain in which the permission should be checkedAccessControlException
- if the session resource does not have the
specified global permission, or if an error occursvoid assertResourcePermission(Resource accessedResource, ResourcePermission resourcePermission) throws AccessControlException
accessedResource
- the resource on which access is being checkedresourcePermission
- the permission to be checkedAccessControlException
- if the session resource does not have the
specified permission, or if an error occursvoid assertResourcePermission(Resource accessorResource, Resource accessedResource, ResourcePermission resourcePermission) throws AccessControlException
accessorResource
- the resource requesting the accessaccessedResource
- the resource on which access is being requestedresourcePermission
- the permission to be checkedAccessControlException
- if the accessor resource does not have the
specified permission, or if an error occursvoid assertPostCreateResourcePermission(String resourceClassName, ResourcePermission resourcePermission) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to be checkedAccessControlException
- if the session resource would not receive the
specified permission after creating a resource of the specified class in the current session domain,
or if an error occursvoid assertPostCreateResourcePermission(String resourceClassName, ResourcePermission resourcePermission, String domainName) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to be checkeddomainName
- the domain in which the permission should be checkedAccessControlException
- if the session resource would not receive the
specified permission after creating a resource of the specified class in the specified domain,
or if an error occursString getDomainNameByResource(Resource resource) throws AccessControlException
resource
- the resource for which to retrieve the domain nameAccessControlException
- if an error occursSet<String> getDomainDescendants(String domainName) throws AccessControlException
domainName
- a domain name for which to retrieve the descendantsAccessControlException
- if an error occursResourceClassInfo getResourceClassInfo(String resourceClassName) throws AccessControlException
resourceClassName
- a string resource class name about which to retrieve informationAccessControlException
- if an error occursResourceClassInfo getResourceClassInfoByResource(Resource resource) throws AccessControlException
resource
- a resource about whose resource class to retrieve informationAccessControlException
- if an error occursSet<Resource> getResourcesByResourcePermission(String resourceClassName, ResourcePermission resourcePermission) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to checkAccessControlException
- if an error occursSet<Resource> getResourcesByResourcePermission(Resource accessorResource, String resourceClassName, ResourcePermission resourcePermission) throws AccessControlException
accessorResource
- the resource relative to which the set of accessible resources is computedresourceClassName
- a string resource class nameresourcePermission
- the permission to checkAccessControlException
- if an error occursSet<Resource> getResourcesByResourcePermission(String resourceClassName, ResourcePermission resourcePermission, String domainName) throws AccessControlException
resourceClassName
- a string resource class nameresourcePermission
- the permission to checkdomainName
- a domain nameAccessControlException
- if an error occursSet<Resource> getResourcesByResourcePermission(Resource accessorResource, String resourceClassName, ResourcePermission resourcePermission, String domainName) throws AccessControlException
accessorResource
- the resource relative to which the set of accessible resources is computedresourceClassName
- a string resource class nameresourcePermission
- the permission to checkdomainName
- a domain nameAccessControlException
- if an error occursSet<Resource> getAccessorResourcesByResourcePermission(Resource accessedResource, String resourceClassName, ResourcePermission resourcePermission) throws AccessControlException
getResourcesByResourcePermission(java.lang.String, com.acciente.oacc.ResourcePermission)
method, but
unlike getResourcesByResourcePermission
it only takes into account direct permissions.
In other words, this method ignores accessors that can reach the specified accessed resource
via inherited permissions, global permissions and SUPER-USER privileges.accessedResource
- the resource relative to which accessor resources are soughtresourceClassName
- a string resource class nameresourcePermission
- the permission to checkAccessControlException
- if an error occursResource getAuthenticatedResource() throws AccessControlException
AccessControlException
- if no resource is authenticatedResource getSessionResource() throws AccessControlException
impersonated
.AccessControlException
- if no resource is authenticatedvoid createResourceClass(String resourceClassName, boolean authenticatable, boolean unuthenticatedCreateAllowed) throws AccessControlException
resourceClassName
- a string resource class nameauthenticatable
- indicates if resources of this resource class are authenticatable.
Typically only resource classes that represent users will be marked as authenticatable.unuthenticatedCreateAllowed
- if true, a resource of this resource class may be created from an
unauthenticated session, otherwise the session must be authenticated
to create resources of this class.AccessControlException
- if an error occursvoid createResourcePermission(String resourceClassName, String permissionName) throws AccessControlException
resourceClassName
- a string resource class namepermissionName
- the string representing the name of this permission.
Samples of typical permission names:
CREATE, READ, WRITE, UPDATE, VIEW, POST, EDIT, etc.AccessControlException
- if an error occursvoid createDomain(String domainName) throws AccessControlException
domainName
- a string domain nameAccessControlException
- if an error occursvoid createDomain(String domainName, String parentDomainName) throws AccessControlException
domainName
- a string domain nameparentDomainName
- the domain name of the parent domainAccessControlException
- if an error occursResource createResource(String resourceClassName) throws AccessControlException
resourceClassName
- a string resource class nameAccessControlException
- if an error occursResource createResource(String resourceClassName, String domainName) throws AccessControlException
resourceClassName
- a string resource class namedomainName
- a string domain nameAccessControlException
- if an error occursResource createResource(String resourceClassName, Credentials credentials) throws AccessControlException
resourceClassName
- a string resource class namecredentials
- the credentials to authenticate the new resourceAccessControlException
- if an error occursResource createResource(String resourceClassName, String domainName, Credentials credentials) throws AccessControlException
resourceClassName
- a string resource class namedomainName
- a string domain namecredentials
- the credentials to authenticate the new resourceAccessControlException
- if an error occursvoid setDomainCreatePermissions(Resource accessorResource, Set<DomainCreatePermission> domainCreatePermissions) throws AccessControlException
accessorResource
- the resource to which the privilege should be granteddomainCreatePermissions
- the permissions to be granted to the specified domainAccessControlException
- if an error occursSet<DomainCreatePermission> getDomainCreatePermissions(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursSet<DomainCreatePermission> getEffectiveDomainCreatePermissions(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursvoid setDomainPermissions(Resource accessorResource, String domainName, Set<DomainPermission> domainPermissions) throws AccessControlException
accessorResource
- the resource to which the privilege should be granteddomainName
- a string domain namedomainPermissions
- the permissions to be granted on the specified domainAccessControlException
- if an error occursSet<DomainPermission> getDomainPermissions(Resource accessorResource, String domainName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returneddomainName
- a string domain nameAccessControlException
- if an error occursMap<String,Set<DomainPermission>> getDomainPermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursSet<DomainPermission> getEffectiveDomainPermissions(Resource accessorResource, String domainName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returneddomainName
- a string domain nameAccessControlException
- if an error occursMap<String,Set<DomainPermission>> getEffectiveDomainPermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursvoid setResourceCreatePermissions(Resource accessorResource, String resourceClassName, Set<ResourceCreatePermission> resourceCreatePermissions, String domainName) throws AccessControlException
accessorResource
- the resource to which the privilege should be grantedresourceClassName
- a string resource class nameresourceCreatePermissions
- a set of resource create permissions to be granteddomainName
- a string representing a valid domain nameAccessControlException
- if an error occursSet<ResourceCreatePermission> getResourceCreatePermissions(Resource accessorResource, String resourceClassName, String domainName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedresourceClassName
- a string resource class namedomainName
- a string representing a valid domain nameAccessControlException
- if an error occursSet<ResourceCreatePermission> getEffectiveResourceCreatePermissions(Resource accessorResource, String resourceClassName, String domainName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedresourceClassName
- a string resource class namedomainName
- a string representing a valid domain nameAccessControlException
- if an error occursvoid setResourceCreatePermissions(Resource accessorResource, String resourceClassName, Set<ResourceCreatePermission> resourceCreatePermissions) throws AccessControlException
accessorResource
- the resource to which the privilege should be grantedresourceClassName
- a string resource class nameresourceCreatePermissions
- a set of resource create permissions to be grantedAccessControlException
- if an error occursSet<ResourceCreatePermission> getResourceCreatePermissions(Resource accessorResource, String resourceClassName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedresourceClassName
- a string resource class nameAccessControlException
- if an error occursSet<ResourceCreatePermission> getEffectiveResourceCreatePermissions(Resource accessorResource, String resourceClassName) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedresourceClassName
- a string resource class nameAccessControlException
- if an error occursMap<String,Map<String,Set<ResourceCreatePermission>>> getResourceCreatePermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursMap<String,Map<String,Set<ResourceCreatePermission>>> getEffectiveResourceCreatePermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the accessor resource relative which permissions should be returnedAccessControlException
- if an error occursvoid setResourcePermissions(Resource accessorResource, Resource accessedResource, Set<ResourcePermission> resourcePermissions) throws AccessControlException
accessorResource
- the resource to which the privilege should be grantedaccessedResource
- the resource on which the privilege is grantedresourcePermissions
- a set of resource permissions to be grantedAccessControlException
- if an error occursSet<ResourcePermission> getResourcePermissions(Resource accessorResource, Resource accessedResource) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedaccessedResource
- the resource on which the privileges were grantedAccessControlException
- if an error occursSet<ResourcePermission> getEffectiveResourcePermissions(Resource accessorResource, Resource accessedResource) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedaccessedResource
- the resource on which the privileges were grantedAccessControlException
- if an error occursvoid setGlobalResourcePermissions(Resource accessorResource, String resourceClassName, Set<ResourcePermission> resourcePermissions, String domainName) throws AccessControlException
accessorResource
- the resource to which the privilege should be grantedresourceClassName
- a string resource class nameresourcePermissions
- the set of resource permissions to be granted globally to
the specified resource class and domaindomainName
- a string domain nameAccessControlException
- if an error occursSet<ResourcePermission> getGlobalResourcePermissions(Resource accessorResource, String resourceClassName, String domainName) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedresourceClassName
- a string resource class namedomainName
- a string domain nameAccessControlException
- if an error occursSet<ResourcePermission> getEffectiveGlobalResourcePermissions(Resource accessorResource, String resourceClassName, String domainName) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedresourceClassName
- a string resource class namedomainName
- a string domain nameAccessControlException
- if an error occursvoid setGlobalResourcePermissions(Resource accessorResource, String resourceClassName, Set<ResourcePermission> resourcePermissions) throws AccessControlException
accessorResource
- the resource to which the privilege should be grantedresourceClassName
- a string resource class nameresourcePermissions
- the set of resource permissions to be granted globally to the
specified resource class and session resource's domainAccessControlException
- if an error occursSet<ResourcePermission> getGlobalResourcePermissions(Resource accessorResource, String resourceClassName) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedresourceClassName
- a string resource class nameAccessControlException
- if an error occursSet<ResourcePermission> getEffectiveGlobalResourcePermissions(Resource accessorResource, String resourceClassName) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedresourceClassName
- a string resource class nameAccessControlException
- if an error occursMap<String,Map<String,Set<ResourcePermission>>> getGlobalResourcePermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedAccessControlException
- if an error occursMap<String,Map<String,Set<ResourcePermission>>> getEffectiveGlobalResourcePermissionsMap(Resource accessorResource) throws AccessControlException
accessorResource
- the resource relative to which the permissions should be returnedAccessControlException
- if an error occursList<String> getResourceClassNames() throws AccessControlException
AccessControlException
- if an error occursList<String> getResourcePermissionNames(String resourceClassName) throws AccessControlException
resourceClassName
- the resource class name for which the permissions should be retrievedAccessControlException
- if an error occurs
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2015, Acciente, LLC.All rights reserved.