org.kuali.student.kim.permission.mock
Class RoleServiceMockImpl

java.lang.Object
  extended by org.kuali.student.kim.permission.mock.RoleServiceMockImpl
All Implemented Interfaces:
org.kuali.rice.kim.api.role.RoleService, MockService

public class RoleServiceMockImpl
extends Object
implements org.kuali.rice.kim.api.role.RoleService, MockService

Author:
nwright

Constructor Summary
RoleServiceMockImpl()
           
 
Method Summary
 org.kuali.rice.kim.api.role.RoleMember assignGroupToRole(String groupId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 void assignPermissionToRole(String permissionId, String roleId)
           
 org.kuali.rice.kim.api.role.RoleMember assignPrincipalToRole(String principalId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 org.kuali.rice.kim.api.role.RoleMember assignRoleToRole(String roleId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 void clear()
          Clear all cached service data.
 org.kuali.rice.kim.api.common.delegate.DelegateMember createDelegateMember(org.kuali.rice.kim.api.common.delegate.DelegateMember delegateMember)
           
 org.kuali.rice.kim.api.common.delegate.DelegateType createDelegateType(org.kuali.rice.kim.api.common.delegate.DelegateType delegateType)
           
 org.kuali.rice.kim.api.role.Role createRole(org.kuali.rice.kim.api.role.Role role)
           
 org.kuali.rice.kim.api.role.RoleMember createRoleMember(org.kuali.rice.kim.api.role.RoleMember roleMember)
           
 org.kuali.rice.kim.api.role.RoleResponsibilityAction createRoleResponsibilityAction(org.kuali.rice.kim.api.role.RoleResponsibilityAction roleResponsibilityAction)
           
 org.kuali.rice.kim.api.role.DelegateMemberQueryResults findDelegateMembers(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
           
 org.kuali.rice.kim.api.role.RoleMemberQueryResults findRoleMembers(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
          Gets role member information based on the given search criteria.
 org.kuali.rice.kim.api.role.RoleMembershipQueryResults findRoleMemberships(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
           
 org.kuali.rice.kim.api.role.RoleQueryResults findRoles(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
           
 org.kuali.rice.kim.api.common.delegate.DelegateType getDelegateTypeByDelegationId(String delegationId)
           
 org.kuali.rice.kim.api.common.delegate.DelegateType getDelegateTypeByRoleIdAndDelegateTypeCode(String roleId, org.kuali.rice.core.api.delegation.DelegationType delegateType)
           
 org.kuali.rice.kim.api.common.delegate.DelegateMember getDelegationMemberByDelegationAndMemberId(String delegationId, String memberId)
           
 org.kuali.rice.kim.api.common.delegate.DelegateMember getDelegationMemberById(String delegationMemberId)
           
 List<org.kuali.rice.kim.api.common.delegate.DelegateMember> getDelegationMembersByDelegationId(String delegationId)
          Gets delegation member information based on the given search criteria.
 List<org.kuali.rice.kim.api.role.RoleMembership> getFirstLevelRoleMembers(List<String> roleIds)
          Gets all direct members of the roles that have ids within the given list of role ids.
 org.kuali.rice.kim.api.group.GroupService getGroupService()
           
 org.kuali.rice.kim.framework.type.KimTypeService getKimTypeService()
           
 List<String> getMemberParentRoleIds(String memberType, String memberId)
          Gets a list of Roles that the given member belongs to.
 List<Map<String,String>> getNestedRoleQualifersForPrincipalByNamespaceAndRolename(String principalId, String namespaceCode, String roleName, Map<String,String> qualification)
           
 List<Map<String,String>> getNestedRoleQualifiersForPrincipal(String principalId, List<String> roleIds, Map<String,String> qualification)
           
 List<Map<String,String>> getNestedRoleQualifiersForPrincipal(String principalId, String namespaceCode, String roleName, Map<String,String> qualification)
           
 List<Map<String,String>> getNestedRoleQualifiersForPrincipalByRoleIds(String principalId, List<String> roleIds, Map<String,String> qualification)
           
 List<String> getPrincipalIdSubListWithRole(List<String> principalIds, String roleNamespaceCode, String roleName, Map<String,String> qualification)
          Returns the subset of the given principal ID list which has the given role and qualification.
 org.kuali.rice.kim.api.role.Role getRole(String roleId)
          Get the KIM Role object with the given ID.
 org.kuali.rice.kim.api.role.Role getRoleByNamespaceCodeAndName(String namespaceCode, String roleName)
          Get the KIM Role object with the unique combination of namespace, component, and role name.
 String getRoleIdByNamespaceCodeAndName(String namespaceCode, String roleName)
          Return the Role ID for the given unique combination of namespace, component and role name.
 Collection<String> getRoleMemberPrincipalIds(String namespaceCode, String roleName, Map<String,String> qualification)
          This method gets all the members, then traverses down into members of type role and group to obtain the nested principal ids
 List<org.kuali.rice.kim.api.role.RoleResponsibilityAction> getRoleMemberResponsibilityActions(String roleMemberId)
           
 List<org.kuali.rice.kim.api.role.RoleMembership> getRoleMembers(List<String> roleIds, Map<String,String> qualification)
          Get all the role members (groups and principals) associated with the given list of roles where their role membership/assignment matches the given qualification.
 List<Map<String,String>> getRoleQualifersForPrincipalByNamespaceAndRolename(String principalId, String namespaceCode, String roleName, Map<String,String> qualification)
           
 List<Map<String,String>> getRoleQualifersForPrincipalByRoleIds(String principalId, List<String> roleIds, Map<String,String> qualification)
           
 List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId, List<String> roleIds, Map<String,String> qualification)
          Returns a list of role qualifiers that the given principal has without taking into consideration that the principal may be a member via an assigned group or role.
 List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId, String namespaceCode, String roleName, Map<String,String> qualification)
          Returns a list of role qualifiers that the given principal has without taking into consideration that the principal may be a member via an assigned group or role.
 List<org.kuali.rice.kim.api.role.RoleResponsibility> getRoleResponsibilities(String roleId)
           
 List<org.kuali.rice.kim.api.role.Role> getRoles(List<String> roleIds)
          Get the KIM Role objects for the role IDs in the given List.
 Set<String> getRoleTypeRoleMemberIds(String roleId)
           
 void groupInactivated(String groupId)
          Notifies the role service that the group with the given id has been inactivated.
 boolean isDerivedRole(String s)
           
 boolean isDynamicRoleMembership(String s)
           
 boolean isRoleActive(String roleId)
          Checks whether the role with the given role ID is active.
 List<org.kuali.rice.kim.api.role.Role> lookupRoles(Map<String,String> searchCriteria)
           
 boolean principalHasRole(String principalId, List<String> roleIds, Map<String,String> qualification)
          Returns whether the given principal has any of the passed role IDs with the given qualification.
 boolean principalHasRole(String principalId, List<String> roleIds, Map<String,String> qualification, boolean checkDelegations)
           
 void principalInactivated(String principalId)
          Notifies all of a principal's roles and role types that the principal has been inactivated.
 void removeDelegateMembers(List<org.kuali.rice.kim.api.common.delegate.DelegateMember> delegateMembers)
           
 void removeGroupFromRole(String groupId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 void removePrincipalFromRole(String principalId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 void removeRoleFromRole(String roleId, String namespaceCode, String roleName, Map<String,String> qualifications)
           
 void revokePermissionFromRole(String permissionId, String roleId)
           
 void roleInactivated(String roleId)
          Notifies the role service that the role with the given id has been inactivated.
 void saveDelegationMemberForRole(String delegationMemberId, String roleMemberId, String memberId, String memberTypeCode, String delegationTypeCode, String roleId, Map<String,String> qualifications, org.joda.time.DateTime activeFromDate, org.joda.time.DateTime activeToDate)
           
 void saveRole(String roleId, String roleName, String roleDescription, boolean active, String kimTypeId, String namespaceCode)
           
 org.kuali.rice.kim.api.role.RoleMember saveRoleMemberForRole(String roleMemberId, String memberId, String memberTypeCode, String roleId, Map<String,String> qualifications, org.joda.time.DateTime activeFromDate, org.joda.time.DateTime activeToDate)
           
 void saveRoleRspActions(String roleResponsibilityActionId, String roleId, String roleResponsibilityId, String roleMemberId, String actionTypeCode, String actionPolicyCode, Integer priorityNumber, Boolean forceAction)
           
 void setGroupService(org.kuali.rice.kim.api.group.GroupService groupService)
           
 void setKimTypeService(org.kuali.rice.kim.framework.type.KimTypeService kimTypeInfoService)
           
 org.kuali.rice.kim.api.common.delegate.DelegateMember updateDelegateMember(org.kuali.rice.kim.api.common.delegate.DelegateMember delegateMember)
           
 org.kuali.rice.kim.api.common.delegate.DelegateType updateDelegateType(org.kuali.rice.kim.api.common.delegate.DelegateType delegateType)
           
 org.kuali.rice.kim.api.role.Role updateRole(org.kuali.rice.kim.api.role.Role role)
           
 org.kuali.rice.kim.api.role.RoleMember updateRoleMember(org.kuali.rice.kim.api.role.RoleMember roleMember)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleServiceMockImpl

public RoleServiceMockImpl()
Method Detail

clear

public void clear()
Description copied from interface: MockService
Clear all cached service data. This should place the service back to its initial configuration.

Specified by:
clear in interface MockService

getGroupService

public org.kuali.rice.kim.api.group.GroupService getGroupService()

setGroupService

public void setGroupService(org.kuali.rice.kim.api.group.GroupService groupService)

getKimTypeService

public org.kuali.rice.kim.framework.type.KimTypeService getKimTypeService()

setKimTypeService

public void setKimTypeService(org.kuali.rice.kim.framework.type.KimTypeService kimTypeInfoService)

getRole

public org.kuali.rice.kim.api.role.Role getRole(String roleId)
Get the KIM Role object with the given ID. If the roleId is blank, this method returns null.

Specified by:
getRole in interface org.kuali.rice.kim.api.role.RoleService

getRoles

public List<org.kuali.rice.kim.api.role.Role> getRoles(List<String> roleIds)
Get the KIM Role objects for the role IDs in the given List.

Specified by:
getRoles in interface org.kuali.rice.kim.api.role.RoleService

getRoleByNamespaceCodeAndName

public org.kuali.rice.kim.api.role.Role getRoleByNamespaceCodeAndName(String namespaceCode,
                                                                      String roleName)
Get the KIM Role object with the unique combination of namespace, component, and role name. If any parameter is blank, this method returns null.

Specified by:
getRoleByNamespaceCodeAndName in interface org.kuali.rice.kim.api.role.RoleService

getRoleIdByNamespaceCodeAndName

public String getRoleIdByNamespaceCodeAndName(String namespaceCode,
                                              String roleName)
Return the Role ID for the given unique combination of namespace, component and role name.

Specified by:
getRoleIdByNamespaceCodeAndName in interface org.kuali.rice.kim.api.role.RoleService

isRoleActive

public boolean isRoleActive(String roleId)
Checks whether the role with the given role ID is active.

Specified by:
isRoleActive in interface org.kuali.rice.kim.api.role.RoleService
Parameters:
roleId -
Returns:

getRoleQualifiersForPrincipal

public List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId,
                                                              List<String> roleIds,
                                                              Map<String,String> qualification)
Returns a list of role qualifiers that the given principal has without taking into consideration that the principal may be a member via an assigned group or role. Use in situations where you are only interested in the qualifiers that are directly assigned to the principal.


getRoleQualifiersForPrincipal

public List<Map<String,String>> getRoleQualifiersForPrincipal(String principalId,
                                                              String namespaceCode,
                                                              String roleName,
                                                              Map<String,String> qualification)
Returns a list of role qualifiers that the given principal has without taking into consideration that the principal may be a member via an assigned group or role. Use in situations where you are only interested in the qualifiers that are directly assigned to the principal.


getNestedRoleQualifiersForPrincipal

public List<Map<String,String>> getNestedRoleQualifiersForPrincipal(String principalId,
                                                                    String namespaceCode,
                                                                    String roleName,
                                                                    Map<String,String> qualification)

getNestedRoleQualifiersForPrincipal

public List<Map<String,String>> getNestedRoleQualifiersForPrincipal(String principalId,
                                                                    List<String> roleIds,
                                                                    Map<String,String> qualification)

getRoleMembers

public List<org.kuali.rice.kim.api.role.RoleMembership> getRoleMembers(List<String> roleIds,
                                                                       Map<String,String> qualification)
Get all the role members (groups and principals) associated with the given list of roles where their role membership/assignment matches the given qualification. The return object will have each membership relationship along with the delegations

Specified by:
getRoleMembers in interface org.kuali.rice.kim.api.role.RoleService

getRoleMemberPrincipalIds

public Collection<String> getRoleMemberPrincipalIds(String namespaceCode,
                                                    String roleName,
                                                    Map<String,String> qualification)
This method gets all the members, then traverses down into members of type role and group to obtain the nested principal ids

Specified by:
getRoleMemberPrincipalIds in interface org.kuali.rice.kim.api.role.RoleService
Returns:
list of member principal ids

principalHasRole

public boolean principalHasRole(String principalId,
                                List<String> roleIds,
                                Map<String,String> qualification)
Returns whether the given principal has any of the passed role IDs with the given qualification.

Specified by:
principalHasRole in interface org.kuali.rice.kim.api.role.RoleService

principalHasRole

public boolean principalHasRole(String principalId,
                                List<String> roleIds,
                                Map<String,String> qualification,
                                boolean checkDelegations)
                         throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
principalHasRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getPrincipalIdSubListWithRole

public List<String> getPrincipalIdSubListWithRole(List<String> principalIds,
                                                  String roleNamespaceCode,
                                                  String roleName,
                                                  Map<String,String> qualification)
Returns the subset of the given principal ID list which has the given role and qualification. This is designed to be used by lookups of people by their roles.

Specified by:
getPrincipalIdSubListWithRole in interface org.kuali.rice.kim.api.role.RoleService

findRoles

public org.kuali.rice.kim.api.role.RoleQueryResults findRoles(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
                                                       throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
findRoles in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

principalInactivated

public void principalInactivated(String principalId)
Notifies all of a principal's roles and role types that the principal has been inactivated.


roleInactivated

public void roleInactivated(String roleId)
Notifies the role service that the role with the given id has been inactivated.


groupInactivated

public void groupInactivated(String groupId)
Notifies the role service that the group with the given id has been inactivated.


getFirstLevelRoleMembers

public List<org.kuali.rice.kim.api.role.RoleMembership> getFirstLevelRoleMembers(List<String> roleIds)
Gets all direct members of the roles that have ids within the given list of role ids. This method does not recurse into any nested roles.

The resulting List of role membership will contain membership for all the roles with the specified ids. The list is not guaranteed to be in any particular order and may have membership info for the different roles interleaved with each other.

Specified by:
getFirstLevelRoleMembers in interface org.kuali.rice.kim.api.role.RoleService

findRoleMembers

public org.kuali.rice.kim.api.role.RoleMemberQueryResults findRoleMembers(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
Gets role member information based on the given search criteria. The map of criteria contains attributes of RoleMembership as it's key and the values to search on as the value.

Specified by:
findRoleMembers in interface org.kuali.rice.kim.api.role.RoleService

getRoleTypeRoleMemberIds

public Set<String> getRoleTypeRoleMemberIds(String roleId)
                                     throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getRoleTypeRoleMemberIds in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getMemberParentRoleIds

public List<String> getMemberParentRoleIds(String memberType,
                                           String memberId)
Gets a list of Roles that the given member belongs to.

Specified by:
getMemberParentRoleIds in interface org.kuali.rice.kim.api.role.RoleService

findRoleMemberships

public org.kuali.rice.kim.api.role.RoleMembershipQueryResults findRoleMemberships(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
Specified by:
findRoleMemberships in interface org.kuali.rice.kim.api.role.RoleService

findDelegateMembers

public org.kuali.rice.kim.api.role.DelegateMemberQueryResults findDelegateMembers(org.kuali.rice.core.api.criteria.QueryByCriteria queryByCriteria)
Specified by:
findDelegateMembers in interface org.kuali.rice.kim.api.role.RoleService

getDelegationMembersByDelegationId

public List<org.kuali.rice.kim.api.common.delegate.DelegateMember> getDelegationMembersByDelegationId(String delegationId)
Gets delegation member information based on the given search criteria. The map of criteria contains attributes of DelegateInfo as it's key and the values to search on as the value.

Specified by:
getDelegationMembersByDelegationId in interface org.kuali.rice.kim.api.role.RoleService

getDelegationMemberByDelegationAndMemberId

public org.kuali.rice.kim.api.common.delegate.DelegateMember getDelegationMemberByDelegationAndMemberId(String delegationId,
                                                                                                        String memberId)
Specified by:
getDelegationMemberByDelegationAndMemberId in interface org.kuali.rice.kim.api.role.RoleService

getDelegationMemberById

public org.kuali.rice.kim.api.common.delegate.DelegateMember getDelegationMemberById(String delegationMemberId)
Specified by:
getDelegationMemberById in interface org.kuali.rice.kim.api.role.RoleService

getRoleResponsibilities

public List<org.kuali.rice.kim.api.role.RoleResponsibility> getRoleResponsibilities(String roleId)
Specified by:
getRoleResponsibilities in interface org.kuali.rice.kim.api.role.RoleService

getRoleMemberResponsibilityActions

public List<org.kuali.rice.kim.api.role.RoleResponsibilityAction> getRoleMemberResponsibilityActions(String roleMemberId)
Specified by:
getRoleMemberResponsibilityActions in interface org.kuali.rice.kim.api.role.RoleService

getDelegateTypeByRoleIdAndDelegateTypeCode

public org.kuali.rice.kim.api.common.delegate.DelegateType getDelegateTypeByRoleIdAndDelegateTypeCode(String roleId,
                                                                                                      org.kuali.rice.core.api.delegation.DelegationType delegateType)
                                                                                               throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getDelegateTypeByRoleIdAndDelegateTypeCode in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getDelegateTypeByDelegationId

public org.kuali.rice.kim.api.common.delegate.DelegateType getDelegateTypeByDelegationId(String delegationId)
                                                                                  throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getDelegateTypeByDelegationId in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

updateDelegateType

public org.kuali.rice.kim.api.common.delegate.DelegateType updateDelegateType(org.kuali.rice.kim.api.common.delegate.DelegateType delegateType)
                                                                       throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                                              org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
updateDelegateType in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

lookupRoles

public List<org.kuali.rice.kim.api.role.Role> lookupRoles(Map<String,String> searchCriteria)

assignGroupToRole

public org.kuali.rice.kim.api.role.RoleMember assignGroupToRole(String groupId,
                                                                String namespaceCode,
                                                                String roleName,
                                                                Map<String,String> qualifications)
                                                         throws UnsupportedOperationException
Specified by:
assignGroupToRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

assignPermissionToRole

public void assignPermissionToRole(String permissionId,
                                   String roleId)
                            throws UnsupportedOperationException
Specified by:
assignPermissionToRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

assignPrincipalToRole

public org.kuali.rice.kim.api.role.RoleMember assignPrincipalToRole(String principalId,
                                                                    String namespaceCode,
                                                                    String roleName,
                                                                    Map<String,String> qualifications)
                                                             throws UnsupportedOperationException
Specified by:
assignPrincipalToRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

assignRoleToRole

public org.kuali.rice.kim.api.role.RoleMember assignRoleToRole(String roleId,
                                                               String namespaceCode,
                                                               String roleName,
                                                               Map<String,String> qualifications)
                                                        throws UnsupportedOperationException
Specified by:
assignRoleToRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

removeGroupFromRole

public void removeGroupFromRole(String groupId,
                                String namespaceCode,
                                String roleName,
                                Map<String,String> qualifications)
                         throws UnsupportedOperationException
Specified by:
removeGroupFromRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

removePrincipalFromRole

public void removePrincipalFromRole(String principalId,
                                    String namespaceCode,
                                    String roleName,
                                    Map<String,String> qualifications)
                             throws UnsupportedOperationException
Specified by:
removePrincipalFromRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

removeRoleFromRole

public void removeRoleFromRole(String roleId,
                               String namespaceCode,
                               String roleName,
                               Map<String,String> qualifications)
                        throws UnsupportedOperationException
Specified by:
removeRoleFromRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
UnsupportedOperationException

createRoleResponsibilityAction

public org.kuali.rice.kim.api.role.RoleResponsibilityAction createRoleResponsibilityAction(org.kuali.rice.kim.api.role.RoleResponsibilityAction roleResponsibilityAction)
                                                                                    throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
createRoleResponsibilityAction in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

saveDelegationMemberForRole

public void saveDelegationMemberForRole(String delegationMemberId,
                                        String roleMemberId,
                                        String memberId,
                                        String memberTypeCode,
                                        String delegationTypeCode,
                                        String roleId,
                                        Map<String,String> qualifications,
                                        org.joda.time.DateTime activeFromDate,
                                        org.joda.time.DateTime activeToDate)
                                 throws UnsupportedOperationException
Throws:
UnsupportedOperationException

saveRole

public void saveRole(String roleId,
                     String roleName,
                     String roleDescription,
                     boolean active,
                     String kimTypeId,
                     String namespaceCode)
              throws UnsupportedOperationException
Throws:
UnsupportedOperationException

saveRoleMemberForRole

public org.kuali.rice.kim.api.role.RoleMember saveRoleMemberForRole(String roleMemberId,
                                                                    String memberId,
                                                                    String memberTypeCode,
                                                                    String roleId,
                                                                    Map<String,String> qualifications,
                                                                    org.joda.time.DateTime activeFromDate,
                                                                    org.joda.time.DateTime activeToDate)
                                                             throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

saveRoleRspActions

public void saveRoleRspActions(String roleResponsibilityActionId,
                               String roleId,
                               String roleResponsibilityId,
                               String roleMemberId,
                               String actionTypeCode,
                               String actionPolicyCode,
                               Integer priorityNumber,
                               Boolean forceAction)

createRoleMember

public org.kuali.rice.kim.api.role.RoleMember createRoleMember(org.kuali.rice.kim.api.role.RoleMember roleMember)
                                                        throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                               org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
createRoleMember in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

updateRoleMember

public org.kuali.rice.kim.api.role.RoleMember updateRoleMember(org.kuali.rice.kim.api.role.RoleMember roleMember)
                                                        throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                               org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
updateRoleMember in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

updateDelegateMember

public org.kuali.rice.kim.api.common.delegate.DelegateMember updateDelegateMember(org.kuali.rice.kim.api.common.delegate.DelegateMember delegateMember)
                                                                           throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                                                  org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
updateDelegateMember in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

createDelegateMember

public org.kuali.rice.kim.api.common.delegate.DelegateMember createDelegateMember(org.kuali.rice.kim.api.common.delegate.DelegateMember delegateMember)
                                                                           throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                                                  org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
createDelegateMember in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

removeDelegateMembers

public void removeDelegateMembers(List<org.kuali.rice.kim.api.common.delegate.DelegateMember> delegateMembers)
                           throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                  org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
removeDelegateMembers in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

createRole

public org.kuali.rice.kim.api.role.Role createRole(org.kuali.rice.kim.api.role.Role role)
                                            throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                   org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
createRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

updateRole

public org.kuali.rice.kim.api.role.Role updateRole(org.kuali.rice.kim.api.role.Role role)
                                            throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                   org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
updateRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

getNestedRoleQualifiersForPrincipalByRoleIds

public List<Map<String,String>> getNestedRoleQualifiersForPrincipalByRoleIds(String principalId,
                                                                             List<String> roleIds,
                                                                             Map<String,String> qualification)
                                                                      throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getNestedRoleQualifiersForPrincipalByRoleIds in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getRoleQualifersForPrincipalByNamespaceAndRolename

public List<Map<String,String>> getRoleQualifersForPrincipalByNamespaceAndRolename(String principalId,
                                                                                   String namespaceCode,
                                                                                   String roleName,
                                                                                   Map<String,String> qualification)
                                                                            throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getRoleQualifersForPrincipalByNamespaceAndRolename in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getRoleQualifersForPrincipalByRoleIds

public List<Map<String,String>> getRoleQualifersForPrincipalByRoleIds(String principalId,
                                                                      List<String> roleIds,
                                                                      Map<String,String> qualification)
                                                               throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getRoleQualifersForPrincipalByRoleIds in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

getNestedRoleQualifersForPrincipalByNamespaceAndRolename

public List<Map<String,String>> getNestedRoleQualifersForPrincipalByNamespaceAndRolename(String principalId,
                                                                                         String namespaceCode,
                                                                                         String roleName,
                                                                                         Map<String,String> qualification)
                                                                                  throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
getNestedRoleQualifersForPrincipalByNamespaceAndRolename in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

createDelegateType

public org.kuali.rice.kim.api.common.delegate.DelegateType createDelegateType(org.kuali.rice.kim.api.common.delegate.DelegateType delegateType)
                                                                       throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException,
                                                                              org.kuali.rice.core.api.exception.RiceIllegalStateException
Specified by:
createDelegateType in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
org.kuali.rice.core.api.exception.RiceIllegalStateException

revokePermissionFromRole

public void revokePermissionFromRole(String permissionId,
                                     String roleId)
                              throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
revokePermissionFromRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

isDerivedRole

public boolean isDerivedRole(String s)
                      throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
isDerivedRole in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException

isDynamicRoleMembership

public boolean isDynamicRoleMembership(String s)
                                throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
Specified by:
isDynamicRoleMembership in interface org.kuali.rice.kim.api.role.RoleService
Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.