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> 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<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> findAssignmentsOnAssignments(Collection<AttributeAssign> attributeAssigns, AttributeAssignType attributeAssignType, Boolean enabled)
          find assignments on 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<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<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> findByAttributeDefNameId(String attributeDefNameId)
           
 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
 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> 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)
           
 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<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.
 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<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<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<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.
 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
getConfiguration, 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

findById

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

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

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)
                                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
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)

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)

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)

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)

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)

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)

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)

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)

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
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)

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)

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)