org.kuali.rice.kim.service
Interface RoleUpdateService

All Known Subinterfaces:
RoleManagementService
All Known Implementing Classes:
RoleManagementServiceImpl, RoleUpdateServiceImpl

public interface RoleUpdateService

This service provides operations for creating and updating roles.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void assignGroupToRole(String groupId, String namespaceCode, String roleName, AttributeSet qualifications)
          Assigns the group with the given id to the role with the specified namespace code and name with the supplied set of qualifications.
 void assignPermissionToRole(String permissionId, String roleId)
          Assigns the given permission to the given role
 void assignPrincipalToRole(String principalId, String namespaceCode, String roleName, AttributeSet qualifications)
          Assigns the principal with the given id to the role with the specified namespace code and name with the supplied set of qualifications.
 void assignRoleToRole(String roleId, String namespaceCode, String roleName, AttributeSet qualifications)
          Assigns the role with the given id to the role with the specified namespace code and name with the supplied set of qualifications.
 String getNextAvailableRoleId()
          Returns id available for a new role
 void removeGroupFromRole(String groupId, String namespaceCode, String roleName, AttributeSet qualifications)
          Remove the group with the given id and qualifications from the role with the specified namespace code and role name.
 void removePrincipalFromRole(String principalId, String namespaceCode, String roleName, AttributeSet qualifications)
          Remove the principal with the given id and qualifications from the role with the specified namespace code and role name.
 void removeRoleFromRole(String roleId, String namespaceCode, String roleName, AttributeSet qualifications)
          Remove the group with the given id and qualifications from the role with the specified namespace code and role name.
 void saveDelegationMemberForRole(String delegationMemberId, String roleMemberId, String memberId, String memberTypeCode, String delegationTypeCode, String roleId, AttributeSet qualifications, Date activeFromDate, Date activeToDate)
          Assigns the member with the given id as a delegation member to the role with the specified namespace code and name with the supplied set of qualifications.
 void saveRole(String roleId, String roleName, String roleDescription, boolean active, String kimTypeId, String namespaceCode)
          Creates or updates role with given attributes
 RoleMemberCompleteInfo saveRoleMemberForRole(String roleMemberId, String memberId, String memberTypeCode, String roleId, AttributeSet qualifications, Date activeFromDate, Date activeToDate)
          Assigns the role with the given id to the role with the specified namespace code and name with the supplied set of qualifications.
 void saveRoleRspActions(String roleResponsibilityActionId, String roleId, String roleResponsibilityId, String roleMemberId, String actionTypeCode, String actionPolicyCode, Integer priorityNumber, Boolean forceAction)
           
 

Method Detail

assignPrincipalToRole

void assignPrincipalToRole(String principalId,
                           String namespaceCode,
                           String roleName,
                           AttributeSet qualifications)
                           throws UnsupportedOperationException
Assigns the principal with the given id to the role with the specified namespace code and name with the supplied set of qualifications.

Throws:
UnsupportedOperationException

assignGroupToRole

void assignGroupToRole(String groupId,
                       String namespaceCode,
                       String roleName,
                       AttributeSet qualifications)
                       throws UnsupportedOperationException
Assigns the group with the given id to the role with the specified namespace code and name with the supplied set of qualifications.

Throws:
UnsupportedOperationException

assignRoleToRole

void assignRoleToRole(String roleId,
                      String namespaceCode,
                      String roleName,
                      AttributeSet qualifications)
                      throws UnsupportedOperationException
Assigns the role with the given id to the role with the specified namespace code and name with the supplied set of qualifications.

Throws:
UnsupportedOperationException

saveRoleMemberForRole

RoleMemberCompleteInfo saveRoleMemberForRole(String roleMemberId,
                                             String memberId,
                                             String memberTypeCode,
                                             String roleId,
                                             AttributeSet qualifications,
                                             Date activeFromDate,
                                             Date activeToDate)
                                             throws UnsupportedOperationException
Assigns the role with the given id to the role with the specified namespace code and name with the supplied set of qualifications.

Throws:
UnsupportedOperationException

saveRoleRspActions

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

saveDelegationMemberForRole

void saveDelegationMemberForRole(String delegationMemberId,
                                 String roleMemberId,
                                 String memberId,
                                 String memberTypeCode,
                                 String delegationTypeCode,
                                 String roleId,
                                 AttributeSet qualifications,
                                 Date activeFromDate,
                                 Date activeToDate)
                                 throws UnsupportedOperationException
Assigns the member with the given id as a delegation member to the role with the specified namespace code and name with the supplied set of qualifications.

Throws:
UnsupportedOperationException

removePrincipalFromRole

void removePrincipalFromRole(String principalId,
                             String namespaceCode,
                             String roleName,
                             AttributeSet qualifications)
                             throws UnsupportedOperationException
Remove the principal with the given id and qualifications from the role with the specified namespace code and role name.

Throws:
UnsupportedOperationException

removeGroupFromRole

void removeGroupFromRole(String groupId,
                         String namespaceCode,
                         String roleName,
                         AttributeSet qualifications)
                         throws UnsupportedOperationException
Remove the group with the given id and qualifications from the role with the specified namespace code and role name.

Throws:
UnsupportedOperationException

removeRoleFromRole

void removeRoleFromRole(String roleId,
                        String namespaceCode,
                        String roleName,
                        AttributeSet qualifications)
                        throws UnsupportedOperationException
Remove the group with the given id and qualifications from the role with the specified namespace code and role name.

Throws:
UnsupportedOperationException

saveRole

void saveRole(String roleId,
              String roleName,
              String roleDescription,
              boolean active,
              String kimTypeId,
              String namespaceCode)
              throws UnsupportedOperationException
Creates or updates role with given attributes

Throws:
UnsupportedOperationException

getNextAvailableRoleId

String getNextAvailableRoleId()
                              throws UnsupportedOperationException
Returns id available for a new role

Throws:
UnsupportedOperationException

assignPermissionToRole

void assignPermissionToRole(String permissionId,
                            String roleId)
                            throws UnsupportedOperationException
Assigns the given permission to the given role

Throws:
UnsupportedOperationException


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