public abstract class PermissionsHelperBase extends Object implements Serializable
| Constructor and Description |
|---|
PermissionsHelperBase()
Constructs a AbstractPermissionsHelper with a null role type.
|
PermissionsHelperBase(String roleType)
Constructs an AbstractPermissionsHelper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewUser()
Add the new user to the list of UserStates.
|
protected void |
buildRoles(String roleType) |
abstract boolean |
canModifyPermissions()
Can the current user modify the users and their roles?
|
List<AssignedRole> |
getAssignedRoles()
Get the list of assigned roles.
|
PermissionsUserEditRoles |
getEditRoles()
Get the form data for editing the roles for a user.
|
protected KcPersonService |
getKcPersonService()
Gets the KC Person Service.
|
protected org.kuali.rice.kim.api.permission.PermissionService |
getKimPermissionService() |
protected List<org.kuali.rice.kim.api.role.Role> |
getKimRoles(String roleType)
Get the list of Kim Roles.
|
boolean |
getModifyPermissions()
Get the ModifyPermissions value.
|
PermissionsUser |
getNewUser()
Gets the new user.
|
List<Role> |
getNormalRoles()
Get the "normal" roles for the document.
|
protected abstract List<KcPerson> |
getPersonsInRole(String roleName)
Get the persons in a role.
|
Role |
getRole(String roleName)
Get a specific role.
|
protected String |
getRoleDisplayName(String roleName)
Get the role's display name.
|
List<Role> |
getRoles()
Get the roles for the document.
|
List<org.kuali.rice.core.api.util.KeyValue> |
getRoleSelection()
Get list of roles to display in the drop-down menu in the Users
panel of the Permissions web page.
|
protected List<org.kuali.rice.kim.api.role.Role> |
getSortedKimRoles(String roleType)
Get the sorted list of KIM roles.
|
protected TaskAuthorizationService |
getTaskAuthorizationService() |
String |
getUnassignedRoleDisplayName()
Get the display name of the unassigned role.
|
String |
getUnassignedRoleName()
Get the name of the unassigned role.
|
protected String |
getUserIdentifier()
Get the userName of the user for the current session.
|
List<User> |
getUsers()
Get the users.
|
UserState |
getUserState(String userName)
Get a UserState for a particular user.
|
List<UserState> |
getUserStates()
Get all of the users and their current role states.
|
protected abstract boolean |
isStandardRoleName(String roleName)
Is this one of the standard roles? Every document comes
with one or more standard roles (Aggregator, Budget Creator, Viewer, etc.).
|
void |
prepareView()
To prepare a view, the set of users and their roles must be
initialized only once.
|
void |
resetUserStates()
This method empties the userStates cache such that the data is updated.
|
protected void |
setRoles(List<Role> roles)
Set the roles, this is for classes that
have to override the buildRoles or otherwise
need to set the List.
|
void |
setUserEditRoles(PermissionsUserEditRoles editRoles)
Get the UserEditRoles which is the form data for the Edit Roles web page.
|
public PermissionsHelperBase()
public PermissionsHelperBase(String roleType)
roleType - the type of role (may be null)public void prepareView()
public void resetUserStates()
public abstract boolean canModifyPermissions()
public boolean getModifyPermissions()
public List<Role> getRoles()
protected void setRoles(List<Role> roles)
public PermissionsUserEditRoles getEditRoles()
public List<Role> getNormalRoles()
public List<UserState> getUserStates()
public UserState getUserState(String userName)
userName - the user's unique userNamepublic String getUnassignedRoleName()
public String getUnassignedRoleDisplayName()
protected abstract boolean isStandardRoleName(String roleName)
roleName - the name of the roleprotected String getRoleDisplayName(String roleName)
roleName - the name of the roleprotected abstract List<KcPerson> getPersonsInRole(String roleName)
roleName - the name of the roleprotected void buildRoles(String roleType)
protected List<org.kuali.rice.kim.api.role.Role> getSortedKimRoles(String roleType)
protected List<org.kuali.rice.kim.api.role.Role> getKimRoles(String roleType)
public Role getRole(String roleName)
roleName - the name of the rolepublic List<AssignedRole> getAssignedRoles()
public List<User> getUsers()
public PermissionsUser getNewUser()
public void addNewUser()
public List<org.kuali.rice.core.api.util.KeyValue> getRoleSelection()
public void setUserEditRoles(PermissionsUserEditRoles editRoles)
editRoles - the form data for the Edit Roles web pageprotected TaskAuthorizationService getTaskAuthorizationService()
protected KcPersonService getKcPersonService()
protected org.kuali.rice.kim.api.permission.PermissionService getKimPermissionService()
protected String getUserIdentifier()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.