org.kuali.kfs.sec.util
Class KimUtil
java.lang.Object
org.kuali.kfs.sec.util.KimUtil
public class KimUtil
- extends Object
Method Summary |
static boolean |
doMembershipQualificationsMatchValues(org.kuali.rice.kim.bo.types.dto.AttributeSet membershipQualifications,
String constraintCode,
String operator,
String attributeValue)
Determines whether each of the qualifying values in the given qualification (AttributeSet) match the given corresponding values |
static boolean |
doQualficationsMatch(org.kuali.rice.kim.bo.types.dto.AttributeSet qualfiicationToMatch,
org.kuali.rice.kim.bo.types.dto.AttributeSet qualfication)
Determines whether an AttributeSet has the same keys and values as another AttributeSet |
static org.kuali.rice.kim.bo.role.dto.RoleMembershipInfo |
getRoleMembershipInfoForMemberType(String roleId,
String memberRoleId,
String memberType,
org.kuali.rice.kim.bo.types.dto.AttributeSet membershipQualifications)
Finds the role membership (if exists) for the given role and member id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KimUtil
public KimUtil()
getRoleMembershipInfoForMemberType
public static org.kuali.rice.kim.bo.role.dto.RoleMembershipInfo getRoleMembershipInfoForMemberType(String roleId,
String memberRoleId,
String memberType,
org.kuali.rice.kim.bo.types.dto.AttributeSet membershipQualifications)
- Finds the role membership (if exists) for the given role and member id
- Parameters:
roleId
- id of role to find member formemberRoleId
- id of member rolemembershipQualifications
- Qualifications to match role membership
- Returns:
- RoleMembershipInfo containing information on the member record, or null if the member id is not assigned to the role
doQualficationsMatch
public static boolean doQualficationsMatch(org.kuali.rice.kim.bo.types.dto.AttributeSet qualfiicationToMatch,
org.kuali.rice.kim.bo.types.dto.AttributeSet qualfication)
- Determines whether an AttributeSet has the same keys and values as another AttributeSet
- Parameters:
qualfiicationToMatch
- AttributeSet to match keys and valuesqualfication
- AttributeSet for matching
- Returns:
- boolean if second AttributeSet has same keys and values as first
doMembershipQualificationsMatchValues
public static boolean doMembershipQualificationsMatchValues(org.kuali.rice.kim.bo.types.dto.AttributeSet membershipQualifications,
String constraintCode,
String operator,
String attributeValue)
- Determines whether each of the qualifying values in the given qualification (AttributeSet) match the given corresponding values
- Parameters:
membershipQualifications
- AttributeSet containing qualifying values to checkconstraintCode
- constraint code value to matchoperator
- operator value to matchattributeValue
- attribute value to match
- Returns:
- boolean true if all qualifying values match the given values, false if at least one qualifying value does not match
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.