|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlEnvironment
The AccessControlEnvironment
provides some general information
about the Access Control configuration, for example the available role types.
Method Summary | |
---|---|
java.util.SortedSet<RoleType> |
getAllRoleTypes()
Returns the sorted set of all RoleTypes that are available in the system. |
java.util.SortedSet<RoleType> |
getApplicableRoleTypes(Identifiable resource)
Returns the sorted set of all RoleTypes that can be used with the given resource. |
Permission |
getPermission(Identifiable resource,
RoleType accessLevel)
Returns a new Permission Object representing a tupel of RoleType and resource. |
RoleType |
getRoleTypeForName(java.lang.String roleTypeName)
Returns the RoleType identified by the given name. |
Method Detail |
---|
RoleType getRoleTypeForName(java.lang.String roleTypeName) throws AccessControlException, SystemException, ObjectNotFoundException
roleTypeName
-
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
ObjectNotFoundException
- will be thrown if there is no RoleType with the given namejava.util.SortedSet<RoleType> getAllRoleTypes() throws AccessControlException, SystemException
RoleType.PREDEFINED_ROLE_TYPES
and might contain additional
custom RoleTypes.
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, occursjava.util.SortedSet<RoleType> getApplicableRoleTypes(Identifiable resource) throws AccessControlException, SystemException
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, occursPermission getPermission(Identifiable resource, RoleType accessLevel) throws AccessControlException, SystemException
AccessControlGlobalRuntimeModel.hasPermission(com.ibm.portal.um.Principal, Permission)
to query if a principal has all the privileges represented by a
Permission object.
resource
- the resource of the new PermissionaccessLevel
- the RoleType of the new Permission
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, occursPermission
,
AccessControlGlobalRuntimeModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |