edu.internet2.middleware.grouper.internal.dao.hib3
Class Hib3AttributeAssignValueDAO

java.lang.Object
  extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
      extended by edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeAssignValueDAO
All Implemented Interfaces:
AttributeAssignValueDAO, GrouperDAO

public class Hib3AttributeAssignValueDAO
extends Hib3DAO
implements AttributeAssignValueDAO

Data Access Object for attribute def

Version:
$Id: Hib3AttributeAssignValueDAO.java,v 1.2 2009-09-28 05:06:46 mchyzer Exp $
Author:
mchyzer

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3AttributeAssignValueDAO()
           
 
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> totalAttributeAssignIds)
          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> totalGroupIds)
          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)
          find all assignments and values for a member
 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
 
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hib3AttributeAssignValueDAO

public Hib3AttributeAssignValueDAO()
Method Detail

findById

public AttributeAssignValue findById(String id,
                                     boolean exceptionIfNotFound)
Specified by:
findById in interface AttributeAssignValueDAO
Returns:
the attribute assign value or null if not there
See Also:
AttributeAssignValueDAO.findById(java.lang.String, boolean)

saveOrUpdate

public void saveOrUpdate(AttributeAssignValue attributeAssignValue)
Description copied from interface: AttributeAssignValueDAO
insert or update an attribute assign value object

Specified by:
saveOrUpdate in interface AttributeAssignValueDAO
See Also:
AttributeAssignValueDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.value.AttributeAssignValue)

findByUuidOrKey

public AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore,
                                            String id,
                                            String attributeAssignId,
                                            boolean exceptionIfNull,
                                            Long valueInteger,
                                            String valueMemberId,
                                            String valueString)
                                     throws GrouperDAOException
Specified by:
findByUuidOrKey in interface AttributeAssignValueDAO
Parameters:
idsToIgnore - dont return anything in this list, already used or will be used
id - if find by id, that is it
attributeAssignId - to get values from
valueInteger - try to match this if possible
Returns:
the attribute assign value or null
Throws:
GrouperDAOException
See Also:
AttributeAssignValueDAO.findByUuidOrKey(java.util.Collection, java.lang.String, java.lang.String, boolean, java.lang.Long, java.lang.String, java.lang.String)

saveUpdateProperties

public void saveUpdateProperties(AttributeAssignValue attributeAssignValue)
Description copied from interface: AttributeAssignValueDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface AttributeAssignValueDAO
See Also:
AttributeAssignValueDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.value.AttributeAssignValue)

delete

public void delete(AttributeAssignValue attributeAssignValue)
Description copied from interface: AttributeAssignValueDAO
delete an attribute assign value object

Specified by:
delete in interface AttributeAssignValueDAO
See Also:
AttributeAssignValueDAO.delete(edu.internet2.middleware.grouper.attr.value.AttributeAssignValue)

findByAttributeAssignId

public Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId)
Description copied from interface: AttributeAssignValueDAO
find values of assignment

Specified by:
findByAttributeAssignId in interface AttributeAssignValueDAO
Returns:
the attribute assign values or empty if not there
See Also:
AttributeAssignValueDAO.findByAttributeAssignId(java.lang.String)

findByAttributeAssignId

public Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId,
                                                         QueryOptions queryOptions)
Description copied from interface: AttributeAssignValueDAO
find values of assignment

Specified by:
findByAttributeAssignId in interface AttributeAssignValueDAO
Returns:
the attribute assign values or empty if not there
See Also:
AttributeAssignValueDAO.findByAttributeAssignId(java.lang.String, edu.internet2.middleware.grouper.internal.dao.QueryOptions)

findMemberAttributeAssignmentValues

public Map<AttributeAssign,Set<AttributeAssignValue>> findMemberAttributeAssignmentValues(Collection<String> memberIds,
                                                                                          Boolean enabled)
find all assignments and values for a member

Specified by:
findMemberAttributeAssignmentValues in interface AttributeAssignValueDAO
Parameters:
memberIds -
enabled -
Returns:
the map

findByAttributeAssignIds

public Set<AttributeAssignValue> findByAttributeAssignIds(Collection<String> totalAttributeAssignIds)
Description copied from interface: AttributeAssignValueDAO
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

Specified by:
findByAttributeAssignIds in interface AttributeAssignValueDAO
Returns:
the attribute assign values or empty if not there
See Also:
AttributeAssignValueDAO.findByAttributeAssignIds(Collection)

findByValueString

public Set<AttributeAssignValue> findByValueString(String value)
Description copied from interface: AttributeAssignValueDAO
find values by value string

Specified by:
findByValueString in interface AttributeAssignValueDAO
Returns:
the values
See Also:
AttributeAssignValueDAO.findByValueString(String)

findLegacyAttributesByGroupId

public Map<String,AttributeAssignValue> findLegacyAttributesByGroupId(String groupId)
Description copied from interface: AttributeAssignValueDAO
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.

Specified by:
findLegacyAttributesByGroupId in interface AttributeAssignValueDAO
Returns:
the values
See Also:
AttributeAssignValueDAO.findLegacyAttributesByGroupId(java.lang.String)

findLegacyAttributesByGroupIds

public Map<String,Map<String,AttributeAssignValue>> findLegacyAttributesByGroupIds(Collection<String> totalGroupIds)
Description copied from interface: AttributeAssignValueDAO
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.

Specified by:
findLegacyAttributesByGroupIds in interface AttributeAssignValueDAO
Returns:
the map of maps of values by group id
See Also:
AttributeAssignValueDAO.findLegacyAttributesByGroupIds(Collection)

findValuesOnAssignments

public Set<AttributeAssignValue> findValuesOnAssignments(Collection<String> attributeAssignIds,
                                                         AttributeAssignType attributeAssignType,
                                                         AttributeDefType attributeDefType,
                                                         Boolean enabled)
Description copied from interface: AttributeAssignValueDAO
find values on this assignment and values on assignments on this assignment

Specified by:
findValuesOnAssignments in interface AttributeAssignValueDAO
Parameters:
attributeAssignType -
attributeDefType -
enabled -
attributeAssignIds -
Returns:
assigns
See Also:
AttributeAssignValueDAO.findValuesOnAssignments(Collection, AttributeAssignType, AttributeDefType, Boolean)