org.kuali.kfs.sec.util
Class KimUtil

java.lang.Object
  extended by org.kuali.kfs.sec.util.KimUtil

public class KimUtil
extends Object


Constructor Summary
KimUtil()
           
 
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
 

Constructor Detail

KimUtil

public KimUtil()
Method Detail

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 for
memberRoleId - id of member role
membershipQualifications - 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 values
qualfication - 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 check
constraintCode - constraint code value to match
operator - operator value to match
attributeValue - 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.