Class Hib3AttributeAssignValueDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeAssignValueDAO
- All Implemented Interfaces:
AttributeAssignValueDAO,GrouperDAO
Data Access Object for attribute def
- Version:
- $Id: Hib3AttributeAssignValueDAO.java,v 1.2 2009-09-28 05:06:46 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(AttributeAssignValue attributeAssignValue) delete an attribute assign value objectfindByAttributeAssignId(String attributeAssignId) find values of assignmentfindByAttributeAssignId(String attributeAssignId, QueryOptions queryOptions) find values of assignmentfindByAttributeAssignIds(Collection<String> totalAttributeAssignIds) 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 securityfindByUuidOrKey(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> totalGroupIds) Returns legacy attributes (assigned to a given group) either migrated or created in the new attribute framework.findMemberAttributeAssignmentValues(Collection<String> memberIds, Boolean enabled) find all assignments and values for a memberfindValuesOnAssignments(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled) find values on this assignment and values on assignments on this assignmentvoidsaveOrUpdate(AttributeAssignValue attributeAssignValue) insert or update an attribute assign value objectvoidsaveUpdateProperties(AttributeAssignValue attributeAssignValue) save the update properties which are auto saved when business method is calledMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3AttributeAssignValueDAO
public Hib3AttributeAssignValueDAO()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceAttributeAssignValueDAO- Returns:
- the attribute assign value or null if not there
- See Also:
-
saveOrUpdate
Description copied from interface:AttributeAssignValueDAOinsert or update an attribute assign value object- Specified by:
saveOrUpdatein interfaceAttributeAssignValueDAO- See Also:
-
findByUuidOrKey
public AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString) throws GrouperDAOException - Specified by:
findByUuidOrKeyin interfaceAttributeAssignValueDAO- Parameters:
idsToIgnore- dont return anything in this list, already used or will be usedid- if find by id, that is itattributeAssignId- to get values fromvalueInteger- try to match this if possible- Returns:
- the attribute assign value or null
- Throws:
GrouperDAOException- See Also:
-
findByUuidOrKey
public AttributeAssignValue findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeAssignId, boolean exceptionIfNull, Long valueInteger, String valueMemberId, String valueString, QueryOptions queryOptions) throws GrouperDAOException - Specified by:
findByUuidOrKeyin interfaceAttributeAssignValueDAO- Parameters:
idsToIgnore- dont return anything in this list, already used or will be usedid- if find by id, that is itattributeAssignId- to get values fromvalueInteger- try to match this if possible- Returns:
- the attribute assign value or null
- Throws:
GrouperDAOException- See Also:
-
saveUpdateProperties
Description copied from interface:AttributeAssignValueDAOsave the update properties which are auto saved when business method is called- Specified by:
saveUpdatePropertiesin interfaceAttributeAssignValueDAO- See Also:
-
delete
Description copied from interface:AttributeAssignValueDAOdelete an attribute assign value object- Specified by:
deletein interfaceAttributeAssignValueDAO- See Also:
-
findByAttributeAssignId
Description copied from interface:AttributeAssignValueDAOfind values of assignment- Specified by:
findByAttributeAssignIdin interfaceAttributeAssignValueDAO- Returns:
- the attribute assign values or empty if not there
- See Also:
-
findByAttributeAssignId
public Set<AttributeAssignValue> findByAttributeAssignId(String attributeAssignId, QueryOptions queryOptions) Description copied from interface:AttributeAssignValueDAOfind values of assignment- Specified by:
findByAttributeAssignIdin interfaceAttributeAssignValueDAO- Returns:
- the attribute assign values or empty if not there
- See Also:
-
findMemberAttributeAssignmentValues
public Map<AttributeAssign,Set<AttributeAssignValue>> findMemberAttributeAssignmentValues(Collection<String> memberIds, Boolean enabled) find all assignments and values for a member- Specified by:
findMemberAttributeAssignmentValuesin interfaceAttributeAssignValueDAO- Parameters:
memberIds-enabled-- Returns:
- the map
-
findByAttributeAssignIds
public Set<AttributeAssignValue> findByAttributeAssignIds(Collection<String> totalAttributeAssignIds) Description copied from interface:AttributeAssignValueDAOfind 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:
findByAttributeAssignIdsin interfaceAttributeAssignValueDAO- Returns:
- the attribute assign values or empty if not there
- See Also:
-
findByValueString
Description copied from interface:AttributeAssignValueDAOfind values by value string- Specified by:
findByValueStringin interfaceAttributeAssignValueDAO- Returns:
- the values
- See Also:
-
findByValueMemberId
Description copied from interface:AttributeAssignValueDAOfind by member id column- Specified by:
findByValueMemberIdin interfaceAttributeAssignValueDAO- See Also:
-
findLegacyAttributesByGroupId
Description copied from interface:AttributeAssignValueDAOReturns 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:
findLegacyAttributesByGroupIdin interfaceAttributeAssignValueDAO- Returns:
- the values
- See Also:
-
findLegacyAttributesByGroupIds
public Map<String,Map<String, findLegacyAttributesByGroupIdsAttributeAssignValue>> (Collection<String> totalGroupIds) Description copied from interface:AttributeAssignValueDAOReturns 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:
findLegacyAttributesByGroupIdsin interfaceAttributeAssignValueDAO- Returns:
- the map of maps of values by group id
- See Also:
-
findValuesOnAssignments
public Set<AttributeAssignValue> findValuesOnAssignments(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled) Description copied from interface:AttributeAssignValueDAOfind values on this assignment and values on assignments on this assignment- Specified by:
findValuesOnAssignmentsin interfaceAttributeAssignValueDAO- Parameters:
attributeAssignType-attributeDefType-enabled-attributeAssignIds-- Returns:
- assigns
- See Also:
-