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

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

public class Hib3AttributeAssignDAO
extends Hib3DAO
implements AttributeAssignDAO

Data Access Object for attribute def

Version:
$Id: Hib3AttributeAssignDAO.java,v 1.10 2009-10-02 05:57:58 mchyzer Exp $
Author:
mchyzer

Field Summary
 
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
hibernateInitted
 
Constructor Summary
Hib3AttributeAssignDAO()
           
 
Method Summary
 void delete(AttributeAssign attributeAssign)
          delete
 Set<AttributeDefName> filterAttributeDefNames(GrouperSession grouperSession, Set<AttributeDefName> attibuteDefNames)
           
 Set<AttributeAssign> findAllEnabledDisabledMismatch()
          find records which are disabled which shouldnt be, and enabled which shouldnt be
 Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType)
          securely search for assignments.
 Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findAnyMembershipAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of effective memberships (or immediate).
 Set<AttributeDefName> findAnyMembershipAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds, Collection<String> actions, Boolean enabled)
          securely search for attribute def names.
 Set<AttributeAssign> findAssignmentsFromAssignments(Collection<AttributeAssign> attributeAssigns, AttributeAssignType attributeAssignType, Boolean enabled, boolean useCache)
          find assignments from assignments.
 Set<AttributeAssign> findAssignmentsFromAssignmentsByIds(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled)
          find assignments from assignments.
 Set<AttributeAssign> findAssignmentsOnAssignments(Collection<AttributeAssign> attributeAssigns, AttributeAssignType attributeAssignType, Boolean enabled)
          find assignments on assignments.
 Set<AttributeDefName> findAssignmentsOnAssignmentsAttributeDefNames(Collection<AttributeAssign> attributeAssigns, AttributeAssignType attributeAssignType, Boolean enabled)
          search for assignments on assignments attribute def names
 Set<AttributeAssign> findAssignmentsOnAssignmentsByIds(Collection<String> attributeAssignIds, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, Boolean enabled)
          find assignments on assignments.
 Set<AttributeAssign> findAttributeAssignments(AttributeAssignType attributeAssignType, String attributeDefId, String attributeDefNameId, String ownerGroupId, String ownerStemId, String ownerMemberId, String ownerAttributeDefId, String ownerMembershipId, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments
 Set<AttributeAssign> findAttributeDefAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> attributeDefAssignToIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findAttributeDefAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> attributeDefAssignToIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findAttributeDefAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> mainOwnerAttributeDefIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of attribute defs.
 Set<AttributeDefName> findAttributeDefAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> attributeDefAssignToIds, Collection<String> actions, Boolean enabled)
          securely search for attributeDefNames.
 Set<AttributeDefName> findAttributeDefNamesByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo, String attributeDefIdToAssign)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo, String attributeDefIdToAssign)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByGroupIdAndAttributeDefId(String groupId, String attributeDefId)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId(String groupId, String memberId, String attributeDefIdToAssign)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByMemberIdAndAttributeDefId(String memberId, String attributeDefId)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByMembershipIdAndAttributeDefId(String membershipIdToAssignTo, String attributeDefIdToAssign)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDefName> findAttributeDefNamesByStemIdAndAttributeDefId(String stemId, String attributeDefId)
          find attribute def names (distinct) by attribute def id
 Set<AttributeDef> findAttributeDefsByAttributeDefNameId(String attributeDefNameId)
           
 Set<AttributeAssign> findByActionId(String actionId)
           
 Set<AttributeAssignValueContainer> findByAssignTypeId(String attributeTypeAssignId)
          find attribute assigns by ids, as root (no security).
 Set<AttributeAssign> findByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo, String attributeDefIdToAssign)
           
 Set<AttributeAssign> findByAttrAssignIdAndAttributeDefNameId(String attrAssignIdToAssignTo, String attributeDefNameIdToAssign)
           
 Set<AttributeAssign> findByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo, String attributeDefIdToAssign)
           
 Set<AttributeAssign> findByAttributeDefIdAndAttributeDefNameId(String attributeDefIdToAssignTo, String attributeDefNameIdToAssign)
           
 Set<AttributeAssign> findByAttributeDefNameAndValueString(String attributeDefNameId, String value, QueryOptions queryOptions)
          find by attribute name and value
 Set<AttributeAssign> findByAttributeDefNameId(String attributeDefNameId)
           
 Map<AttributeAssign,Set<AttributeAssignValueContainer>> findByAttributeTypeDefNameId(String attributeTypeDefNameId, QueryOptions queryOptions)
          find attribute assigns by ids, as root (no security).
 Set<AttributeAssign> findByGroupIdAndAttributeDefId(String groupId, String attributeDefId)
           
 Set<AttributeAssign> findByGroupIdAndAttributeDefNameId(String groupId, String attributeDefNameId)
           
 Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefId(String groupId, String memberId, String attributeDefIdToAssign)
           
 Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefNameId(String groupId, String memberId, String attributeDefNameIdToAssign)
           
 AttributeAssign findById(String id, boolean exceptionIfNotFound)
          retrieve by id
 AttributeAssign findById(String id, boolean exceptionIfNotFound, boolean useCache)
          retrieve by id
 Set<AttributeAssign> findByIds(Collection<String> ids, Boolean enabled, boolean useCache)
          retrieve by ids.
 Set<AttributeAssign> findByMemberIdAndAttributeDefId(String memberId, String attributeDefId)
           
 Set<AttributeAssign> findByMemberIdAndAttributeDefNameId(String memberId, String attributeDefNameId)
           
 Set<AttributeAssign> findByMembershipIdAndAttributeDefId(String membershipIdToAssignTo, String attributeDefIdToAssign)
           
 Set<AttributeAssign> findByMembershipIdAndAttributeDefNameId(String membershipIdToAssignTo, String attributeDefNameIdToAssign)
           
 Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId)
           
 Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId, QueryOptions queryOptions)
           
 Set<AttributeAssign> findByOwnerAttributeDefId(String ownerAttributeDefId)
           
 Set<AttributeAssign> findByOwnerGroupId(String ownerGroupId)
           
 Set<AttributeAssign> findByOwnerMemberId(String ownerMemberId)
           
 Set<AttributeAssign> findByOwnerMembershipId(String ownerMembershipId)
           
 Set<AttributeAssign> findByOwnerStemId(String ownerStemId)
           
 Set<AttributeAssign> findByStemIdAndAttributeDefId(String stemId, String attributeDefId)
           
 Set<AttributeAssign> findByStemIdAndAttributeDefNameId(String stemId, String attributeDefNameId)
           
 AttributeAssign findByUuidOrKey(Collection<String> idsToIgnore, String id, String attributeDefNameId, String attributeAssignActionId, String ownerAttributeAssignId, String ownerAttributeDefId, String ownerGroupId, String ownerMemberId, String ownerMembershipId, String ownerStemId, boolean exceptionIfNull, Long disabledTimeDb, Long enabledTimeDb, String notes, boolean disallowed)
           
 Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> groupIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> groupIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType)
          securely search for assignments.
 Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> groupIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findGroupAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> groupIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of groups.
 Set<AttributeDefName> findGroupAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> groupIds, Collection<String> actions, Boolean enabled)
          securely search for attribute def names.
 Map<String,AttributeAssign> findLegacyGroupTypeAssignmentsByGroupId(String groupId)
          Returns legacy group types (assigned to a given group) that were either migrated or created in the new attribute framework.
 Set<AttributeAssign> findMemberAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> memberIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findMemberAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> memberIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findMemberAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> memberIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of members.
 Set<AttributeDefName> findMemberAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> memberIds, Collection<String> actions, Boolean enabled)
          securely search for attribute def names.
 Set<AttributeAssign> findMembershipAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> membershipIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findMembershipAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> membershipIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findMembershipAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> membershipIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of immediate memberships.
 Set<AttributeDefName> findMembershipAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> membershipIds, Collection<String> actions, Boolean enabled)
          securely search for attribute def names.
 Set<AttributeAssign> findStemAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> stemIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments)
          securely search for assignments.
 Set<AttributeAssign> findStemAttributeAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> stemIds, Collection<String> actions, Boolean enabled, boolean includeAssignmentsOnAssignments, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue)
          securely search for assignments.
 Set<AttributeAssign> findStemAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> stemIds, Collection<String> actions, Boolean enabled, AttributeDefType attributeDefType, AttributeDefValueType attributeDefValueType, Object theValue, boolean includeAssignmentsFromAssignments, Collection<String> ownerAttributeAssignIds, Collection<String> ownerAttributeDefIds, Collection<String> ownerAttributeDefNameIds, Collection<String> ownerActions, boolean useCache)
          securely search for assignments on assignments of stems.
 Set<AttributeDefName> findStemAttributeDefNames(Collection<String> attributeAssignIds, Collection<String> attributeDefIds, Collection<String> attributeDefNameIds, Collection<String> stemIds, Collection<String> actions, Boolean enabled)
          securely search for attribute def names.
