edu.internet2.middleware.grouper.internal.dao
Interface AttributeAssignDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeAssignDAO

public interface AttributeAssignDAO
extends GrouperDAO

attribute assign data access methods


Method Summary
 void delete(AttributeAssign attributeAssign)
          delete an attribute assign object
 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)
          find by id, use cache
 AttributeAssign findById(String id, boolean exceptionIfNotFound, boolean useCache)
           
 Set<AttributeAssign> findByIds(Collection<String> ids, Boolean enabled, boolean useCache)
          find attribute assignments by ids, this is not a secure method, any ids passed in will be returned if they exist
 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.
 void saveOrUpdate(AttributeAssign attributeAssign)
          insert or update an attribute assign object
 void saveUpdateProperties(AttributeAssign attributeAssign)
          save the update properties which are auto saved when business method is called
 

Method Detail

findAllEnabledDisabledMismatch

Set<AttributeAssign> findAllEnabledDisabledMismatch()
find records which are disabled which shouldnt be, and enabled which shouldnt be

Returns:
the attribute assignments

saveOrUpdate

void saveOrUpdate(AttributeAssign attributeAssign)
insert or update an attribute assign object

Parameters:
attributeAssign -

delete

void delete(AttributeAssign attributeAssign)
delete an attribute assign object

Parameters:
attributeAssign -

findById

AttributeAssign findById(String id,
                         boolean exceptionIfNotFound)
find by id, use cache

Parameters:
id -
exceptionIfNotFound -
Returns:
the attribute assign or null if not there

findById

AttributeAssign findById(String id,
                         boolean exceptionIfNotFound,
                         boolean useCache)
Parameters:
id -
exceptionIfNotFound -
useCache - true to use cache, false for not
Returns:
the attribute assign or null if not there

findByGroupIdAndAttributeDefNameId

Set<AttributeAssign> findByGroupIdAndAttributeDefNameId(String groupId,
                                                        String attributeDefNameId)
Parameters:
groupId -
attributeDefNameId -
Returns:
the attribute assigns or null if not there

findByGroupIdAndAttributeDefId

Set<AttributeAssign> findByGroupIdAndAttributeDefId(String groupId,
                                                    String attributeDefId)
Parameters:
groupId -
attributeDefId -
Returns:
the attribute assigns or null if not there

findAttributeDefNamesByGroupIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByGroupIdAndAttributeDefId(String groupId,
                                                                      String attributeDefId)
find attribute def names (distinct) by attribute def id

Parameters:
groupId -
attributeDefId -
Returns:
the attribute defs

findByMemberIdAndAttributeDefNameId

Set<AttributeAssign> findByMemberIdAndAttributeDefNameId(String memberId,
                                                         String attributeDefNameId)
Parameters:
memberId -
attributeDefNameId -
Returns:
the attribute assigns or null if not there

findByMemberIdAndAttributeDefId

Set<AttributeAssign> findByMemberIdAndAttributeDefId(String memberId,
                                                     String attributeDefId)
Parameters:
memberId -
attributeDefId -
Returns:
the attribute assigns or null if not there

findAttributeDefNamesByMemberIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByMemberIdAndAttributeDefId(String memberId,
                                                                       String attributeDefId)
find attribute def names (distinct) by attribute def id

Parameters:
memberId -
attributeDefId -
Returns:
the attribute defs

findByAssignTypeId

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

Parameters:
attributeTypeAssignId - type assign id
Returns:
attributes

findByAttributeTypeDefNameId

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

Parameters:
attributeTypeDefNameId - attribute def name of the type on the owner
queryOptions -
Returns:
attributes grouped by the type assignment

findByStemIdAndAttributeDefNameId

Set<AttributeAssign> findByStemIdAndAttributeDefNameId(String stemId,
                                                       String attributeDefNameId)
Parameters:
stemId -
attributeDefNameId -
Returns:
the attribute assigns or null if not there

findByStemIdAndAttributeDefId

Set<AttributeAssign> findByStemIdAndAttributeDefId(String stemId,
                                                   String attributeDefId)
Parameters:
stemId -
attributeDefId -
Returns:
the attribute assigns or null if not there

findAttributeDefNamesByStemIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByStemIdAndAttributeDefId(String stemId,
                                                                     String attributeDefId)
find attribute def names (distinct) by attribute def id

Parameters:
stemId -
attributeDefId -
Returns:
the attribute defs

findAttributeDefNamesByAttributeDefIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo,
                                                                             String attributeDefIdToAssign)
find attribute def names (distinct) by attribute def id

Parameters:
attributeDefIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute defs

findByAttributeDefIdAndAttributeDefId

Set<AttributeAssign> findByAttributeDefIdAndAttributeDefId(String attributeDefIdToAssignTo,
                                                           String attributeDefIdToAssign)
Parameters:
attributeDefIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute assigns or null if not there

findByAttributeDefIdAndAttributeDefNameId

Set<AttributeAssign> findByAttributeDefIdAndAttributeDefNameId(String attributeDefIdToAssignTo,
                                                               String attributeDefNameIdToAssign)
