org.kuali.rice.kim.framework.common.delegate
Interface DelegationTypeService

All Superinterfaces:
KimTypeService
All Known Implementing Classes:
ActionRequestDerivedRoleTypeServiceImpl, CampusRoleTypeServiceImpl, DerivedRoleTypeServiceBase, PermissionDerivedRoleTypeServiceImpl, PrincipalDerivedRoleTypeServiceImpl, RoleTypeServiceBase, RouteLogDerivedRoleTypeServiceImpl

public interface DelegationTypeService
extends KimTypeService

A KimTypeService with specific methods for Delegations.


Method Summary
 boolean doesDelegationQualifierMatchQualification(Map<String,String> qualification, Map<String,String> delegationQualifier)
          Gets whether a role assignment with the given qualifier is applicable for the given qualification.
 
Methods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes
 

Method Detail

doesDelegationQualifierMatchQualification

boolean doesDelegationQualifierMatchQualification(Map<String,String> qualification,
                                                  Map<String,String> delegationQualifier)
                                                  throws RiceIllegalArgumentException
Gets whether a role assignment with the given qualifier is applicable for the given qualification. For example, the qualifier for a role could be as follows: chartOfAccountsCode = BL organizationCode = ARSC descendsHierarchy = true The qualification could be: chartOfAccountsCode = BL organizationCode = PSY (reports to BL-ARSC) This method would return true for this set of arguments. This would require a query of the client app's organization hierarchy, so an implementation of this sort must be done by a service which lives within the client app and will be called remotely by KIM. The contents of the passed in attribute sets should not be modified as they may be used in future calls by the role service.

Parameters:
qualification - the qualification. cannot be null.
delegationQualifier - the delegation qualifier. cannot be null.
Returns:
true if the qualifications match
Throws:
IllegalArgumentException - if the qualification or delegationQualifier is null
RiceIllegalArgumentException


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.