static void queryByValueAddTablesWhereClause(ByHqlStatic byHqlStatic, StringBuilder sqlTables, StringBuilder sqlWhereClause, AttributeDefValueType attributeDefValueType, Object theValue)
          make sure if sending a value you are sending a value type, and add table if necessary
 void saveOrUpdate(AttributeAssign attributeAssign)
          save or update
 void saveUpdateProperties(AttributeAssign attributeAssign)
          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

Hib3AttributeAssignDAO

public Hib3AttributeAssignDAO()
Method Detail

findAllEnabledDisabledMismatch

public Set<AttributeAssign> findAllEnabledDisabledMismatch()
Description copied from interface: AttributeAssignDAO
find records which are disabled which shouldnt be, and enabled which shouldnt be

Specified by:
findAllEnabledDisabledMismatch in interface AttributeAssignDAO
Returns:
the attribute assignments
See Also:
AttributeAssignDAO.findAllEnabledDisabledMismatch()

findById

public AttributeAssign findById(String id,
                                boolean exceptionIfNotFound)
retrieve by id

Specified by:
findById in interface AttributeAssignDAO
Parameters:
id -
exceptionIfNotFound -
Returns:
the attribute assign

findById

public AttributeAssign findById(String id,
                                boolean exceptionIfNotFound,
                                boolean useCache)
retrieve by id

Specified by:
findById in interface AttributeAssignDAO
Parameters:
id -
exceptionIfNotFound -
useCache -
Returns:
the attribute assign

findByIds

public Set<AttributeAssign> findByIds(Collection<String> ids,
                                      Boolean enabled,
                                      boolean useCache)
retrieve by ids. note, this is not a secure method, will return any results queried

Specified by:
findByIds in interface AttributeAssignDAO
Parameters:
id -
exceptionIfNotFound -
useCache -
Returns:
the attribute assigns, will not return null

saveOrUpdate

public void saveOrUpdate(AttributeAssign attributeAssign)
save or update

Specified by:
saveOrUpdate in interface AttributeAssignDAO
Parameters:
attributeAssign -

findByGroupIdAndAttributeDefNameId

public Set<AttributeAssign> findByGroupIdAndAttributeDefNameId(String groupId,
                                                               String attributeDefNameId)
Specified by:
findByGroupIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByGroupIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findByGroupIdAndAttributeDefId

public Set<AttributeAssign> findByGroupIdAndAttributeDefId(String groupId,
                                                           String attributeDefId)
Specified by:
findByGroupIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByGroupIdAndAttributeDefId(java.lang.String, java.lang.String)

delete

public void delete(AttributeAssign attributeAssign)
delete

