Class AttributeValueDelegate

java.lang.Object
edu.internet2.middleware.grouper.attr.value.AttributeValueDelegate

public class AttributeValueDelegate extends Object
  • Field Details

    • allAttributeAssignValuesCacheHitsForTest

      public static long allAttributeAssignValuesCacheHitsForTest
      cache hits for testing
    • allAttributeAssignValuesCacheMissesForTest

      public static long allAttributeAssignValuesCacheMissesForTest
      cache misses for testing
  • Constructor Details

    • AttributeValueDelegate

      public AttributeValueDelegate(AttributeAssignBaseDelegate attributeAssignBaseDelegate1)
      Parameters:
      attributeAssignBaseDelegate1 -
  • Method Details

    • assignValue

      public AttributeValueResult assignValue(String attributeDefNameName, String value)
      assign a value of any type
      Parameters:
      attributeDefNameName -
      value -
      Returns:
      the value object
    • assignValueString

      public AttributeValueResult assignValueString(String attributeDefNameName, String value)
      assign a string
      Parameters:
      attributeDefNameName -
      value -
      Returns:
      the value object
    • assignValueInteger

      public AttributeValueResult assignValueInteger(String attributeDefNameName, Long value)
      assign a value integer
      Parameters:
      attributeDefNameName -
      value -
      Returns:
      the value object
    • assignValueFloating

      public AttributeValueResult assignValueFloating(String attributeDefNameName, Double value)
      assign a value floating
      Parameters:
      attributeDefNameName -
      value -
      Returns:
      the value object
    • assignValueMember

      public AttributeValueResult assignValueMember(String attributeDefNameName, String memberId)
      assign a value memberId
      Parameters:
      attributeDefNameName -
      memberId -
      Returns:
      the value object
    • assignValueMember

      public AttributeValueResult assignValueMember(String attributeDefNameName, Member member)
      assign a value of member type
      Parameters:
      attributeDefNameName -
      member -
      Returns:
      the value object
    • assignValueTimestamp

      public AttributeValueResult assignValueTimestamp(String attributeDefNameName, Timestamp timestamp)
      assign a value of member type
      Parameters:
      attributeDefNameName -
      timestamp -
      Returns:
      the value object
    • assignValuesAnyType

      public AttributeValueResult assignValuesAnyType(String attributeDefNameName, Set<String> values, boolean deleteOrphans)
      assign a values of any type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesInteger

      public AttributeValueResult assignValuesInteger(String attributeDefNameName, Set<Long> values, boolean deleteOrphans)
      assign a values of integer type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesFloating

      public AttributeValueResult assignValuesFloating(String attributeDefNameName, Set<Double> values, boolean deleteOrphans)
      assign a values of floating type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesTimestamp

      public AttributeValueResult assignValuesTimestamp(String attributeDefNameName, Set<Timestamp> values, boolean deleteOrphans)
      assign a values of timestamp type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesMember

      public AttributeValueResult assignValuesMember(String attributeDefNameName, Set<Member> values, boolean deleteOrphans)
      assign a values of member type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesMemberIds

      public AttributeValueResult assignValuesMemberIds(String attributeDefNameName, Set<String> memberIds, boolean deleteOrphans)
      assign a values of memberid type
      Parameters:
      attributeDefNameName -
      memberIds -
      deleteOrphans -
      Returns:
      the value object
    • assignValuesString

      public AttributeValueResult assignValuesString(String attributeDefNameName, Set<String> values, boolean deleteOrphans)
      assign a values of string type
      Parameters:
      attributeDefNameName -
      values -
      deleteOrphans -
      Returns:
      the value object
    • retrieveValueFloating

      public Double retrieveValueFloating(String attributeDefNameName)
      get the floating value (must be floating type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValueInteger

      public Long retrieveValueInteger(String attributeDefNameName)
      get the integer value (must be floating type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValueString

      public String retrieveValueString(String attributeDefNameName)
      get the string value (any type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveAttributeAssignValue

      public AttributeAssignValue retrieveAttributeAssignValue(String attributeDefNameName)
      get the attribute assign value if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the attribute assign value
    • retrieveValueMember

      public Member retrieveValueMember(String attributeDefNameName)
      get the member value (must be member type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValueMemberId

      public String retrieveValueMemberId(String attributeDefNameName)
      get the member id value (must be member type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValueTimestamp

      public Timestamp retrieveValueTimestamp(String attributeDefNameName)
      get the timestamp value (must be timestamp type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValuesMember

      public List<Member> retrieveValuesMember(String attributeDefNameName)
      get the member values (must be member type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValuesString

      public List<String> retrieveValuesString(String attributeDefNameName)
      get the string values (any type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValuesInteger

      public List<Long> retrieveValuesInteger(String attributeDefNameName)
      get the integer values (must be integer type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValuesFloating

      public List<Double> retrieveValuesFloating(String attributeDefNameName)
      get the floating values (must be floating type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the floating value
    • retrieveValuesMemberId

      public List<String> retrieveValuesMemberId(String attributeDefNameName)
      get the member id values (must be member type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the value
    • retrieveValuesTimestamp

      public List<Timestamp> retrieveValuesTimestamp(String attributeDefNameName)
      get the member values (must be floating type). if attribute not assigned, return null
      Parameters:
      attributeDefNameName -
      Returns:
      the floating value
    • findValue

      public AttributeAssignValue findValue(String attributeDefNameName, AttributeAssignValue attributeAssignValue)
      find this value (return one if more than one)
      Parameters:
      attributeAssignValue - to find (by value)
      attributeDefNameName - name of attributeDefName to find
      Returns:
      the value if found, or null if not
    • findValue

      public AttributeAssignValue findValue(String attributeDefNameName, String value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (any type)
      Returns:
      the value if found, or null if not
    • findValueFloating

      public AttributeAssignValue findValueFloating(String attributeDefNameName, Double value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (floating type)
      Returns:
      the value if found, or null if not
    • findValueInteger

      public AttributeAssignValue findValueInteger(String attributeDefNameName, Long value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (integer type)
      Returns:
      the value if found, or null if not
    • findValueMember

      public AttributeAssignValue findValueMember(String attributeDefNameName, Member value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (floating type)
      Returns:
      the value if found, or null if not
    • findValueMember

      public AttributeAssignValue findValueMember(String attributeDefNameName, String value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (member type)
      Returns:
      the value if found, or null if not
    • findValues

      public Set<AttributeAssignValue> findValues(String attributeDefNameName, AttributeAssignValue attributeAssignValue)
      find these values
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      attributeAssignValue - to find (by value)
      Returns:
      the value if found, or null if not
    • findValues

      public Set<AttributeAssignValue> findValues(String attributeDefNameName, String value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (any type)
      Returns:
      the value if found, or empty if not
    • findValuesFloating

      public Set<AttributeAssignValue> findValuesFloating(String attributeDefNameName, Double value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (floating type)
      Returns:
      the value if found, or empty if not
    • findValuesInteger

      public Set<AttributeAssignValue> findValuesInteger(String attributeDefNameName, Long value)
      find these values
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (integer type)
      Returns:
      the value if found, or empty if not
    • findValuesMember

      public Set<AttributeAssignValue> findValuesMember(String attributeDefNameName, Member value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (floating type)
      Returns:
      the value if found, or empty if not
    • findValuesMember

      public Set<AttributeAssignValue> findValuesMember(String attributeDefNameName, String value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (member type)
      Returns:
      the value if found, or empty if not
    • findValuesString

      public Set<AttributeAssignValue> findValuesString(String attributeDefNameName, String value)
      find these values
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (string type)
      Returns:
      the value if found, or empty if not
    • findValuesTimestamp

      public Set<AttributeAssignValue> findValuesTimestamp(String attributeDefNameName, Timestamp value)
      find these values
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (timestamp type)
      Returns:
      the value if found, or empty if not
    • findValueString

      public AttributeAssignValue findValueString(String attributeDefNameName, String value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (string type)
      Returns:
      the value if found, or null if not
    • findValueTimestamp

      public AttributeAssignValue findValueTimestamp(String attributeDefNameName, Timestamp value)
      find this value
      Parameters:
      attributeDefNameName - name of attributeDefName to find
      value - to find (timestamp type)
      Returns:
      the value if found, or null if not
    • addValue

      public AttributeValueResult addValue(String attributeDefNameName, AttributeAssignValue attributeAssignValue)
      add a value to the attribute assignment
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      attributeAssignValue -
      Returns:
      result
    • addValue

      public AttributeValueResult addValue(String attributeDefNameName, String value)
      add a value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • addValueFloating

      public AttributeValueResult addValueFloating(String attributeDefNameName, Double value)
      add a value of double type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • addValueInteger

      public AttributeValueResult addValueInteger(String attributeDefNameName, Long value)
      add a value of integer type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • addValueMember

      public AttributeValueResult addValueMember(String attributeDefNameName, Member value)
      add a value of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • addValueMember

      public AttributeValueResult addValueMember(String attributeDefNameName, String memberId)
      add a value of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      memberId -
      Returns:
      the value object
    • addValues

      public AttributeValueResult addValues(String attributeDefNameName, Collection<AttributeAssignValue> attributeAssignValues)
      add values to the attribute assignment
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      attributeAssignValues -
      Returns:
      result
    • addValuesAnyType

      public AttributeValueResult addValuesAnyType(String attributeDefNameName, Collection<String> values)
      add values of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value object
    • addValuesFloating

      public AttributeValueResult addValuesFloating(String attributeDefNameName, Collection<Double> values)
      add values of double type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value object
    • addValuesInteger

      public AttributeValueResult addValuesInteger(String attributeDefNameName, Collection<Long> values)
      add values of integer type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value object
    • addValuesMember

      public AttributeValueResult addValuesMember(String attributeDefNameName, Collection<Member> values)
      add values of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value object
    • addValuesMemberIds

      public AttributeValueResult addValuesMemberIds(String attributeDefNameName, Collection<String> memberIds)
      add a values of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      memberIds -
      Returns:
      the value object
    • addValuesString

      public AttributeValueResult addValuesString(String attributeDefNameName, Collection<String> values)
      add values of type string. use addValue() to add a value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value object
    • addValuesTimestamp

      public AttributeValueResult addValuesTimestamp(String attributeDefNameName, Collection<Timestamp> values)
      add values of timestamp type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      values -
      Returns:
      the value objects
    • addValueString

      public AttributeValueResult addValueString(String attributeDefNameName, String value)
      add a value of type string. use addValue() to add a value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • addValueTimestamp

      public AttributeValueResult addValueTimestamp(String attributeDefNameName, Timestamp value)
      add a value of timestamp type
      Parameters:
      attributeDefNameName - name of attributeDefName to add a value to
      value -
      Returns:
      the value object
    • deleteValue

      public AttributeValueResult deleteValue(String attributeDefNameName, AttributeAssignValue attributeAssignValue)
      remove this value
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      attributeAssignValue -
      Returns:
      result
    • deleteValue

      public AttributeValueResult deleteValue(String attributeDefNameName, String value)
      remove this value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValueFloating

      public AttributeValueResult deleteValueFloating(String attributeDefNameName, Double value)
      remove this value of floating type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValueInteger

      public AttributeValueResult deleteValueInteger(String attributeDefNameName, Long value)
      remove this value of integer type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValueMember

      public AttributeValueResult deleteValueMember(String attributeDefNameName, Member value)
      remove this value of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValueMember

      public AttributeValueResult deleteValueMember(String attributeDefNameName, String value)
      remove this value of member id type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValues

      public AttributeValueResult deleteValues(String attributeDefNameName, Collection<AttributeAssignValue> attributeAssignValues)
      remove this value
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      attributeAssignValues -
      Returns:
      the result
    • deleteValuesAnyType

      public AttributeValueResult deleteValuesAnyType(String attributeDefNameName, Collection<String> values)
      remove this value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      values -
      Returns:
      the strings that were deleted
    • deleteValuesFloating

      public AttributeValueResult deleteValuesFloating(String attributeDefNameName, Collection<Double> values)
      remove this value of floating type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      values -
      Returns:
      the strings that were deleted
    • deleteValuesInteger

      public AttributeValueResult deleteValuesInteger(String attributeDefNameName, Collection<Long> values)
      remove this value of integer type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      values -
      Returns:
      the strings that were deleted
    • deleteValuesMember

      public AttributeValueResult deleteValuesMember(String attributeDefNameName, Collection<Member> members)
      remove this value of member type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      members -
      Returns:
      the strings that were deleted
    • deleteValuesMemberIds

      public AttributeValueResult deleteValuesMemberIds(String attributeDefNameName, Collection<String> memberIds)
      remove this value of string type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      memberIds -
      Returns:
      the strings that were deleted
    • deleteValuesString

      public AttributeValueResult deleteValuesString(String attributeDefNameName, Collection<String> values)
      remove this value of string type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      values -
      Returns:
      the strings that were deleted
    • deleteValuesTimestamp

      public AttributeValueResult deleteValuesTimestamp(String attributeDefNameName, Collection<Timestamp> values)
      remove this value of timestamp type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      values -
      Returns:
      the timestamps that were deleted
    • deleteValueString

      public AttributeValueResult deleteValueString(String attributeDefNameName, String value)
      remove this value of string type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • deleteValueTimestamp

      public AttributeValueResult deleteValueTimestamp(String attributeDefNameName, Timestamp value)
      remove this value of any type
      Parameters:
      attributeDefNameName - name of attributeDefName to delete a value from
      value -
      Returns:
      the strings that were deleted
    • getAllAttributeAssignsForCache

      public Map<AttributeAssign,Set<AttributeAssignValue>> getAllAttributeAssignsForCache()
      return the cache of all attribute assigns, might be null if not caching
      Returns:
      the allAttributeAssignsCache
    • setAllAttributeAssignValuesForCache

      public void setAllAttributeAssignValuesForCache(Map<AttributeAssign,Set<AttributeAssignValue>> theAllAttributeAssignValuesForCache)
      Parameters:
      theAllAttributeAssignValuesForCache - the Set of attributes to put in cache