Interface AttributeAssignValueDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3AttributeAssignValueDAO
attribute assign value data access methods
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(AttributeAssignValue attributeAssignValue) delete an attribute assign value objectfindByAttributeAssignId
(String attributeAssignId) find values of assignmentfindByAttributeAssignId
(String attributeAssignId, QueryOptions queryOptions) find values of assignmentfindByAttributeAssignIds
(Collection<String> attributeAssignIds) find values of assignment based on ids, batched (i.e.findByUuidOrKey
(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString) findByUuidOrKey
(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString, QueryOptions queryOptions) findByValueMemberId
(String value) find by member id columnfindByValueString
(String value) find values by value stringfindLegacyAttributesByGroupId
(String groupId) Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework.findLegacyAttributesByGroupIds
(Collection<String> groupId) Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework.findMemberAttributeAssignmentValues
(Collection<String> memberIds, Boolean enabled) securely search for assignments.findValuesOnAssignments
(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled) find values on this assignment and values on assignments on this assignmentvoid
saveOrUpdate
(AttributeAssignValue attributeAssignValue) insert or update an attribute assign value objectvoid
saveUpdateProperties
(AttributeAssignValue attributeAssignValue) save the update properties which are auto saved when business method is called
-
Method Details
-
saveOrUpdate
insert or update an attribute assign value object- Parameters:
attributeAssignValue
-
-
findByValueMemberId
find by member id column- Parameters:
value
-
-
delete
delete an attribute assign value object- Parameters:
attributeAssignValue
-
-
findById
AttributeAssignValue findById(String id, boolean exceptionIfNotFound) throws AttributeAssignValueNotFoundException - Parameters:
id
-exceptionIfNotFound
-- Returns:
- the attribute assign value or null if not there
- Throws:
AttributeAssignValueNotFoundException
-
findByAttributeAssignId
find values of assignment- Parameters:
attributeAssignId
-- Returns:
- the attribute assign values or empty if not there
-
findByAttributeAssignIds
find values of assignment based on ids, batched (i.e. pass in as meny ids as you want) this assumes you are allowed to read them... doesnt check security- Parameters:
attributeAssignIds
-- Returns:
- the attribute assign values or empty if not there
-
findByAttributeAssignId
Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId, QueryOptions queryOptions) find values of assignment- Parameters:
attributeAssignId
-queryOptions
-- Returns:
- the attribute assign values or empty if not there
-
saveUpdateProperties
save the update properties which are auto saved when business method is called- Parameters:
attributeAssignValue
-
-
findByUuidOrKey
AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString) throws GrouperDAOException - Parameters:
id
- if find by id, that is itidsToIgnore
- dont return anything in this list, already used or will be usedattributeAssignId
- to get values fromexceptionIfNull
-valueInteger
- try to match this if possiblevalueMemberId
-valueString
-- Returns:
- the attribute assign value or null
- Throws:
GrouperDAOException
- Since:
- 1.6.0
-
findByUuidOrKey
AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString, QueryOptions queryOptions) throws GrouperDAOException - Parameters:
id
- if find by id, that is itidsToIgnore
- dont return anything in this list, already used or will be usedattributeAssignId
- to get values fromexceptionIfNull
-valueInteger
- try to match this if possiblevalueMemberId
-valueString
-queryOptions
-- Returns:
- the attribute assign value or null
- Throws:
GrouperDAOException
- Since:
- 1.6.0
-
findByValueString
find values by value string- Parameters:
value
-- Returns:
- the values
-
findValuesOnAssignments
Set<AttributeAssignValue> findValuesOnAssignments(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled) find values on this assignment and values on assignments on this assignment- Parameters:
attributeAssignIds
-attributeAssignType
-attributeDefType
-enabled
-- Returns:
- the set of values
-
findMemberAttributeAssignmentValues
Map<AttributeAssign,Set<AttributeAssignValue>> findMemberAttributeAssignmentValues(Collection<String> memberIds, Boolean enabled) securely search for assignments. need to pass in member ids cannot have more than 100 bind variables- Parameters:
memberIds
- optionalenabled
- (null means all, true means enabled, false means disabled)- Returns:
- the assignments
-
findLegacyAttributesByGroupId
Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework. The keys of the map are the legacy attribute field names.- Parameters:
groupId
-- Returns:
- the values
-
findLegacyAttributesByGroupIds
Map<String,Map<String, findLegacyAttributesByGroupIdsAttributeAssignValue>> (Collection<String> groupId) Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework. The keys of the map are the legacy attribute field names.- Parameters:
groupId
-- Returns:
- the map of maps of values by group id
-