Specified by:
delete in interface AttributeAssignDAO
Parameters:
attributeAssign -

findAttributeDefNamesByGroupIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByGroupIdAndAttributeDefId(String groupId,
                                                                             String attributeDefId)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByGroupIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByGroupIdAndAttributeDefId(java.lang.String, java.lang.String)

findAttributeDefNamesByStemIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByStemIdAndAttributeDefId(String stemId,
                                                                            String attributeDefId)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByStemIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByStemIdAndAttributeDefId(java.lang.String, java.lang.String)

findByStemIdAndAttributeDefId

public Set<AttributeAssign> findByStemIdAndAttributeDefId(String stemId,
                                                          String attributeDefId)
Specified by:
findByStemIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByStemIdAndAttributeDefId(java.lang.String, java.lang.String)

findByStemIdAndAttributeDefNameId

public Set<AttributeAssign> findByStemIdAndAttributeDefNameId(String stemId,
                                                              String attributeDefNameId)
Specified by:
findByStemIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByStemIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findAttributeDefNamesByMemberIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByMemberIdAndAttributeDefId(String memberId,
                                                                              String attributeDefId)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByMemberIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByMemberIdAndAttributeDefId(java.lang.String, java.lang.String)

findByMemberIdAndAttributeDefId

public Set<AttributeAssign> findByMemberIdAndAttributeDefId(String memberId,
                                                            String attributeDefId)
Specified by:
findByMemberIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByMemberIdAndAttributeDefId(java.lang.String, java.lang.String)

findByMemberIdAndAttributeDefNameId

public Set<AttributeAssign> findByMemberIdAndAttributeDefNameId(String memberId,
                                                                String attributeDefNameId)
Specified by:
findByMemberIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByMemberIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findAttributeDefNamesByAttributeDefIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo,
                                                                                    String attributeDefIdToAssign)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByAttributeDefIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByAttributeDefIdAndAttributeDefId(java.lang.String, java.lang.String)

findByAttributeDefIdAndAttributeDefId

public Set<AttributeAssign> findByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo,
                                                                  String attributeDefIdToAssign)
Specified by:
findByAttributeDefIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByAttributeDefIdAndAttributeDefId(java.lang.String, java.lang.String)

findByAttributeDefIdAndAttributeDefNameId

public Set<AttributeAssign> findByAttributeDefIdAndAttributeDefNameId(String attributeDefIdToAssignTo,
                                                                      String attributeDefNameIdToAssign)
Specified by:
findByAttributeDefIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByAttributeDefIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findAttributeDefNamesByMembershipIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByMembershipIdAndAttributeDefId(String membershipIdToAssignTo,
                                                                                  String attributeDefIdToAssign)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByMembershipIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByMembershipIdAndAttributeDefId(java.lang.String, java.lang.String)

findByMembershipIdAndAttributeDefId

public Set<AttributeAssign> findByMembershipIdAndAttributeDefId(String membershipIdToAssignTo,
                                                                String attributeDefIdToAssign)
Specified by:
findByMembershipIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByMembershipIdAndAttributeDefId(java.lang.String, java.lang.String)

findByMembershipIdAndAttributeDefNameId

public Set<AttributeAssign> findByMembershipIdAndAttributeDefNameId(String membershipIdToAssignTo,
                                                                    String attributeDefNameIdToAssign)
Specified by:
findByMembershipIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByMembershipIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findAttributeDefNamesByAttrAssignIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo,
                                                                                  String attributeDefIdToAssign)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByAttrAssignIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByAttrAssignIdAndAttributeDefId(java.lang.String, java.lang.String)

findByAttrAssignIdAndAttributeDefId

public Set<AttributeAssign> findByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo,
                                                                String attributeDefIdToAssign)
Specified by:
findByAttrAssignIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByAttrAssignIdAndAttributeDefId(java.lang.String, java.lang.String)

findByAttrAssignIdAndAttributeDefNameId

public Set<AttributeAssign> findByAttrAssignIdAndAttributeDefNameId(String attrAssignIdToAssignTo,
                                                                    String attributeDefNameIdToAssign)
Specified by:
findByAttrAssignIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByAttrAssignIdAndAttributeDefNameId(java.lang.String, java.lang.String)

findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId

public Set<AttributeDefName> findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId(String groupId,
                                                                                     String memberId,
                                                                                     String attributeDefIdToAssign)
Description copied from interface: AttributeAssignDAO
find attribute def names (distinct) by attribute def id

Specified by:
findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute defs
See Also:
AttributeAssignDAO.findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId(java.lang.String, java.lang.String, java.lang.String)

findByGroupIdMemberIdAndAttributeDefId

public Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefId(String groupId,
                                                                   String memberId,
                                                                   String attributeDefIdToAssign)
Specified by:
findByGroupIdMemberIdAndAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByGroupIdMemberIdAndAttributeDefId(java.lang.String, java.lang.String, java.lang.String)

findByGroupIdMemberIdAndAttributeDefNameId

public Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefNameId(String groupId,
                                                                       String memberId,
                                                                       String attributeDefNameIdToAssign)
Specified by:
findByGroupIdMemberIdAndAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or null if not there
See Also:
AttributeAssignDAO.findByGroupIdMemberIdAndAttributeDefNameId(java.lang.String, java.lang.String, java.lang.String)

findByUuidOrKey

public AttributeAssign findByUuidOrKey(Collection<String> idsToIgnore,
                                       String id,
                                       String attributeDefNameId,
                                       String attributeAssignActionId,
                                       String ownerAttributeAssignId,
                                       String ownerAttributeDefId,
                                       String ownerGroupId,
                                       String ownerMemberId,
                                       String ownerMembershipId,
                                       String ownerStemId,
                                       boolean exceptionIfNull,
                                       Long disabledTimeDb,
                                       Long enabledTimeDb,
                                       String notes,
                                       boolean disallowed)
                                throws GrouperDAOException
