public class ReviewMgrImpl extends Manageable implements ReviewMgr, Serializable
This class is NOT thread safe if parent instance variables (Manageable.contextId
or Manageable.adminSess
) are set.
adminSess, contextId
Constructor and Description |
---|
ReviewMgrImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
assignedRoles(String userId)
This function returns the set of roles assigned to a given user.
|
List<UserRole> |
assignedRoles(User user)
This function returns the set of roles assigned to a given user.
|
List<User> |
assignedUsers(Role role)
This method returns the data set of all users who are assigned the given role.
|
List<String> |
assignedUsers(Role role,
int limit)
This function returns the set of users assigned to a given role.
|
Set<String> |
authorizedPermissionRoles(Permission perm)
Return all role names that have been authorized for a given permission.
|
Set<String> |
authorizedPermissionUsers(Permission perm)
Return all userIds that have been authorized for a given permission.
|
Set<String> |
authorizedRoles(User user)
This function returns the set of roles authorized for a given user.
|
List<User> |
authorizedUsers(Role role)
This function returns the set of users authorized to a given role, i.e., the users that are assigned to a role that
inherits the given role.
|
SDSet |
dsdRoleSet(SDSet set)
This function returns the DSD data set that matches a particular set name.
|
int |
dsdRoleSetCardinality(SDSet dsd)
This function returns the cardinality associated with a DSD role set.
|
Set<String> |
dsdRoleSetRoles(SDSet dsd)
This function returns the set of roles of a DSD role set.
|
List<SDSet> |
dsdRoleSets(Role role)
This function returns the list of all dSD role sets that have a particular Role as member or Role's
parent as a member.
|
List<SDSet> |
dsdSets(SDSet ssd)
This function returns the list of DSDs that match a given dsd name value.
|
List<Permission> |
findAnyPermissions(Permission permission)
Method returns a list of Permissions that match any part of the permission object or operation.
|
List<Permission> |
findPermissions(Permission permission)
Method returns a list of type Permission that match the perm object search string.
|
List<PermObj> |
findPermObjs(OrgUnit ou)
Method returns a list of type Permission that match the perm object search string.
|
List<PermObj> |
findPermObjs(PermObj permObj)
Method returns a list of type PermObj that match the perm object search string.
|
List<Permission> |
findPermsByObj(PermObj permObj)
Method returns Permission operations for the provided permission object
|
List<Role> |
findRoles(String searchVal)
Method will return a list of type Role matching all or part of Role name,
Role.name . |
List<String> |
findRoles(String searchVal,
int limit)
Method returns a list of roles of type String.
|
List<User> |
findUsers(OrgUnit ou)
Return a list of type User of all users in the people container that match the name field passed in OrgUnit entity.
|
List<User> |
findUsers(User user)
Return a list of type User of all users in the people container that match all or part of the
User.userId
field passed in User entity. |
List<String> |
findUsers(User user,
int limit)
Return a list of type String of all users in the people container that match the userId field passed in User entity.
|
List<String> |
permissionRoles(Permission perm)
Return a list of type String of all roles that have granted a particular permission.
|
List<String> |
permissionUsers(Permission perm)
Return all userIds that have been granted (directly) a particular permission.
|
Permission |
readPermission(Permission permission)
This method returns a matching permission entity to caller.
|
PermObj |
readPermObj(PermObj permObj)
Method reads permission object from perm container in directory.
|
Role |
readRole(Role role)
Method reads Role entity from the role container in directory.
|
User |
readUser(User user)
Method returns matching User entity that is contained within the people container in the directory.
|
List<Permission> |
rolePermissions(Role role)
This function returns the set of all permissions (op, obj), granted to or inherited by a
given role.
|
List<Permission> |
rolePermissions(Role role,
boolean noInheritance)
This function returns the set of all permissions (op, obj), granted to or inherited by a
given role.
|
SDSet |
ssdRoleSet(SDSet set)
This function returns the SSD data set that matches a particular set name.
|
int |
ssdRoleSetCardinality(SDSet ssd)
This function returns the cardinality associated with a SSD role set.
|
Set<String> |
ssdRoleSetRoles(SDSet ssd)
This function returns the set of roles of a SSD role set.
|
List<SDSet> |
ssdRoleSets(Role role)
This function returns the list of all SSD role sets that have a particular Role as member or Role's
parent as a member.
|
List<SDSet> |
ssdSets(SDSet ssd)
This function returns the list of SSDs that match a given ssd name value.
|
List<Permission> |
userPermissions(User user)
This function returns the set of permissions a given user gets through his/her authorized
roles.
|
assertContext, assertContext, checkAccess, getFullMethodName, setAdmin, setAdminData, setContextId, setEntitySession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAdmin, setContextId
public Permission readPermission(Permission permission) throws SecurityException
Permission.objName
- contains the name of existing object being targetedPermission.opName
- contains the name of existing permission operationreadPermission
in interface ReviewMgr
permission
- must contain the object, Permission.objName
, and operation, Permission.opName
, and
optionally object id of targeted permission entity.SecurityException
- if permission not found or system error occurs.public PermObj readPermObj(PermObj permObj) throws SecurityException
PermObj.objName
- contains the name of existing object being targetedreadPermObj
in interface ReviewMgr
permObj
- entity contains the PermObj.objName
of target record.SecurityException
- is thrown if object not found or system error.public List<Permission> findPermissions(Permission permission) throws SecurityException
Permission.objName
- contains one or more characters of existing object being targetedPermission.opName
- contains one or more characters of existing permission operationfindPermissions
in interface ReviewMgr
permission
- contains object and operation name search strings. Each contains 1 or more leading chars that
correspond to object or op name.SecurityException
- thrown in the event of system error.public List<Permission> findPermsByObj(PermObj permObj) throws SecurityException
findPermsByObj
in interface ReviewMgr
permObj
- entity contains the PermObj.objName
of target record.SecurityException
- thrown in the event of system error.public List<Permission> findAnyPermissions(Permission permission) throws SecurityException
findAnyPermissions
in interface ReviewMgr
permission
- contains object and operation name search strings.SecurityException
- thrown in the event of system error.public List<PermObj> findPermObjs(PermObj permObj) throws SecurityException
PermObj.objName
- contains one or more characters of existing object being targetedfindPermObjs
in interface ReviewMgr
permObj
- contains object name search string. The search val contains 1 or more leading chars that correspond
to object name.SecurityException
- thrown in the event of system error.public List<PermObj> findPermObjs(OrgUnit ou) throws SecurityException
OrgUnit.name
- contains one or more characters of org unit associated with existing object being targeted
findPermObjs
in interface ReviewMgr
ou
- contains org unit name OrgUnit.name
. The search val
contains the full name of matching ou in OS-P data set.SecurityException
- thrown in the event of system error.public Role readRole(Role role) throws SecurityException
Role.name
- contains the name to use for the Role to read.readRole
in interface ReviewMgr
role
- contains role name, Role.name
, to be read.SecurityException
- will be thrown if role not found or system error occurs.public List<Role> findRoles(String searchVal) throws SecurityException
Role.name
.findRoles
in interface ReviewMgr
searchVal
- contains all or some of the chars corresponding to role entities stored in directory.SecurityException
- in the event of system error.public List<String> findRoles(String searchVal, int limit) throws SecurityException
findRoles
in interface ReviewMgr
searchVal
- contains all or some leading chars that correspond to roles stored in the role container in the
directory.limit
- integer value specifies the max records that may be returned in the result set.SecurityException
- in the event of system error.public final User readUser(User user) throws SecurityException
User.userId
- contains the userId associated with the User object targeted for read.readUser
in interface ReviewMgr
user
- entity contains a value User.userId
that matches record in the directory. userId is globally
unique in people container.SecurityException
- if record not found or system error occurs.public final List<User> findUsers(User user) throws SecurityException
User.userId
field passed in User entity.
User.userId
- contains all or some leading chars that match userId(s) stored in the directory.findUsers
in interface ReviewMgr
user
- contains all or some leading chars that match userIds stored in the directory.SecurityException
- In the event of system error.public List<User> findUsers(OrgUnit ou) throws SecurityException
OrgUnit.name
- contains one or more characters of org unit associated with existing object(s) being
targeted
findUsers
in interface ReviewMgr
ou
- contains name of User OU, OrgUnit.name
that match ou attribute associated with User entity in the
directory.SecurityException
- In the event of system error.public final List<String> findUsers(User user, int limit) throws SecurityException
User.userId
- contains the userId associated with the User object targeted for read.findUsers
in interface ReviewMgr
user
- contains all or some leading chars that correspond to users stored in the directory.limit
- integer value sets the max returned records.SecurityException
- in the event of system error.public List<String> assignedUsers(Role role, int limit) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.assignedUsers
in interface ReviewMgr
role
- Contains Role.name
of Role entity assigned to user.limit
- integer value sets the max returned records.SecurityException
- in the event of data validation or system error.public List<User> assignedUsers(Role role) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.assignedUsers
in interface ReviewMgr
role
- contains the role name, Role.name
used to search the User data set.SecurityException
- If system error occurs.public List<UserRole> assignedRoles(User user) throws SecurityException
User.userId
- contains the userId associated with the User object targeted for search.assignedRoles
in interface ReviewMgr
user
- contains User.userId
matching User entity targeted in the directory.SecurityException
- If user not found or system error occurs.public List<String> assignedRoles(String userId) throws SecurityException
assignedRoles
in interface ReviewMgr
userId
- matches userId stored in the directory.SecurityException
- If user not found or system error occurs.public List<User> authorizedUsers(Role role) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.authorizedUsers
in interface ReviewMgr
role
- Contains role name, Role.name
of Role entity assigned to User.SecurityException
- In the event the role is not present in directory or system error occurs.public Set<String> authorizedRoles(User user) throws SecurityException
User.userId
- contains the userId associated with the User object targeted for search.authorizedRoles
in interface ReviewMgr
user
- contains the User.userId
matching User entity stored in the directory.SecurityException
- If user not found or system error occurs.public List<Permission> rolePermissions(Role role) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.rolePermissions
in interface ReviewMgr
role
- contains role name, Role.name
of Role entity Permission is granted to.SecurityException
- In the event system error occurs.public List<Permission> rolePermissions(Role role, boolean noInheritance) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.rolePermissions
in interface ReviewMgr
role
- contains role name, Role.name
of Role entity Permission is granted to.noInheritance
- if true will NOT include inherited roles in the search.SecurityException
- In the event system error occurs.public List<Permission> userPermissions(User user) throws SecurityException
User.userId
- contains the userId associated with the User object targeted for search.userPermissions
in interface ReviewMgr
user
- contains the User.userId
of User targeted for search.SecurityException
- in the event of validation or system error.public List<String> permissionRoles(Permission perm) throws SecurityException
Permission.objName
- contains the name of existing object being targetedPermission.opName
- contains the name of existing permission operationpermissionRoles
in interface ReviewMgr
perm
- must contain the object, Permission.objName
, and operation, Permission.opName
, and optionally object id of targeted permission entity.SecurityException
- in the event permission not found or system error occurs.public Set<String> authorizedPermissionRoles(Permission perm) throws SecurityException
Permission.objName
- contains the name of existing object being targetedPermission.opName
- contains the name of existing permission operationauthorizedPermissionRoles
in interface ReviewMgr
perm
- must contain the object, Permission.objName
, and operation, Permission.opName
, and optionally object id of targeted permission entity.SecurityException
- in the event of validation or system error.public List<String> permissionUsers(Permission perm) throws SecurityException
Permission.objName
- contains the name of existing object being targetedPermission.opName
- contains the name of existing permission operationpermissionUsers
in interface ReviewMgr
perm
- must contain the object, Permission.objName
, and operation, Permission.opName
, and optionally object id of targeted permission entity.SecurityException
- in the event of validation or system error.public Set<String> authorizedPermissionUsers(Permission perm) throws SecurityException
Permission.objName
- contains the name of existing object being targetedPermission.opName
- contains the name of existing permission operationauthorizedPermissionUsers
in interface ReviewMgr
perm
- must contain the object, Permission.objName
, and operation, Permission.opName
, and optionally object id of targeted permission entity.SecurityException
- in the event of validation or system error.public List<SDSet> ssdRoleSets(Role role) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.ssdRoleSets
in interface ReviewMgr
role
- Will contain the role name, Role.name
, for targeted SSD set or null to return allSecurityException
- in the event of data or system error.public List<SDSet> ssdSets(SDSet ssd) throws SecurityException
SDSet.name
- contains the name of existing object being targetedssdSets
in interface ReviewMgr
ssd
- contains the name for the SSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.public SDSet ssdRoleSet(SDSet set) throws SecurityException
SDSet.name
- contains the name of existing object being targetedssdRoleSet
in interface ReviewMgr
set
- Will contain the name for existing SSD data set, SDSet.name
.SecurityException
- in the event of data or system error.public Set<String> ssdRoleSetRoles(SDSet ssd) throws SecurityException
SDSet.name
- contains the name of existing object being targetedssdRoleSetRoles
in interface ReviewMgr
ssd
- contains the name for the SSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.public int ssdRoleSetCardinality(SDSet ssd) throws SecurityException
SDSet.name
- contains the name of existing object being targetedssdRoleSetCardinality
in interface ReviewMgr
ssd
- contains the name of the SSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.public List<SDSet> dsdRoleSets(Role role) throws SecurityException
Role.name
- contains the name to use for the Role targeted for search.dsdRoleSets
in interface ReviewMgr
role
- Will contain the role name, Role.name
, for targeted dSD set or null to return allSecurityException
- in the event of data or system error.public SDSet dsdRoleSet(SDSet set) throws SecurityException
SDSet.name
- contains the name of existing object being targeteddsdRoleSet
in interface ReviewMgr
set
- Will contain the name for existing DSD data set, SDSet.name
.SecurityException
- in the event of data or system error.public List<SDSet> dsdSets(SDSet ssd) throws SecurityException
SDSet.name
- contains the name of existing object being targeteddsdSets
in interface ReviewMgr
ssd
- contains the name for the DSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.public Set<String> dsdRoleSetRoles(SDSet dsd) throws SecurityException
SDSet.name
- contains the name of existing object being targeteddsdRoleSetRoles
in interface ReviewMgr
dsd
- contains the name for the DSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.public int dsdRoleSetCardinality(SDSet dsd) throws SecurityException
SDSet.name
- contains the name of existing object being targeteddsdRoleSetCardinality
in interface ReviewMgr
dsd
- contains the name of the DSD set targeted, SDSet.name
.SecurityException
- in the event of data or system error.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621