Parameters:
attributeDefIdToAssignTo -
attributeDefNameIdToAssign -
Returns:
the attribute assigns or null if not there

findByOwnerAttributeAssignId

Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId)
Parameters:
ownerAttributeAssignId -
Returns:
the attribute assigns or empty if not there

findByOwnerAttributeAssignId

Set<AttributeAssign> findByOwnerAttributeAssignId(String ownerAttributeAssignId,
                                                  QueryOptions queryOptions)
Parameters:
ownerAttributeAssignId -
queryOptions -
Returns:
the attribute assigns or empty if not there

findByOwnerAttributeDefId

Set<AttributeAssign> findByOwnerAttributeDefId(String ownerAttributeDefId)
Parameters:
ownerAttributeDefId -
Returns:
the attribute assigns or empty if not there

findAttributeDefsByAttributeDefNameId

Set<AttributeDef> findAttributeDefsByAttributeDefNameId(String attributeDefNameId)
Parameters:
attributeDefNameId -
Returns:
the attribute defs or empty if not there

findByOwnerGroupId

Set<AttributeAssign> findByOwnerGroupId(String ownerGroupId)
Parameters:
ownerGroupId -
Returns:
the attribute assigns or empty if not there

findByOwnerStemId

Set<AttributeAssign> findByOwnerStemId(String ownerStemId)
Parameters:
ownerStemId -
Returns:
the attribute assigns or empty if not there

findByOwnerMemberId

Set<AttributeAssign> findByOwnerMemberId(String ownerMemberId)
Parameters:
ownerMemberId -
Returns:
the attribute assigns or empty if not there

findByOwnerMembershipId

Set<AttributeAssign> findByOwnerMembershipId(String ownerMembershipId)
Parameters:
ownerMembershipId -
Returns:
the attribute assigns or empty if not there

findAttributeDefNamesByMembershipIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByMembershipIdAndAttributeDefId(String membershipIdToAssignTo,
                                                                           String attributeDefIdToAssign)
find attribute def names (distinct) by attribute def id

Parameters:
membershipIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute defs

findByMembershipIdAndAttributeDefId

Set<AttributeAssign> findByMembershipIdAndAttributeDefId(String membershipIdToAssignTo,
                                                         String attributeDefIdToAssign)
Parameters:
membershipIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute assigns or null if not there

findByMembershipIdAndAttributeDefNameId

Set<AttributeAssign> findByMembershipIdAndAttributeDefNameId(String membershipIdToAssignTo,
                                                             String attributeDefNameIdToAssign)
Parameters:
membershipIdToAssignTo -
attributeDefNameIdToAssign -
Returns:
the attribute assigns or null if not there

findAttributeDefNamesByAttrAssignIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo,
                                                                           String attributeDefIdToAssign)
find attribute def names (distinct) by attribute def id

Parameters:
attrAssignIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute defs

findByAttrAssignIdAndAttributeDefId

Set<AttributeAssign> findByAttrAssignIdAndAttributeDefId(String attrAssignIdToAssignTo,
                                                         String attributeDefIdToAssign)
Parameters:
attrAssignIdToAssignTo -
attributeDefIdToAssign -
Returns:
the attribute assigns or null if not there

findByAttributeDefNameId

Set<AttributeAssign> findByAttributeDefNameId(String attributeDefNameId)
Parameters:
attributeDefNameId -
Returns:
the attribute assigns or empty if not there

findByAttrAssignIdAndAttributeDefNameId

Set<AttributeAssign> findByAttrAssignIdAndAttributeDefNameId(String attrAssignIdToAssignTo,
                                                             String attributeDefNameIdToAssign)
Parameters:
attrAssignIdToAssignTo -
attributeDefNameIdToAssign -
Returns:
the attribute assigns or null if not there

findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId

Set<AttributeDefName> findAttributeDefNamesByGroupIdMemberIdAndAttributeDefId(String groupId,
                                                                              String memberId,
                                                                              String attributeDefIdToAssign)
find attribute def names (distinct) by attribute def id

Parameters:
groupId -
memberId -
attributeDefIdToAssign -
Returns:
the attribute defs

findByGroupIdMemberIdAndAttributeDefId

Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefId(String groupId,
                                                            String memberId,
                                                            String attributeDefIdToAssign)
Parameters:
groupId -
memberId -
attributeDefIdToAssign -
Returns:
the attribute assigns or null if not there

findByGroupIdMemberIdAndAttributeDefNameId

Set<AttributeAssign> findByGroupIdMemberIdAndAttributeDefNameId(String groupId,
                                                                String memberId,
                                                                String attributeDefNameIdToAssign)
Parameters:
groupId -
memberId -
attributeDefNameIdToAssign -
Returns:
the attribute assigns or null if not there

saveUpdateProperties

void saveUpdateProperties(AttributeAssign attributeAssign)
save the update properties which are auto saved when business method is called

Parameters:
attributeAssign -