Specified by:
findByUuidOrKey in interface AttributeAssignDAO
Parameters:
idsToIgnore - dont return anything in this list, already used or will be used
id - if find by id, that is it
attributeDefNameId - which attribute is assigned
attributeAssignActionId - is the action for this assignment
ownerAttributeAssignId - owner must match
ownerAttributeDefId - owner must match
ownerGroupId - owner must match
ownerMemberId - owner must match
ownerMembershipId - owner must match
ownerStemId - owner must match
disabledTimeDb - if there are multiple without id match, and this matches, that is good
enabledTimeDb - if there are multiple without id match, this is good
notes - if there are multiple without id match, this is good
disallowed - if there are multiple without id match, this is good
Returns:
the attribute assign or null
Throws:
GrouperDAOException
See Also:
AttributeAssignDAO.findByUuidOrKey(java.util.Collection, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.Long, java.lang.Long, java.lang.String, boolean)

saveUpdateProperties

public void saveUpdateProperties(AttributeAssign attributeAssign)
Description copied from interface: AttributeAssignDAO
save the update properties which are auto saved when business method is called

Specified by:
saveUpdateProperties in interface AttributeAssignDAO
See Also:
AttributeAssignDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.assign.AttributeAssign)

findByOwnerAttributeAssignId

public Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId)
Specified by:
findByOwnerAttributeAssignId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerAttributeAssignId(java.lang.String)

findByOwnerAttributeAssignId

public Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId,
                                                         QueryOptions queryOptions)
Specified by:
findByOwnerAttributeAssignId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerAttributeAssignId(java.lang.String, QueryOptions)

findByOwnerGroupId

public Set<AttributeAssign> findByOwnerGroupId(String ownerGroupId)
Specified by:
findByOwnerGroupId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerGroupId(java.lang.String)

findByOwnerMemberId

public Set<AttributeAssign> findByOwnerMemberId(String ownerMemberId)
Specified by:
findByOwnerMemberId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerMemberId(java.lang.String)

findByOwnerMembershipId

public Set<AttributeAssign> findByOwnerMembershipId(String ownerMembershipId)
Specified by:
findByOwnerMembershipId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerMembershipId(java.lang.String)

findByOwnerStemId

public Set<AttributeAssign> findByOwnerStemId(String ownerStemId)
Specified by:
findByOwnerStemId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerStemId(java.lang.String)

findByActionId

public Set<AttributeAssign> findByActionId(String actionId)
Specified by:
findByActionId in interface AttributeAssignDAO
Returns:
the assignments
See Also:
AttributeAssignDAO.findByActionId(java.lang.String)

findByOwnerAttributeDefId

public Set<AttributeAssign> findByOwnerAttributeDefId(String ownerAttributeDefId)
Specified by:
findByOwnerAttributeDefId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByOwnerAttributeDefId(java.lang.String)

findByAttributeDefNameId

public Set<AttributeAssign> findByAttributeDefNameId(String attributeDefNameId)
Specified by:
findByAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute assigns or empty if not there
See Also:
AttributeAssignDAO.findByAttributeDefNameId(java.lang.String)

findGroupAttributeAssignments

public Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds,
                                                          Collection<String> attributeDefIds,
                                                          Collection<String> attributeDefNameIds,
                                                          Collection<String> groupIds,
                                                          Collection<String> actions,
                                                          Boolean enabled,
                                                          boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Specified by:
findGroupAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findGroupAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findGroupAttributeAssignments

public Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds,
                                                          Collection<String> attributeDefIds,
                                                          Collection<String> attributeDefNameIds,
                                                          Collection<String> groupIds,
                                                          Collection<String> actions,
                                                          Boolean enabled,
                                                          boolean includeAssignmentsOnAssignments,
                                                          AttributeDefType attributeDefType)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Specified by:
findGroupAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
Returns:
the assignments
See Also:
AttributeAssignDAO.findGroupAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType)

queryByValueAddTablesWhereClause

public static void queryByValueAddTablesWhereClause(ByHqlStatic byHqlStatic,
                                                    StringBuilder sqlTables,
                                                    StringBuilder sqlWhereClause,
                                                    AttributeDefValueType attributeDefValueType,
                                                    Object theValue)
make sure if sending a value you are sending a value type, and add table if necessary

Parameters:
byHqlStatic -
sqlTables -
sqlWhereClause - should not be empty
attributeDefValueType -
theValue -

findGroupAttributeAssignments

