|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlHome
The AccessControlHome
interface can be used to access the Access
Control component of WebSphere Portal.
An instance can be retrieved using a JNDI lookup for the following JNDI name
portal:service/accesscontrol/home
.
The name is also available via a constant of the Interface itself:
AccessControlHome.JNDI_NAME
.
The returned instance provides a way to access different views on the Access
Control configuration
The following sample shows you how to perform the JNDI lookup
Context ctx = new InitialContext(); AccessControlHome acHome = (AccessControlHome) ctx.lookup(AccessControlHome.JNDI_NAME);
AccessControlRuntimeModel
,
AccessControlGlobalRuntimeModel
,
ManagedProtectedResourceModel
,
RoleData
,
RoleDataController
,
ManagedProtectedResource
,
ManagedProtectedResourceController
Field Summary | |
---|---|
static java.lang.String |
JNDI_NAME
The name can be used to lookup the AccessControlHome from
JNDI |
Method Summary | |
---|---|
AccessControlEnvironment |
getAccessControlEnvironment()
The returned instance of AccessControlEnvironment provides
some general information about the Access Control configuration, for
example the available role types. |
AccessControlGlobalRuntimeModel |
getAccessControlGlobalRuntimeModel()
The returned instance of AccessControlGlobalRuntimeModel
provides read access to the current access control permissions on any
resource that is registered at Portal Access Control |
AccessControlRuntimeModel |
getAccessControlRuntimeModel(Identifiable resource)
The returned instance of AccessControlRuntimeModel provides
read access to the current access control permissions on the given
resource |
ManagedProtectedResource |
getManagedProtectedResource(Identifiable resource)
The returned instance of ManagedProtectedResource provides read
access to the properties of a of the protected resource associated with
the given resource, for example role blocks. |
ManagedProtectedResourceController |
getManagedProtectedResourceController(Identifiable resource)
The returned instance of ManagedProtectedResourceController
provides write access to the properties of the protected resource
associated with the given resource, for example role blocks. |
ManagedProtectedResourceModel |
getManagedProtectedResourceModel(Identifiable resource)
The returned instance of ManagedProtectedResourceModel provides
read access on the tree model the given resource is part of. |
ManagedProtectedResourceModel |
getManagedProtectedResourceModel(int domain)
The returned instance of ManagedProtectedResourceModel provides
read access on the tree model for the given domain. |
RoleData |
getRoleData(Identifiable resource)
The returned instance of RoleData provides read access to
the role date of a of the protected resource associated with the given
resource, for example the set of principals mapped to a specific role. |
RoleDataController |
getRoleDataController(Identifiable resource)
The returned instance of RoleDataController provides write
access to the role date of a of the protected resource associated with
the given resource, for example the set of principals mapped to a
specific role. |
Field Detail |
---|
static final java.lang.String JNDI_NAME
AccessControlHome
from
JNDI
Method Detail |
---|
AccessControlEnvironment getAccessControlEnvironment()
AccessControlEnvironment
provides
some general information about the Access Control configuration, for
example the available role types.
ManagedProtectedResource getManagedProtectedResource(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
ManagedProtectedResource
provides read
access to the properties of a of the protected resource associated with
the given resource, for example role blocks.
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationManagedProtectedResourceController getManagedProtectedResourceController(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
ManagedProtectedResourceController
provides write access to the properties of the protected resource
associated with the given resource, for example role blocks.
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationRoleData getRoleData(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
RoleData
provides read access to
the role date of a of the protected resource associated with the given
resource, for example the set of principals mapped to a specific role.
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationRoleDataController getRoleDataController(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
RoleDataController
provides write
access to the role date of a of the protected resource associated with
the given resource, for example the set of principals mapped to a
specific role.
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationManagedProtectedResourceModel getManagedProtectedResourceModel(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
ManagedProtectedResourceModel
provides
read access on the tree model the given resource is part of.
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationManagedProtectedResourceModel getManagedProtectedResourceModel(int domain) throws AccessControlException, SystemException, MissingAccessRightsException
ManagedProtectedResourceModel
provides
read access on the tree model for the given domain. Valid input values
are defined in DatabaseDomainConstants
domain
- constant representing a database domain as defined in DatabaseDomainConstants
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationDatabaseDomainConstants
AccessControlRuntimeModel getAccessControlRuntimeModel(Identifiable resource) throws AccessControlException, SystemException, MissingAccessRightsException
AccessControlRuntimeModel
provides
read access to the current access control permissions on the given
resource
resource
- a resource or its ObjectID
AccessControlException
- will be thrown if any access control
related error occurs
SystemException
- will be thrown if a system resource problem, e.g.
a database exception, occurs
MissingAccessRightsException
- will be thrown if the current user
does not have the necessary access rights to perform the
operationAccessControlGlobalRuntimeModel getAccessControlGlobalRuntimeModel()
AccessControlGlobalRuntimeModel
provides read access to the current access control permissions on any
resource that is registered at Portal Access Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |