edu.internet2.middleware.grouper.internal.dao
Interface AttributeAssignValueDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeAssignValueDAO

public interface AttributeAssignValueDAO
extends GrouperDAO

attribute assign value data access methods


Method Summary
 void delete(AttributeAssignValue attributeAssignValue)
          delete an attribute assign value object
 Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId)
          find values of assignment
 Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId, QueryOptions queryOptions)
          find values of assignment
 Set<AttributeAssignValue> findByAttributeAssignIds(Collection<String> attributeAssignIds)
          find values of assignment based on ids, batched (i.e.
 AttributeAssignValue findById(String id, boolean exceptionIfNotFound)
           
 AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString)
           
 Set<AttributeAssignValue> findByValueString(String value)
          find values by value string
 Map<String,AttributeAssignValue> findLegacyAttributesByGroupId(String groupId)
          Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework.
 Map<String,Map<String,AttributeAssignValue>> findLegacyAttributesByGroupIds(Collection<String> groupId)
          Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework.
 Map<AttributeAssign,Set<AttributeAssignValue>> findMemberAttributeAssignmentValues(Collection<String> memberIds, Boolean enabled)
          securely search for assignments.
 Set<AttributeAssignValue> findValuesOnAssignments(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled)
          find values on this assignment and values on assignments on this assignment
 void saveOrUpdate(AttributeAssignValue attributeAssignValue)
          insert or update an attribute assign value object
 void saveUpdateProperties(AttributeAssignValue attributeAssignValue)
          save the update properties which are auto saved when business method is called
 

Method Detail

saveOrUpdate

void saveOrUpdate(AttributeAssignValue attributeAssignValue)
insert or update an attribute assign value object

Parameters:
attributeAssignValue -

delete

void delete(AttributeAssignValue attributeAssignValue)
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

Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId)
find values of assignment

Parameters:
attributeAssignId -
Returns:
the attribute assign values or empty if not there

findByAttributeAssignIds

Set<AttributeAssignValue> findByAttributeAssignIds(Collection<String> attributeAssignIds)
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

void saveUpdateProperties(AttributeAssignValue attributeAssignValue)
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 it
idsToIgnore - dont return anything in this list, already used or will be used
attributeAssignId - to get values from
exceptionIfNull -
valueInteger - try to match this if possible
valueMemberId -
valueString -
Returns:
the attribute assign value or null
Throws:
GrouperDAOException
Since:
1.6.0

findByValueString

Set<AttributeAssignValue> findByValueString(String value)
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 - optional
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments

findLegacyAttributesByGroupId

Map<String,AttributeAssignValue> findLegacyAttributesByGroupId(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 values

findLegacyAttributesByGroupIds

Map<String,Map<String,AttributeAssignValue>> findLegacyAttributesByGroupIds(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