public Set<AttributeAssign> findGroupAttributeAssignments(Collection<String> attributeAssignIds,
                                                          Collection<String> attributeDefIds,
                                                          Collection<String> attributeDefNameIds,
                                                          Collection<String> groupIds,
                                                          Collection<String> actions,
                                                          Boolean enabled,
                                                          boolean includeAssignmentsOnAssignments,
                                                          AttributeDefType attributeDefType,
                                                          AttributeDefValueType attributeDefValueType,
                                                          Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Specified by:
findGroupAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup then get the assignment which tells you the owner as well
Returns:
the assignments
See Also:
AttributeAssignDAO.findGroupAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findStemAttributeAssignments

public Set<AttributeAssign> findStemAttributeAssignments(Collection<String> attributeAssignIds,
                                                         Collection<String> attributeDefIds,
                                                         Collection<String> attributeDefNameIds,
                                                         Collection<String> stemIds,
                                                         Collection<String> actions,
                                                         Boolean enabled,
                                                         boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findStemAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
stemIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findStemAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findStemAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findStemAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                      Collection<String> attributeDefIds,
                                                                      Collection<String> attributeDefNameIds,
                                                                      Collection<String> stemIds,
                                                                      Collection<String> actions,
                                                                      Boolean enabled,
                                                                      AttributeDefType attributeDefType,
                                                                      AttributeDefValueType attributeDefValueType,
                                                                      Object theValue,
                                                                      boolean includeAssignmentsFromAssignments,
                                                                      Collection<String> ownerAttributeAssignIds,
                                                                      Collection<String> ownerAttributeDefIds,
                                                                      Collection<String> ownerAttributeDefNameIds,
                                                                      Collection<String> ownerActions,
                                                                      boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of stems. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findStemAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
stemIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findStemAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findMemberAttributeAssignments

public Set<AttributeAssign> findMemberAttributeAssignments(Collection<String> attributeAssignIds,
                                                           Collection<String> attributeDefIds,
                                                           Collection<String> attributeDefNameIds,
                                                           Collection<String> memberIds,
                                                           Collection<String> actions,
                                                           Boolean enabled,
                                                           boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Specified by:
findMemberAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
memberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findMemberAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findMemberAttributeAssignments

public Set<AttributeAssign> findMemberAttributeAssignments(Collection<String> attributeAssignIds,
                                                           Collection<String> attributeDefIds,
                                                           Collection<String> attributeDefNameIds,
                                                           Collection<String> memberIds,
                                                           Collection<String> actions,
                                                           Boolean enabled,
                                                           boolean includeAssignmentsOnAssignments,
                                                           AttributeDefType attributeDefType,
                                                           AttributeDefValueType attributeDefValueType,
                                                           Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Specified by:
findMemberAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
memberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
Returns:
the assignments
See Also:
AttributeAssignDAO.findMemberAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findAttributeDefAttributeAssignments

public Set<AttributeAssign> findAttributeDefAttributeAssignments(Collection<String> attributeAssignIds,
                                                                 Collection<String> attributeDefIds,
                                                                 Collection<String> attributeDefNameIds,
                                                                 Collection<String> attributeDefAssignToIds,
                                                                 Collection<String> actions,
                                                                 Boolean enabled,
                                                                 boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or attribute def assign to ids cannot have more than 100 bind variables

Specified by:
findAttributeDefAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
attributeDefAssignToIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findAttributeDefAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findAttributeDefAttributeAssignments

public Set<AttributeAssign> findAttributeDefAttributeAssignments(Collection<String> attributeAssignIds,
                                                                 Collection<String> attributeDefIds,
                                                                 Collection<String> attributeDefNameIds,
                                                                 Collection<String> attributeDefAssignToIds,
                                                                 Collection<String> actions,
                                                                 Boolean enabled,
                                                                 boolean includeAssignmentsOnAssignments,
                                                                 AttributeDefType attributeDefType,
                                                                 AttributeDefValueType attributeDefValueType,
                                                                 Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or attribute def assign to ids cannot have more than 100 bind variables

Specified by:
findAttributeDefAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
attributeDefAssignToIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - attr, perm, limit, or null for all
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
Returns:
the assignments
See Also:
AttributeAssignDAO.findAttributeDefAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findMembershipAttributeAssignments

public Set<AttributeAssign> findMembershipAttributeAssignments(Collection<String> attributeAssignIds,
                                                               Collection<String> attributeDefIds,
                                                               Collection<String> attributeDefNameIds,
                                                               Collection<String> membershipIds,
                                                               Collection<String> actions,
                                                               Boolean enabled,
                                                               boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findMembershipAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
membershipIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findMembershipAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findMembershipAttributeAssignments

public Set<AttributeAssign> findMembershipAttributeAssignments(Collection<String> attributeAssignIds,
                                                               Collection<String> attributeDefIds,
                                                               Collection<String> attributeDefNameIds,
                                                               Collection<String> membershipIds,
                                                               Collection<String> actions,
                                                               Boolean enabled,
                                                               boolean includeAssignmentsOnAssignments,
                                                               AttributeDefType attributeDefType,
                                                               AttributeDefValueType attributeDefValueType,
                                                               Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findMembershipAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
membershipIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup then get the assignment which tells you the owner as well
Returns:
the assignments
See Also:
AttributeAssignDAO.findMembershipAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findAnyMembershipAttributeAssignments

public Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds,
                                                                  Collection<String> attributeDefIds,
                                                                  Collection<String> attributeDefNameIds,
                                                                  Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds,
                                                                  Collection<String> actions,
                                                                  Boolean enabled,
                                                                  boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findAnyMembershipAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIdsAndMemberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findAnyMembershipAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean)

findAnyMembershipAttributeAssignments

public Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds,
                                                                  Collection<String> attributeDefIds,
                                                                  Collection<String> attributeDefNameIds,
                                                                  Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds,
                                                                  Collection<String> actions,
                                                                  Boolean enabled,
                                                                  boolean includeAssignmentsOnAssignments,
                                                                  AttributeDefType attributeDefType)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findAnyMembershipAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIdsAndMemberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - attr, perm, limit, or null for all
Returns:
the assignments
See Also:
AttributeAssignDAO.findAnyMembershipAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType)

findAnyMembershipAttributeAssignments

public Set<AttributeAssign> findAnyMembershipAttributeAssignments(Collection<String> attributeAssignIds,
                                                                  Collection<String> attributeDefIds,
                                                                  Collection<String> attributeDefNameIds,
                                                                  Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds,
                                                                  Collection<String> actions,
                                                                  Boolean enabled,
                                                                  boolean includeAssignmentsOnAssignments,
                                                                  AttributeDefType attributeDefType,
                                                                  AttributeDefValueType attributeDefValueType,
                                                                  Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findAnyMembershipAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIdsAndMemberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - attr, perm, limit, or null for all
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup then get the assignment which tells you the owner as well
Returns:
the assignments
See Also:
AttributeAssignDAO.findAnyMembershipAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findAssignmentsOnAssignments

public Set<AttributeAssign> findAssignmentsOnAssignments(Collection<AttributeAssign> attributeAssigns,
                                                         AttributeAssignType attributeAssignType,
                                                         Boolean enabled)
Description copied from interface: AttributeAssignDAO
find assignments on assignments. Note, it is assumed the current user can read the assignments passed in (and other underlying objects), so only the attributeDefs of the assignments on assignments are checked for security

Specified by:
findAssignmentsOnAssignments in interface AttributeAssignDAO
Parameters:
attributeAssigns - to find assignments on these assignments
attributeAssignType - of the assignments we are looking for or null for all
enabled - null for all, true for enabled only, false for disabled only
Returns:
the assignments
See Also:
AttributeAssignDAO.findAssignmentsOnAssignments(java.util.Collection, edu.internet2.middleware.grouper.attr.assign.AttributeAssignType, java.lang.Boolean)

findAssignmentsOnAssignmentsByIds

public Set<AttributeAssign> findAssignmentsOnAssignmentsByIds(Collection<String> attributeAssignIds,
                                                              AttributeAssignType attributeAssignType,
                                                              AttributeDefType attributeDefType,
                                                              Boolean enabled)
Description copied from interface: AttributeAssignDAO
find assignments on assignments. Note, it is assumed the current user can read the assignments passed in (and other underlying objects), so only the attributeDefs of the assignments on assignments are checked for security

Specified by:
findAssignmentsOnAssignmentsByIds in interface AttributeAssignDAO
Parameters:
attributeAssignIds - to find assignments on these assignment ids
attributeAssignType - of the assignments we are looking for
attributeDefType - attr, perm, limit, or null for all
enabled - null for all, true for enabled only, false for disabled only
Returns:
the assignments
See Also:
AttributeAssignDAO.findAssignmentsOnAssignmentsByIds(Collection, AttributeAssignType, AttributeDefType, Boolean)

findAttributeDefsByAttributeDefNameId

public Set<AttributeDef> findAttributeDefsByAttributeDefNameId(String attributeDefNameId)
Specified by:
findAttributeDefsByAttributeDefNameId in interface AttributeAssignDAO
Returns:
the attribute defs or empty if not there
See Also:
AttributeAssignDAO.findAttributeDefsByAttributeDefNameId(java.lang.String)

findGroupAttributeDefNames

public Set<AttributeDefName> findGroupAttributeDefNames(Collection<String> attributeAssignIds,
                                                        Collection<String> attributeDefIds,
                                                        Collection<String> attributeDefNameIds,
                                                        Collection<String> groupIds,
                                                        Collection<String> actions,
                                                        Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attribute def names. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Specified by:
findGroupAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findGroupAttributeDefNames(Collection, Collection, Collection, Collection, Collection, Boolean)

filterAttributeDefNames

public Set<AttributeDefName> filterAttributeDefNames(GrouperSession grouperSession,
                                                     Set<AttributeDefName> attibuteDefNames)
Parameters:
grouperSession -
attibuteDefNames -
Returns:
the names which are ok to view

findMemberAttributeDefNames

public Set<AttributeDefName> findMemberAttributeDefNames(Collection<String> attributeAssignIds,
                                                         Collection<String> attributeDefIds,
                                                         Collection<String> attributeDefNameIds,
                                                         Collection<String> memberIds,
                                                         Collection<String> actions,
                                                         Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attribute def names. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Specified by:
findMemberAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
memberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findMemberAttributeDefNames(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean)

findMembershipAttributeDefNames

public Set<AttributeDefName> findMembershipAttributeDefNames(Collection<String> attributeAssignIds,
                                                             Collection<String> attributeDefIds,
                                                             Collection<String> attributeDefNameIds,
                                                             Collection<String> membershipIds,
                                                             Collection<String> actions,
                                                             Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attribute def names. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findMembershipAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
membershipIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findMembershipAttributeDefNames(Collection, Collection, Collection, Collection, Collection, Boolean)

findByAttributeTypeDefNameId

public Map<AttributeAssign,Set<AttributeAssignValueContainer>> findByAttributeTypeDefNameId(String attributeTypeDefNameId,
                                                                                            QueryOptions queryOptions)
find attribute assigns by ids, as root (no security). order by attribute type def name, so they are in order

Specified by:
findByAttributeTypeDefNameId in interface AttributeAssignDAO
Parameters:
attributeTypeDefNameId - attribute def name of the type on the owner
queryOptions -
Returns:
attributes grouped by the type assignment

findByAssignTypeId

public Set<AttributeAssignValueContainer> findByAssignTypeId(String attributeTypeAssignId)
find attribute assigns by ids, as root (no security). this is for one type assignment.

Specified by:
findByAssignTypeId in interface AttributeAssignDAO
Parameters:
attributeTypeAssignId - type assign id
Returns:
attributes

findStemAttributeDefNames

public Set<AttributeDefName> findStemAttributeDefNames(Collection<String> attributeAssignIds,
                                                       Collection<String> attributeDefIds,
                                                       Collection<String> attributeDefNameIds,
                                                       Collection<String> stemIds,
                                                       Collection<String> actions,
                                                       Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attribute def names. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findStemAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
stemIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findStemAttributeDefNames(Collection, Collection, Collection, Collection, Collection, Boolean)

findAnyMembershipAttributeDefNames

public Set<AttributeDefName> findAnyMembershipAttributeDefNames(Collection<String> attributeAssignIds,
                                                                Collection<String> attributeDefIds,
                                                                Collection<String> attributeDefNameIds,
                                                                Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds,
                                                                Collection<String> actions,
                                                                Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attribute def names. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Specified by:
findAnyMembershipAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIdsAndMemberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findAnyMembershipAttributeDefNames(Collection, Collection, Collection, Collection, Collection, Boolean)

findAttributeDefAttributeDefNames

public Set<AttributeDefName> findAttributeDefAttributeDefNames(Collection<String> attributeAssignIds,
                                                               Collection<String> attributeDefIds,
                                                               Collection<String> attributeDefNameIds,
                                                               Collection<String> attributeDefAssignToIds,
                                                               Collection<String> actions,
                                                               Boolean enabled)
Description copied from interface: AttributeAssignDAO
securely search for attributeDefNames. need to pass in either the assign ids, def ids, def name ids, or attribute def assign to ids cannot have more than 100 bind variables

Specified by:
findAttributeDefAttributeDefNames in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
attributeDefAssignToIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
Returns:
the assignments
See Also:
AttributeAssignDAO.findAttributeDefAttributeDefNames(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean)

findByAttributeDefNameAndValueString

public Set<AttributeAssign> findByAttributeDefNameAndValueString(String attributeDefNameId,
                                                                 String value,
                                                                 QueryOptions queryOptions)
Description copied from interface: AttributeAssignDAO
find by attribute name and value

Specified by:
findByAttributeDefNameAndValueString in interface AttributeAssignDAO
Returns:
the attribute assigns that match
See Also:
AttributeAssignDAO.findByAttributeDefNameAndValueString(String, String, QueryOptions)

findAttributeAssignments

public Set<AttributeAssign> findAttributeAssignments(AttributeAssignType attributeAssignType,
                                                     String attributeDefId,
                                                     String attributeDefNameId,
                                                     String ownerGroupId,
                                                     String ownerStemId,
                                                     String ownerMemberId,
                                                     String ownerAttributeDefId,
                                                     String ownerMembershipId,
                                                     Boolean enabled,
                                                     boolean includeAssignmentsOnAssignments)
Description copied from interface: AttributeAssignDAO
securely search for assignments

Specified by:
findAttributeAssignments in interface AttributeAssignDAO
attributeDefId - optional
attributeDefNameId - mutually exclusive with attributeDefIds
ownerGroupId - optional
ownerStemId - optional
ownerMemberId - optional
ownerAttributeDefId - optional
ownerMembershipId - optional
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
Returns:
the assignments
See Also:
AttributeAssignDAO.findAttributeAssignments(AttributeAssignType, String, String, String, String, String, String, String, Boolean, boolean)

findAssignmentsOnAssignmentsAttributeDefNames

public Set<AttributeDefName> findAssignmentsOnAssignmentsAttributeDefNames(Collection<AttributeAssign> attributeAssigns,
                                                                           AttributeAssignType attributeAssignType,
                                                                           Boolean enabled)
Description copied from interface: AttributeAssignDAO
search for assignments on assignments attribute def names

Specified by:
findAssignmentsOnAssignmentsAttributeDefNames in interface AttributeAssignDAO
Parameters:
attributeAssigns - to search on
enabled - null for all...
Returns:
the attribute def names
See Also:
AttributeAssignDAO.findAssignmentsOnAssignmentsAttributeDefNames(java.util.Collection, edu.internet2.middleware.grouper.attr.assign.AttributeAssignType, java.lang.Boolean)

findStemAttributeAssignments

public Set<AttributeAssign> findStemAttributeAssignments(Collection<String> attributeAssignIds,
                                                         Collection<String> attributeDefIds,
                                                         Collection<String> attributeDefNameIds,
                                                         Collection<String> stemIds,
                                                         Collection<String> actions,
                                                         Boolean enabled,
                                                         boolean includeAssignmentsOnAssignments,
                                                         AttributeDefType attributeDefType,
                                                         AttributeDefValueType attributeDefValueType,
                                                         Object theValue)
Description copied from interface: AttributeAssignDAO
securely search for assignments. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findStemAttributeAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
stemIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
Returns:
the assignments
See Also:
AttributeAssignDAO.findStemAttributeAssignments(java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.Boolean, boolean, AttributeDefType, AttributeDefValueType, Object)

findAssignmentsFromAssignments

public Set<AttributeAssign> findAssignmentsFromAssignments(Collection<AttributeAssign> attributeAssigns,
                                                           AttributeAssignType attributeAssignType,
                                                           Boolean enabled,
                                                           boolean useCache)
Description copied from interface: AttributeAssignDAO
find assignments from assignments. Note, it is assumed the current user can read the assignments passed in (and other underlying objects), so only the attributeDefs of the assignments on assignments are checked for security

Specified by:
findAssignmentsFromAssignments in interface AttributeAssignDAO
Parameters:
attributeAssigns - to find assignments on these assignments
attributeAssignType - of the assignments we are looking for or null for all
enabled - null for all, true for enabled only, false for disabled only
Returns:
the assignments
See Also:
edu.internet2.middleware.grouper.internal.dao.AttributeAssignDAO#findAssignmentsFromAssignments(java.util.Collection, edu.internet2.middleware.grouper.attr.assign.AttributeAssignType, java.lang.Boolean)

findAssignmentsFromAssignmentsByIds

public Set<AttributeAssign> findAssignmentsFromAssignmentsByIds(Collection<String> attributeAssignIds,
                                                                AttributeAssignType attributeAssignType,
                                                                AttributeDefType attributeDefType,
                                                                Boolean enabled)
Description copied from interface: AttributeAssignDAO
find assignments from assignments. Note, it is assumed the current user can read the assignments passed in (and other underlying objects), so only the attributeDefs of the assignments on assignments are checked for security

Specified by:
findAssignmentsFromAssignmentsByIds in interface AttributeAssignDAO
Parameters:
attributeAssignIds - to find assignments on these assignment ids
attributeAssignType - of the assignments we are looking for
attributeDefType - attr, perm, limit, or null for all
enabled - null for all, true for enabled only, false for disabled only
Returns:
the assignments
See Also:
AttributeAssignDAO.findAssignmentsFromAssignmentsByIds(Collection, AttributeAssignType, AttributeDefType, Boolean)

findMemberAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findMemberAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                        Collection<String> attributeDefIds,
                                                                        Collection<String> attributeDefNameIds,
                                                                        Collection<String> memberIds,
                                                                        Collection<String> actions,
                                                                        Boolean enabled,
                                                                        AttributeDefType attributeDefType,
                                                                        AttributeDefValueType attributeDefValueType,
                                                                        Object theValue,
                                                                        boolean includeAssignmentsFromAssignments,
                                                                        Collection<String> ownerAttributeAssignIds,
                                                                        Collection<String> ownerAttributeDefIds,
                                                                        Collection<String> ownerAttributeDefNameIds,
                                                                        Collection<String> ownerActions,
                                                                        boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of members. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Specified by:
findMemberAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
memberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findMemberAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findGroupAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findGroupAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                       Collection<String> attributeDefIds,
                                                                       Collection<String> attributeDefNameIds,
                                                                       Collection<String> groupIds,
                                                                       Collection<String> actions,
                                                                       Boolean enabled,
                                                                       AttributeDefType attributeDefType,
                                                                       AttributeDefValueType attributeDefValueType,
                                                                       Object theValue,
                                                                       boolean includeAssignmentsFromAssignments,
                                                                       Collection<String> ownerAttributeAssignIds,
                                                                       Collection<String> ownerAttributeDefIds,
                                                                       Collection<String> ownerAttributeDefNameIds,
                                                                       Collection<String> ownerActions,
                                                                       boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of groups. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findGroupAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findGroupAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findAttributeDefAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findAttributeDefAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                              Collection<String> attributeDefIds,
                                                                              Collection<String> attributeDefNameIds,
                                                                              Collection<String> mainOwnerAttributeDefIds,
                                                                              Collection<String> actions,
                                                                              Boolean enabled,
                                                                              AttributeDefType attributeDefType,
                                                                              AttributeDefValueType attributeDefValueType,
                                                                              Object theValue,
                                                                              boolean includeAssignmentsFromAssignments,
                                                                              Collection<String> ownerAttributeAssignIds,
                                                                              Collection<String> ownerAttributeDefIds,
                                                                              Collection<String> ownerAttributeDefNameIds,
                                                                              Collection<String> ownerActions,
                                                                              boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of attribute defs. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Specified by:
findAttributeDefAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
mainOwnerAttributeDefIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findAttributeDefAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findMembershipAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findMembershipAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                            Collection<String> attributeDefIds,
                                                                            Collection<String> attributeDefNameIds,
                                                                            Collection<String> membershipIds,
                                                                            Collection<String> actions,
                                                                            Boolean enabled,
                                                                            AttributeDefType attributeDefType,
                                                                            AttributeDefValueType attributeDefValueType,
                                                                            Object theValue,
                                                                            boolean includeAssignmentsFromAssignments,
                                                                            Collection<String> ownerAttributeAssignIds,
                                                                            Collection<String> ownerAttributeDefIds,
                                                                            Collection<String> ownerAttributeDefNameIds,
                                                                            Collection<String> ownerActions,
                                                                            boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of immediate memberships. need to pass in either the assign ids, def ids, def name ids, or imm membership ids cannot have more than 100 bind variables

Specified by:
findMembershipAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
membershipIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findMembershipAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findAnyMembershipAttributeAssignmentsOnAssignments

public Set<AttributeAssign> findAnyMembershipAttributeAssignmentsOnAssignments(Collection<String> attributeAssignIds,
                                                                               Collection<String> attributeDefIds,
                                                                               Collection<String> attributeDefNameIds,
                                                                               Collection<org.apache.commons.collections.keyvalue.MultiKey> groupIdsAndMemberIds,
                                                                               Collection<String> actions,
                                                                               Boolean enabled,
                                                                               AttributeDefType attributeDefType,
                                                                               AttributeDefValueType attributeDefValueType,
                                                                               Object theValue,
                                                                               boolean includeAssignmentsFromAssignments,
                                                                               Collection<String> ownerAttributeAssignIds,
                                                                               Collection<String> ownerAttributeDefIds,
                                                                               Collection<String> ownerAttributeDefNameIds,
                                                                               Collection<String> ownerActions,
                                                                               boolean useCache)
Description copied from interface: AttributeAssignDAO
securely search for assignments on assignments of effective memberships (or immediate). need to pass in either the assign ids, def ids, def name ids, or imm membership ids cannot have more than 100 bind variables

Specified by:
findAnyMembershipAttributeAssignmentsOnAssignments in interface AttributeAssignDAO
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
groupIdsAndMemberIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - null for all, or specify a type e.g. AttributeDefType.limit
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
includeAssignmentsFromAssignments - T|F if you are finding an assignment that is an assignmentOnAssignment, then get the assignment which tells you the owner as well
ownerAttributeAssignIds - attribute assignment ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefIds - attribute definition ids of the owner assignments (where the attributes are assigned to)
ownerAttributeDefNameIds - attribute definition names ids of the owner assignments (where the attributes are assigned to)
ownerActions - actions of the owner assignment
useCache - to use a cache or not
Returns:
the assignments
See Also:
AttributeAssignDAO.findAnyMembershipAttributeAssignmentsOnAssignments(Collection, Collection, Collection, Collection, Collection, Boolean, AttributeDefType, AttributeDefValueType, Object, boolean, Collection, Collection, Collection, Collection, boolean)

findLegacyGroupTypeAssignmentsByGroupId

public Map<String,AttributeAssign> findLegacyGroupTypeAssignmentsByGroupId(String groupId)
Description copied from interface: AttributeAssignDAO
Returns legacy group types (assigned to a given group) that were either migrated or created in the new attribute framework.

Specified by:
findLegacyGroupTypeAssignmentsByGroupId in interface AttributeAssignDAO
Returns:
the values where the keys are the legacy group type names
See Also:
AttributeAssignDAO.findLegacyGroupTypeAssignmentsByGroupId(java.lang.String)