findByUuidOrKey

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
Parameters:
id - if find by id, that is it
idsToIgnore - dont return anything in this list, already used or will be used
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
exceptionIfNull -
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
Since:
1.6.0

findByActionId

Set<AttributeAssign> findByActionId(String actionId)
Parameters:
actionId -
Returns:
the assignments

findGroupAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findGroupAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findStemAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findStemAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMemberAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAttributeDefAttributeAssignments

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

Parameters:
attributeAssignIds -
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

findMembershipAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAnyMembershipAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAnyMembershipAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAssignmentsOnAssignments

Set<AttributeAssign> findAssignmentsOnAssignments(Collection<AttributeAssign> attributeAssigns,
                                                  AttributeAssignType attributeAssignType,
                                                  Boolean enabled)
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

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

findAssignmentsOnAssignmentsByIds

Set<AttributeAssign> findAssignmentsOnAssignmentsByIds(Collection<String> attributeAssignIds,
                                                       AttributeAssignType attributeAssignType,
                                                       AttributeDefType attributeDefType,
                                                       Boolean enabled)
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

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

findGroupAttributeDefNames

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. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMemberAttributeDefNames

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. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMembershipAttributeDefNames

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findStemAttributeDefNames

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAnyMembershipAttributeDefNames

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAttributeDefAttributeDefNames

Set<AttributeDefName> findAttributeDefAttributeDefNames(Collection<String> attributeAssignIds,
                                                        Collection<String> attributeDefIds,
                                                        Collection<String> attributeDefNameIds,
                                                        Collection<String> attributeDefAssignToIds,
                                                        Collection<String> actions,
                                                        Boolean enabled)
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

Parameters:
attributeAssignIds -
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

findByAttributeDefNameAndValueString

Set<AttributeAssign> findByAttributeDefNameAndValueString(String attributeDefNameId,
                                                          String value,
                                                          QueryOptions queryOptions)
find by attribute name and value

Parameters:
attributeDefNameId -
value -
queryOptions -
Returns:
the attribute assigns that match

findAttributeAssignments

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

Parameters:
attributeAssignType -
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

findAssignmentsOnAssignmentsAttributeDefNames

Set<AttributeDefName> findAssignmentsOnAssignmentsAttributeDefNames(Collection<AttributeAssign> attributeAssigns,
                                                                    AttributeAssignType attributeAssignType,
                                                                    Boolean enabled)
search for assignments on assignments attribute def names

Parameters:
attributeAssigns - to search on
attributeAssignType -
enabled - null for all...
Returns:
the attribute def names

findAttributeDefAttributeAssignments

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

Parameters:
attributeAssignIds -
attributeDefIds - optional
attributeDefNameIds - mutually exclusive with attributeDefIds
attributeDefAssignToIds - optional
actions - (null means all actions)
enabled - (null means all, true means enabled, false means disabled)
attributeDefType - attr, perm, limit, or null for all
includeAssignmentsOnAssignments - if assignments on assignments should also be included
attributeDefValueType - required if sending theValue, can be: floating, integer, memberId, string, timestamp
theValue - value if you are passing in one attributeDefNameLookup
Returns:
the assignments

findAnyMembershipAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findGroupAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or group ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMemberAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMembershipAttributeAssignments

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. need to pass in either the assign ids, def ids, def name ids, or membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findStemAttributeAssignmentsOnAssignments

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAssignmentsFromAssignments

Set<AttributeAssign> findAssignmentsFromAssignments(Collection<AttributeAssign> attributeAssigns,
                                                    AttributeAssignType attributeAssignType,
                                                    Boolean enabled,
                                                    boolean useCache)
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

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

findAssignmentsFromAssignmentsByIds

Set<AttributeAssign> findAssignmentsFromAssignmentsByIds(Collection<String> attributeAssignIds,
                                                         AttributeAssignType attributeAssignType,
                                                         AttributeDefType attributeDefType,
                                                         Boolean enabled)
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

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

findByIds

Set<AttributeAssign> findByIds(Collection<String> ids,
                               Boolean enabled,
                               boolean useCache)
find attribute assignments by ids, this is not a secure method, any ids passed in will be returned if they exist

Parameters:
ids - no limit on number of ids passed
enabled - true to find enabled only, false to return disabled only
useCache - true to use a cache for the query, false if not
Returns:
the results never null

findMemberAttributeAssignmentsOnAssignments

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. need to pass in either the assign ids, def ids, def name ids, or member ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findGroupAttributeAssignmentsOnAssignments

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAttributeDefAttributeAssignmentsOnAssignments

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. need to pass in either the assign ids, def ids, def name ids, or stem ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findMembershipAttributeAssignmentsOnAssignments

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. need to pass in either the assign ids, def ids, def name ids, or imm membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findAnyMembershipAttributeAssignmentsOnAssignments

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). need to pass in either the assign ids, def ids, def name ids, or imm membership ids cannot have more than 100 bind variables

Parameters:
attributeAssignIds -
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

findLegacyGroupTypeAssignmentsByGroupId

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.

Parameters:
groupId -
Returns:
the values where the keys are the legacy group type names