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 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> totalAttributeAssignIds) 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> 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 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 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:
findById
in interfaceAttributeAssignValueDAO
- Returns:
- the attribute assign value or null if not there
- See Also:
-
saveOrUpdate
Description copied from interface:AttributeAssignValueDAO
insert or update an attribute assign value object- Specified by:
saveOrUpdate
in 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:
findByUuidOrKey
in 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:
findByUuidOrKey
in 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:AttributeAssignValueDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceAttributeAssignValueDAO
- See Also:
-
delete
Description copied from interface:AttributeAssignValueDAO
delete an attribute assign value object- Specified by:
delete
in interfaceAttributeAssignValueDAO
- See Also:
-
findByAttributeAssignId
Description copied from interface:AttributeAssignValueDAO
find values of assignment- Specified by:
findByAttributeAssignId
in 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:AttributeAssignValueDAO
find values of assignment- Specified by:
findByAttributeAssignId
in 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:
findMemberAttributeAssignmentValues
in interfaceAttributeAssignValueDAO
- 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 interfaceAttributeAssignValueDAO
- Returns:
- the attribute assign values or empty if not there
- See Also:
-
findByValueString
Description copied from interface:AttributeAssignValueDAO
find values by value string- Specified by:
findByValueString
in interfaceAttributeAssignValueDAO
- Returns:
- the values
- See Also:
-
findByValueMemberId
Description copied from interface:AttributeAssignValueDAO
find by member id column- Specified by:
findByValueMemberId
in interfaceAttributeAssignValueDAO
- See Also:
-
findLegacyAttributesByGroupId
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 interfaceAttributeAssignValueDAO
- Returns:
- the values
- See Also:
-
findLegacyAttributesByGroupIds
public Map<String,Map<String, findLegacyAttributesByGroupIdsAttributeAssignValue>> (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 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:AttributeAssignValueDAO
find values on this assignment and values on assignments on this assignment- Specified by:
findValuesOnAssignments
in interfaceAttributeAssignValueDAO
- Parameters:
attributeAssignType
-attributeDefType
-enabled
-attributeAssignIds
-- Returns:
- assigns
- See Also:
-