Class AttributeAssignValueDelegate
java.lang.Object
edu.internet2.middleware.grouper.attr.value.AttributeAssignValueDelegate
delegate privilege calls from attribute defs
-
Field Summary
Modifier and TypeFieldDescriptionstatic long
cache hits for testingstatic long
cache misses for testing -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValue
(AttributeAssignValue attributeAssignValue) add a value to the attribute assignmentadd a value of any typeaddValueFloating
(Double value) add a value of double typeaddValueInteger
(Long value) add a value of integer typeaddValueMember
(Member value) add a value of member typeaddValueMember
(String value) add a value of member typeaddValueObject
(Object value) add a value of any typeaddValues
(Collection<AttributeAssignValue> attributeAssignValues) add values to the attribute assignmentaddValuesAnyType
(Collection<String> values) add values of any typeaddValuesFloating
(Collection<Double> values) add values of double typeaddValuesInteger
(Collection<Long> values) add values of integer typeaddValuesMember
(Collection<Member> values) add values of member typeaddValuesMemberIds
(Collection<String> values) add a values of member typeaddValuesString
(Collection<String> values) add values of type string.addValuesTimestamp
(Collection<Timestamp> values) add values of timestamp typeaddValueString
(String value) add a value of type string.addValueTimestamp
(Timestamp value) add a value of timestamp typeassignValue
(AttributeAssignValue attributeAssignValue) assign a value to this assignment.assignValue
(String value) assign a value of any typeassignValueFloating
(Double value) assign a value of type double.assignValueInteger
(Long value) assign a value of type integer.assignValueMember
(Member value) assign a value of type member.assignValueMember
(String value) assign a value of type member.assignValueObject
(Object value) assign a value of any typeassignValues
(Set<AttributeAssignValue> attributeAssignValues, boolean deleteOrphans) replace the values.assignValuesAnyType
(Set<String> values, boolean deleteOrphans) replace the values.assignValuesFloating
(Set<Double> values, boolean deleteOrphans) replace the values.assignValuesInteger
(Set<Long> values, boolean deleteOrphans) replace the values.assignValuesMember
(Set<Member> values, boolean deleteOrphans) replace the values.assignValuesMemberIds
(Set<String> values, boolean deleteOrphans) replace the values.assignValuesObject
(Set<Object> values, boolean deleteOrphans) replace the values.assignValuesString
(Set<String> values, boolean deleteOrphans) replace the values.assignValuesTimestamp
(Set<Timestamp> values, boolean deleteOrphans) replace the values.assignValueString
(String value) assign a value of type string.assignValueTimestamp
(Timestamp value) assign a value of type timestamp.deleteValue
(AttributeAssignValue attributeAssignValue) remove this valuedeleteValue
(String value) remove this value of any typedeleteValueFloating
(Double value) remove this value of floating typedeleteValueInteger
(Long value) remove this value of integer typedeleteValueMember
(Member value) remove this value of member typedeleteValueMember
(String value) remove this value of member id typedeleteValueObject
(Object value) remove this value of any typedeleteValues
(Collection<AttributeAssignValue> attributeAssignValues) remove this valuedeleteValuesAnyType
(Collection<String> values) remove this value of any typedeleteValuesFloating
(Collection<Double> values) remove this value of floating typedeleteValuesInteger
(Collection<Long> values) remove this value of integer typedeleteValuesMember
(Collection<Member> members) remove this value of member typedeleteValuesMemberIds
(Collection<String> memberIds) remove this value of string typedeleteValuesObject
(Collection<Object> values) remove this value of any typedeleteValuesString
(Collection<String> values) remove this value of string typedeleteValuesTimestamp
(Collection<Timestamp> values) remove this value of timestamp typedeleteValueString
(String value) remove this value of string typedeleteValueTimestamp
(Timestamp value) remove this value of any typefindValue
(AttributeAssignValue attributeAssignValue) find this value (return one if more than one)find this valuefindValueFloating
(Double value) find this valuefindValueInteger
(Long value) find this valuefindValueMember
(Member value) find this valuefindValueMember
(String value) find this valuefindValues
(AttributeAssignValue attributeAssignValue) find these valuesfindValues
(String value) find this valuefindValuesFloating
(Double value) find this valuefindValuesInteger
(Long value) find these valuesfindValuesMember
(Member value) find this valuefindValuesMember
(String value) find this valuefindValuesString
(String value) find these valuesfindValuesTimestamp
(Timestamp value) find these valuesfindValueString
(String value) find this valuefindValueTimestamp
(Timestamp value) find this valuecache of valuesget the values for an assignment or empty set if noneinternal_addValues
(Collection<AttributeAssignValue> attributeAssignValues, boolean checkSecurity) internal_addValuesInteger
(Collection<Long> values, AttributeDefValueType attributeDefValueType) add values of integer typeinternal_assignValue
(AttributeAssignValue attributeAssignValue, boolean checkSecurity) assign a value to this assignment.internal_assignValueInteger
(Long value, AttributeDefValueType attributeDefValueType) assign a value of type integer.internal_deleteValues
(Collection<AttributeAssignValue> attributeAssignValues, boolean checkSecurity) remove these valuesinternal_findValues
(AttributeAssignValue attributeAssignValue, boolean checkSecurity) find this value, must be the right value typeinternal_findValues
(String value, boolean checkSecurity) find this valueinternal_findValuesFloating
(Double value, boolean checkSecurity) find this valueinternal_findValuesInteger
(Long value, boolean checkSecurity) find these valuesinternal_findValuesMember
(Member value, boolean checkSecurity) find this valueinternal_findValuesMember
(String value, boolean checkSecurity) find this valueinternal_findValuesString
(String value, boolean checkSecurity) find these valuesinternal_findValuesTimestamp
(Timestamp value, boolean checkSecurity) find these valuesinternal_retrieveValues
(boolean checkSecurity, boolean filterInvalidTypes) get the values for an assignment or empty set if noneinternal_retrieveValues
(boolean checkSecurity, boolean filterInvalidTypes, boolean useCache) get the values for an assignment or empty set if noneint
replaceValues
(Set<AttributeAssignValue> expectedAttributeAssignValues) replace values, update if possible...get the values for an assignment or empty set if noneget the floating value (must be floating type)get the integer value (must be integer type)get the member value (must be member type)get the member id value (must be member type)get the values for an assignment or empty set if noneget the floating values (must be floating type)get the integer values (must be integer type)get the member values (must be member type)get the member values (must be member type)get the string valuesget the timestamp value (must be timestamp type)get the string valueget the timestamp value (must be integer type)void
setAllAttributeAssignValuesCache
(Set<AttributeAssignValue> allAttributeAssignValuesCache1) cache of valuestoString()
-
Field Details
-
allAttributeAssignValuesCacheHitsForTest
public static long allAttributeAssignValuesCacheHitsForTestcache hits for testing -
allAttributeAssignValuesCacheMissesForTest
public static long allAttributeAssignValuesCacheMissesForTestcache misses for testing
-
-
Constructor Details
-
AttributeAssignValueDelegate
- Parameters:
attributeAssign1
-
-
-
Method Details
-
getAllAttributeAssignValuesCache
cache of values- Returns:
- values
-
setAllAttributeAssignValuesCache
public void setAllAttributeAssignValuesCache(Set<AttributeAssignValue> allAttributeAssignValuesCache1) cache of values- Parameters:
allAttributeAssignValuesCache1
-
-
retrieveValues
get the values for an assignment or empty set if none- Returns:
- the values
-
getAttributeAssignValues
get the values for an assignment or empty set if none- Returns:
- the values
-
internal_retrieveValues
public Set<AttributeAssignValue> internal_retrieveValues(boolean checkSecurity, boolean filterInvalidTypes) get the values for an assignment or empty set if none- Parameters:
checkSecurity
-filterInvalidTypes
- if values of invalid types should be filtered out- Returns:
- the values
-
internal_retrieveValues
public Set<AttributeAssignValue> internal_retrieveValues(boolean checkSecurity, boolean filterInvalidTypes, boolean useCache) get the values for an assignment or empty set if none- Parameters:
checkSecurity
-filterInvalidTypes
- if values of invalid types should be filtered outuseCache
-- Returns:
- the values
-
assignValue
assign a value to this assignment. If one exists with a different value, replace, else, reuse, replace it- Parameters:
attributeAssignValue
-- Returns:
- the value
-
internal_assignValue
public AttributeAssignValueResult internal_assignValue(AttributeAssignValue attributeAssignValue, boolean checkSecurity) assign a value to this assignment. If one exists with a different value, replace, else, reuse, remove it and replace- Parameters:
attributeAssignValue
-checkSecurity
-- Returns:
- the value
-
addValue
add a value to the attribute assignment- Parameters:
attributeAssignValue
-- Returns:
- result
-
addValues
public AttributeAssignValuesResult addValues(Collection<AttributeAssignValue> attributeAssignValues) add values to the attribute assignment- Parameters:
attributeAssignValues
-- Returns:
- result
-
addValue
add a value of any type- Parameters:
value
-- Returns:
- the value object
-
addValueObject
add a value of any type- Parameters:
value
-- Returns:
- the value object
-
addValuesAnyType
add values of any type- Parameters:
values
-- Returns:
- the value object
-
assignValue
assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
assignValueObject
assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
addValueString
add a value of type string. use addValue() to add a value of any type- Parameters:
value
-- Returns:
- the value object
-
addValuesString
add values of type string. use addValue() to add a value of any type- Parameters:
values
-- Returns:
- the value object
-
assignValueString
assign a value of type string. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
assignValueFloating
assign a value of type double. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
assignValueInteger
assign a value of type integer. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
internal_assignValueInteger
public AttributeAssignValueResult internal_assignValueInteger(Long value, AttributeDefValueType attributeDefValueType) assign a value of type integer. use assignValue() to assign a value of any type- Parameters:
value
-attributeDefValueType
-- Returns:
- the value object
-
assignValueMember
assign a value of type member. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
assignValueTimestamp
assign a value of type timestamp. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
assignValueMember
assign a value of type member. use assignValue() to assign a value of any type- Parameters:
value
-- Returns:
- the value object
-
addValueFloating
add a value of double type- Parameters:
value
-- Returns:
- the value object
-
addValuesFloating
add values of double type- Parameters:
values
-- Returns:
- the value object
-
addValueInteger
add a value of integer type- Parameters:
value
-- Returns:
- the value object
-
addValuesInteger
add values of integer type- Parameters:
values
-- Returns:
- the value object
-
internal_addValuesInteger
public AttributeAssignValuesResult internal_addValuesInteger(Collection<Long> values, AttributeDefValueType attributeDefValueType) add values of integer type- Parameters:
values
-attributeDefValueType
-- Returns:
- the value object
-
addValuesTimestamp
add values of timestamp type- Parameters:
values
-- Returns:
- the value objects
-
addValueTimestamp
add a value of timestamp type- Parameters:
value
-- Returns:
- the value object
-
addValueMember
add a value of member type- Parameters:
value
-- Returns:
- the value object
-
addValuesMember
add values of member type- Parameters:
values
-- Returns:
- the value object
-
addValueMember
add a value of member type- Parameters:
value
-- Returns:
- the value object
-
addValuesMemberIds
add a values of member type- Parameters:
values
-- Returns:
- the value object
-
internal_addValues
public AttributeAssignValuesResult internal_addValues(Collection<AttributeAssignValue> attributeAssignValues, boolean checkSecurity) - Parameters:
attributeAssignValues
-checkSecurity
-- Returns:
- result
-
deleteValue
remove this value of any type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueObject
remove this value of any type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueInteger
remove this value of integer type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueFloating
remove this value of floating type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueString
remove this value of string type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueTimestamp
remove this value of any type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueMember
remove this value of member type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValueMember
remove this value of member id type- Parameters:
value
-- Returns:
- the strings that were deleted
-
deleteValuesInteger
remove this value of integer type- Parameters:
values
-- Returns:
- the strings that were deleted
-
deleteValuesFloating
remove this value of floating type- Parameters:
values
-- Returns:
- the strings that were deleted
-
deleteValuesTimestamp
remove this value of timestamp type- Parameters:
values
-- Returns:
- the timestamps that were deleted
-
assignValuesAnyType
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesString
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesObject
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesMember
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesMemberIds
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesTimestamp
public AttributeAssignValuesResult assignValuesTimestamp(Set<Timestamp> values, boolean deleteOrphans) replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesFloating
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValuesInteger
replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
values
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
assignValues
public AttributeAssignValuesResult assignValues(Set<AttributeAssignValue> attributeAssignValues, boolean deleteOrphans) replace the values. If the values are there already, ignore, if not, add, if extra already there, remove. Note, the uuids will change if not the same and the values exist- Parameters:
attributeAssignValues
-deleteOrphans
- if ones in DB should be removed if not match- Returns:
- true if made changes, false if not
-
deleteValuesString
remove this value of string type- Parameters:
values
-- Returns:
- the strings that were deleted
-
deleteValuesMemberIds
remove this value of string type- Parameters:
memberIds
-- Returns:
- the strings that were deleted
-
deleteValuesMember
remove this value of member type- Parameters:
members
-- Returns:
- the strings that were deleted
-
deleteValuesAnyType
remove this value of any type- Parameters:
values
-- Returns:
- the strings that were deleted
-
deleteValuesObject
remove this value of any type- Parameters:
values
-- Returns:
- the strings that were deleted
-
deleteValue
remove this value- Parameters:
attributeAssignValue
-- Returns:
- the result
-
deleteValues
public AttributeAssignValuesResult deleteValues(Collection<AttributeAssignValue> attributeAssignValues) remove this value- Parameters:
attributeAssignValues
-- Returns:
- result
-
findValue
find this value (return one if more than one)- Parameters:
attributeAssignValue
- to find (by value)- Returns:
- the value if found, or null if not
-
findValues
find these values- Parameters:
attributeAssignValue
- to find (by value)- Returns:
- the value if found, or null if not
-
findValue
find this value- Parameters:
value
- to find (any type)- Returns:
- the value if found, or null if not
-
findValues
find this value- Parameters:
value
- to find (any type)- Returns:
- the value if found, or empty if not
-
internal_findValues
find this value- Parameters:
value
- to find (any type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValueFloating
find this value- Parameters:
value
- to find (floating type)- Returns:
- the value if found, or null if not
-
findValuesFloating
find this value- Parameters:
value
- to find (floating type)- Returns:
- the value if found, or empty if not
-
internal_findValuesFloating
find this value- Parameters:
value
- to find (floating type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValueInteger
find this value- Parameters:
value
- to find (integer type)- Returns:
- the value if found, or null if not
-
findValueString
find this value- Parameters:
value
- to find (string type)- Returns:
- the value if found, or null if not
-
findValuesInteger
find these values- Parameters:
value
- to find (integer type)- Returns:
- the value if found, or empty if not
-
findValuesString
find these values- Parameters:
value
- to find (string type)- Returns:
- the value if found, or empty if not
-
internal_findValuesInteger
find these values- Parameters:
value
- to find (integer type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
internal_findValuesString
find these values- Parameters:
value
- to find (string type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValueMember
find this value- Parameters:
value
- to find (member type)- Returns:
- the value if found, or null if not
-
findValuesMember
find this value- Parameters:
value
- to find (member type)- Returns:
- the value if found, or empty if not
-
internal_findValuesMember
find this value- Parameters:
value
- to find (member type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValueTimestamp
find this value- Parameters:
value
- to find (timestamp type)- Returns:
- the value if found, or null if not
-
findValuesTimestamp
find these values- Parameters:
value
- to find (timestamp type)- Returns:
- the value if found, or empty if not
-
internal_findValuesTimestamp
public Set<AttributeAssignValue> internal_findValuesTimestamp(Timestamp value, boolean checkSecurity) find these values- Parameters:
value
- to find (timestamp type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValuesMember
find this value- Parameters:
value
- to find (floating type)- Returns:
- the value if found, or empty if not
-
internal_findValuesMember
find this value- Parameters:
value
- to find (floating type)checkSecurity
-- Returns:
- the value if found, or empty if not
-
findValueMember
find this value- Parameters:
value
- to find (floating type)- Returns:
- the value if found, or null if not
-
internal_findValues
public Set<AttributeAssignValue> internal_findValues(AttributeAssignValue attributeAssignValue, boolean checkSecurity) find this value, must be the right value type- Parameters:
attributeAssignValue
- to find (by value)checkSecurity
-- Returns:
- the values if found, or empty if not
-
internal_deleteValues
public AttributeAssignValuesResult internal_deleteValues(Collection<AttributeAssignValue> attributeAssignValues, boolean checkSecurity) remove these values- Parameters:
attributeAssignValues
-checkSecurity
-- Returns:
- the result
-
retrieveValue
get the values for an assignment or empty set if none- Returns:
- the values
-
retrieveValueString
get the string value- Returns:
- the string value
-
retrieveValueInteger
get the integer value (must be integer type)- Returns:
- the integer value
-
retrieveValueFloating
get the floating value (must be floating type)- Returns:
- the floating value
-
retrieveValuesFloating
get the floating values (must be floating type)- Returns:
- the floating values
-
retrieveValuesInteger
get the integer values (must be integer type)- Returns:
- the integer values
-
retrieveValuesMember
get the member values (must be member type)- Returns:
- the member values
-
retrieveValuesMemberId
get the member values (must be member type)- Returns:
- the member values
-
retrieveValuesTimestamp
get the timestamp value (must be timestamp type)- Returns:
- the timestamp value
-
retrieveValuesString
get the string values- Returns:
- the string values
-
retrieveValueMember
get the member value (must be member type)- Returns:
- the member value
-
retrieveValueMemberId
get the member id value (must be member type)- Returns:
- the member value
-
retrieveValueTimestamp
get the timestamp value (must be integer type)- Returns:
- the timestamp value
-
toString
-
replaceValues
replace values, update if possible... works for single or multi-assign- Parameters:
expectedAttributeAssignValues
-- Returns:
- the number of records updated
-