Class AttributeValueDelegate
java.lang.Object
edu.internet2.middleware.grouper.attr.value.AttributeValueDelegate
-
Field Summary
Modifier and TypeFieldDescriptionstatic long
cache hits for testingstatic long
cache misses for testing -
Constructor Summary
ConstructorDescriptionAttributeValueDelegate
(AttributeAssignBaseDelegate attributeAssignBaseDelegate1) -
Method Summary
Modifier and TypeMethodDescriptionaddValue
(String attributeDefNameName, AttributeAssignValue attributeAssignValue) add a value to the attribute assignmentadd a value of any typeaddValueFloating
(String attributeDefNameName, Double value) add a value of double typeaddValueInteger
(String attributeDefNameName, Long value) add a value of integer typeaddValueMember
(String attributeDefNameName, Member value) add a value of member typeaddValueMember
(String attributeDefNameName, String memberId) add a value of member typeaddValues
(String attributeDefNameName, Collection<AttributeAssignValue> attributeAssignValues) add values to the attribute assignmentaddValuesAnyType
(String attributeDefNameName, Collection<String> values) add values of any typeaddValuesFloating
(String attributeDefNameName, Collection<Double> values) add values of double typeaddValuesInteger
(String attributeDefNameName, Collection<Long> values) add values of integer typeaddValuesMember
(String attributeDefNameName, Collection<Member> values) add values of member typeaddValuesMemberIds
(String attributeDefNameName, Collection<String> memberIds) add a values of member typeaddValuesString
(String attributeDefNameName, Collection<String> values) add values of type string.addValuesTimestamp
(String attributeDefNameName, Collection<Timestamp> values) add values of timestamp typeaddValueString
(String attributeDefNameName, String value) add a value of type string.addValueTimestamp
(String attributeDefNameName, Timestamp value) add a value of timestamp typeassignValue
(String attributeDefNameName, String value) assign a value of any typeassignValueFloating
(String attributeDefNameName, Double value) assign a value floatingassignValueInteger
(String attributeDefNameName, Long value) assign a value integerassignValueMember
(String attributeDefNameName, Member member) assign a value of member typeassignValueMember
(String attributeDefNameName, String memberId) assign a value memberIdassignValuesAnyType
(String attributeDefNameName, Set<String> values, boolean deleteOrphans) assign a values of any typeassignValuesFloating
(String attributeDefNameName, Set<Double> values, boolean deleteOrphans) assign a values of floating typeassignValuesInteger
(String attributeDefNameName, Set<Long> values, boolean deleteOrphans) assign a values of integer typeassignValuesMember
(String attributeDefNameName, Set<Member> values, boolean deleteOrphans) assign a values of member typeassignValuesMemberIds
(String attributeDefNameName, Set<String> memberIds, boolean deleteOrphans) assign a values of memberid typeassignValuesString
(String attributeDefNameName, Set<String> values, boolean deleteOrphans) assign a values of string typeassignValuesTimestamp
(String attributeDefNameName, Set<Timestamp> values, boolean deleteOrphans) assign a values of timestamp typeassignValueString
(String attributeDefNameName, String value) assign a stringassignValueTimestamp
(String attributeDefNameName, Timestamp timestamp) assign a value of member typedeleteValue
(String attributeDefNameName, AttributeAssignValue attributeAssignValue) remove this valuedeleteValue
(String attributeDefNameName, String value) remove this value of any typedeleteValueFloating
(String attributeDefNameName, Double value) remove this value of floating typedeleteValueInteger
(String attributeDefNameName, Long value) remove this value of integer typedeleteValueMember
(String attributeDefNameName, Member value) remove this value of member typedeleteValueMember
(String attributeDefNameName, String value) remove this value of member id typedeleteValues
(String attributeDefNameName, Collection<AttributeAssignValue> attributeAssignValues) remove this valuedeleteValuesAnyType
(String attributeDefNameName, Collection<String> values) remove this value of any typedeleteValuesFloating
(String attributeDefNameName, Collection<Double> values) remove this value of floating typedeleteValuesInteger
(String attributeDefNameName, Collection<Long> values) remove this value of integer typedeleteValuesMember
(String attributeDefNameName, Collection<Member> members) remove this value of member typedeleteValuesMemberIds
(String attributeDefNameName, Collection<String> memberIds) remove this value of string typedeleteValuesString
(String attributeDefNameName, Collection<String> values) remove this value of string typedeleteValuesTimestamp
(String attributeDefNameName, Collection<Timestamp> values) remove this value of timestamp typedeleteValueString
(String attributeDefNameName, String value) remove this value of string typedeleteValueTimestamp
(String attributeDefNameName, Timestamp value) remove this value of any typefindValue
(String attributeDefNameName, AttributeAssignValue attributeAssignValue) find this value (return one if more than one)find this valuefindValueFloating
(String attributeDefNameName, Double value) find this valuefindValueInteger
(String attributeDefNameName, Long value) find this valuefindValueMember
(String attributeDefNameName, Member value) find this valuefindValueMember
(String attributeDefNameName, String value) find this valuefindValues
(String attributeDefNameName, AttributeAssignValue attributeAssignValue) find these valuesfindValues
(String attributeDefNameName, String value) find this valuefindValuesFloating
(String attributeDefNameName, Double value) find this valuefindValuesInteger
(String attributeDefNameName, Long value) find these valuesfindValuesMember
(String attributeDefNameName, Member value) find this valuefindValuesMember
(String attributeDefNameName, String value) find this valuefindValuesString
(String attributeDefNameName, String value) find these valuesfindValuesTimestamp
(String attributeDefNameName, Timestamp value) find these valuesfindValueString
(String attributeDefNameName, String value) find this valuefindValueTimestamp
(String attributeDefNameName, Timestamp value) find this valuereturn the cache of all attribute assigns, might be null if not cachingretrieveAttributeAssignValue
(String attributeDefNameName) get the attribute assign value if attribute not assigned, return nullretrieveValueFloating
(String attributeDefNameName) get the floating value (must be floating type).retrieveValueInteger
(String attributeDefNameName) get the integer value (must be floating type).retrieveValueMember
(String attributeDefNameName) get the member value (must be member type).retrieveValueMemberId
(String attributeDefNameName) get the member id value (must be member type).retrieveValuesFloating
(String attributeDefNameName) get the floating values (must be floating type).retrieveValuesInteger
(String attributeDefNameName) get the integer values (must be integer type).retrieveValuesMember
(String attributeDefNameName) get the member values (must be member type).retrieveValuesMemberId
(String attributeDefNameName) get the member id values (must be member type).retrieveValuesString
(String attributeDefNameName) get the string values (any type).retrieveValuesTimestamp
(String attributeDefNameName) get the member values (must be floating type).retrieveValueString
(String attributeDefNameName) get the string value (any type).retrieveValueTimestamp
(String attributeDefNameName) get the timestamp value (must be timestamp type).void
setAllAttributeAssignValuesForCache
(Map<AttributeAssign, Set<AttributeAssignValue>> theAllAttributeAssignValuesForCache)
-
Field Details
-
allAttributeAssignValuesCacheHitsForTest
public static long allAttributeAssignValuesCacheHitsForTestcache hits for testing -
allAttributeAssignValuesCacheMissesForTest
public static long allAttributeAssignValuesCacheMissesForTestcache misses for testing
-
-
Constructor Details
-
AttributeValueDelegate
- Parameters:
attributeAssignBaseDelegate1
-
-
-
Method Details
-
assignValue
assign a value of any type- Parameters:
attributeDefNameName
-value
-- Returns:
- the value object
-
assignValueString
assign a string- Parameters:
attributeDefNameName
-value
-- Returns:
- the value object
-
assignValueInteger
assign a value integer- Parameters:
attributeDefNameName
-value
-- Returns:
- the value object
-
assignValueFloating
assign a value floating- Parameters:
attributeDefNameName
-value
-- Returns:
- the value object
-
assignValueMember
assign a value memberId- Parameters:
attributeDefNameName
-memberId
-- Returns:
- the value object
-
assignValueMember
assign a value of member type- Parameters:
attributeDefNameName
-member
-- Returns:
- the value object
-
assignValueTimestamp
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
get the floating value (must be floating type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValueInteger
get the integer value (must be floating type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValueString
get the string value (any type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveAttributeAssignValue
get the attribute assign value if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the attribute assign value
-
retrieveValueMember
get the member value (must be member type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValueMemberId
get the member id value (must be member type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValueTimestamp
get the timestamp value (must be timestamp type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValuesMember
get the member values (must be member type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValuesString
get the string values (any type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValuesInteger
get the integer values (must be integer type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValuesFloating
get the floating values (must be floating type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the floating value
-
retrieveValuesMemberId
get the member id values (must be member type). if attribute not assigned, return null- Parameters:
attributeDefNameName
-- Returns:
- the value
-
retrieveValuesTimestamp
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
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (any type)- Returns:
- the value if found, or null if not
-
findValueFloating
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (floating type)- Returns:
- the value if found, or null if not
-
findValueInteger
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (integer type)- Returns:
- the value if found, or null if not
-
findValueMember
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (floating type)- Returns:
- the value if found, or null if not
-
findValueMember
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- 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 findattributeAssignValue
- to find (by value)- Returns:
- the value if found, or null if not
-
findValues
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (any type)- Returns:
- the value if found, or empty if not
-
findValuesFloating
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (floating type)- Returns:
- the value if found, or empty if not
-
findValuesInteger
find these values- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (integer type)- Returns:
- the value if found, or empty if not
-
findValuesMember
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (floating type)- Returns:
- the value if found, or empty if not
-
findValuesMember
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (member type)- Returns:
- the value if found, or empty if not
-
findValuesString
find these values- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (string type)- Returns:
- the value if found, or empty if not
-
findValuesTimestamp
find these values- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (timestamp type)- Returns:
- the value if found, or empty if not
-
findValueString
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- to find (string type)- Returns:
- the value if found, or null if not
-
findValueTimestamp
find this value- Parameters:
attributeDefNameName
- name of attributeDefName to findvalue
- 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 toattributeAssignValue
-- Returns:
- result
-
addValue
add a value of any type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
addValueFloating
add a value of double type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
addValueInteger
add a value of integer type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
addValueMember
add a value of member type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
addValueMember
add a value of member type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tomemberId
-- 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 toattributeAssignValues
-- 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 tovalues
-- 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 tovalues
-- Returns:
- the value object
-
addValuesInteger
add values of integer type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalues
-- Returns:
- the value object
-
addValuesMember
add values of member type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalues
-- 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 tomemberIds
-- Returns:
- the value object
-
addValuesString
add values of type string. use addValue() to add a value of any type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalues
-- 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 tovalues
-- Returns:
- the value objects
-
addValueString
add a value of type string. use addValue() to add a value of any type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
addValueTimestamp
add a value of timestamp type- Parameters:
attributeDefNameName
- name of attributeDefName to add a value tovalue
-- Returns:
- the value object
-
deleteValue
public AttributeValueResult deleteValue(String attributeDefNameName, AttributeAssignValue attributeAssignValue) remove this value- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromattributeAssignValue
-- Returns:
- result
-
deleteValue
remove this value of any type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
deleteValueFloating
remove this value of floating type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
deleteValueInteger
remove this value of integer type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
deleteValueMember
remove this value of member type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
deleteValueMember
remove this value of member id type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- 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 fromattributeAssignValues
-- 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 fromvalues
-- 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 fromvalues
-- 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 fromvalues
-- 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 frommembers
-- 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 frommemberIds
-- 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 fromvalues
-- 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 fromvalues
-- Returns:
- the timestamps that were deleted
-
deleteValueString
remove this value of string type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
deleteValueTimestamp
remove this value of any type- Parameters:
attributeDefNameName
- name of attributeDefName to delete a value fromvalue
-- Returns:
- the strings that were deleted
-
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
-