Class Hib3GroupDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO
- All Implemented Interfaces:
GroupDAO,GrouperDAO
Basic Hibernate
Group DAO interface.- Since:
- Version:
- $Id: Hib3GroupDAO.java,v 1.51 2009-12-10 08:54:15 mchyzer Exp $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringassignFilterToQuery(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen) static StringassignFilterToQuery(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen, boolean excludeAlternateNames) voidbooleanfindAllByAnyApproximateAttr(String val, String scope) findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery) findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery, Boolean enabled) Find groups using an approximate string for the alternate name.findAllByApproximateAlternateName(String name, String scope) Find groups using an approximate string for the alternate name.findAllByApproximateAttr(String attr, String val) Implementation Notes.findAllByApproximateAttr(String attr, String val, String scope) Implementation Notes.findAllByApproximateAttrSecure(String attr, String val, String scope) findAllByApproximateAttrSecure(String attr, String val, String scope, Boolean enabled) Find groups using an approximate string for the current name, display name, extension, display extension.findAllByApproximateCurrentName(String name, String scope) Find groups using an approximate string for the current name, display name, extension, display extension.Implementation Notes.findAllByApproximateName(String name, String scope) Implementation Notes.findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions) Implementation Notes.findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) Implementation Notes.findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) Implementation Notes.findAllByAttr(String attr, String val) Implementation Notes.findAllByAttr(String attr, String val, String scope) Implementation Notes.findAllByAttr(String attr, String val, String scope, boolean secureQuery) findAllByAttr(String attr, String val, String scope, boolean secureQuery, Boolean enabled) (non-Javadoc)findAllByCreatedAfter(Date d, String scope) findAllByCreatedBefore(Date d, String scope) findAllByLastMembershipAfter(Date d, String scope) findAllByLastMembershipBefore(Date d, String scope) findAllByModifiedAfter(Date d, String scope) findAllByModifiedBefore(Date d, String scope) findAllByType(GroupType _gt) Note, this doesnt cachefindAllByType(GroupType _gt, QueryOptions queryOptions) this cachesfindAllByType(GroupType _gt, String scope) findAllEnabledDisabledMismatch(long queryTime) find records which are disabled which shouldnt be, and enabled which shouldnt befindByAlternateName(String name, boolean exceptionIfNotFound) Find a group by its alternate name only.findByApproximateDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByApproximateDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByApproximateDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByApproximateExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByAttribute(String attr, String val) Deprecated.use overloadfindByAttribute(String attr, String val, boolean exceptionIfNotFound) findByAttribute(String attr, String val, boolean exceptionIfNotFound, boolean secureQuery) findByCreatorOrModifier(Member member) find groups by creator or modifierfindByCurrentName(String name, boolean exceptionIfNotFound) Find a group by its current name only.findByDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByIdIndex(Long idIndex, boolean exceptionIfNotFound) not a secure method, find by id indexfindByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) find a group by id indexfindByInternalId(Long internalId, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByInternalIds(Collection<Long> internalIds, boolean exceptionOnNotFound, QueryOptions queryOptions) findByName(String name) Deprecated.use overloadfindByName(String name, boolean exceptionIfNotFound) findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Set<Privilege> inPrivSet) findByNamesSecure(Collection<String> names, QueryOptions queryOptions) findByNamesSecure(Collection<String> names, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByUuid(String uuid) Deprecated.use overloadfindByUuid(String uuid, boolean exceptionIfNotFound) findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findByUuidOrName(String uuid, String name, boolean exceptionIfNull) findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) find all groups which have these uuidsfindByUuidSecure(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) find by uuid securefindByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions) find by uuid securefindByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) find by uuid securefindGroupsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which groups do not have this privilegefindGroupsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which groups do not have this privilegegetAllGroups(String scope) getAllGroupsMembershipSecure(Field field, String scope, GrouperSession grouperSession, Subject subject, QueryOptions queryOptions, Boolean enabled, MembershipType membershipType, Stem stem, Stem.Scope stemScope) getAllGroupsMembershipSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly, Stem stem, Stem.Scope stemScope) getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) In this case, send in the attribute name to sort by (default is displayName).getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) In this case, send in the attribute name to sort by (default is displayName).getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field) get all groups secure, split the scope by whitespacegetAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner) get all groups secure, split the scope by whitespacegetAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue) get all groups secure, split the scope by whitespacegetAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef) get all groups secure, split the scope by whitespacegetAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned) get all groups secure, split the scope by whitespacegetAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned, boolean excludeAlternateNames) getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, TypeOfGroup typeOfGroup) get all groups secure, split the scope by whitespacegetAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) get all groups secure, split the scope by whitespacegetImmediateChildren(Stem stem) getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) get immediate children securegetImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) get immediate children securegetImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) get immediate children securegetImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) get immediate children securestatic voidmassageSortFields(QuerySort querySort) if there are sort fields, go through them, and replace name with nameDb, etc, extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDbstatic voidmassageSortFields(QuerySort querySort, String alias) if there are sort fields, go through them, and replace name with nameDb, etc, extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDbvoidputInExistsCache(String uuid, boolean exists) put in cacheprotected static voidreset(HibernateSession hibernateSession) voidsaveUpdateProperties(Group group) save the update properties which are auto saved when business method is calledvoidvoidvoidupdateLastMembershipChange(String groupId) voidThis will update last_membership_change for group owners where group member in groupSet is the given groupId.Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Constructor Details
-
Hib3GroupDAO
public Hib3GroupDAO()
-
-
Method Details
-
putInExistsCache
put in cache- Specified by:
putInExistsCachein interfaceGroupDAO- Parameters:
uuid-exists-
-
delete
- Specified by:
deletein interfaceGroupDAO- Parameters:
_g-- Throws:
GrouperDAOException- Since:
-
exists
- Specified by:
existsin interfaceGroupDAO- Parameters:
uuid-- Returns:
- if exists
- Throws:
GrouperDAOException- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttrin interfaceGroupDAO- Parameters:
val-- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttrin interfaceGroupDAO- Parameters:
val-scope-- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttrin interfaceGroupDAO- Parameters:
val-scope-secureQuery-- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttrin interfaceGroupDAO- Parameters:
val-scope-secureQuery-enabled-- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- Since:
-
findAllByApproximateAttr
public Set<Group> findAllByApproximateAttr(String attr, String val) throws GrouperDAOException, IllegalStateException Implementation Notes.
- This method will generate a full table scan of the attributes table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateAttrin interfaceGroupDAO- Throws:
GrouperDAOExceptionIllegalStateException- Since:
- See Also:
-
findAllByApproximateAttr
public Set<Group> findAllByApproximateAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException Implementation Notes.
- This method will generate a full table scan of the attributes table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateAttrin interfaceGroupDAO- Throws:
GrouperDAOExceptionIllegalStateException- Since:
- See Also:
-
findAllByApproximateName
Implementation Notes.
- This method will generate a full table scan of the groups table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateNamein interfaceGroupDAO- Throws:
GrouperDAOException- Since:
- See Also:
-
findAllByApproximateName
Implementation Notes.
- This method will generate a full table scan of the groups table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateNamein interfaceGroupDAO- Throws:
GrouperDAOException- Since:
- See Also:
-
findAllByApproximateNameSecure
public Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions) throws GrouperDAOException Implementation Notes.
- This method will generate a full table scan of the groups table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateNameSecurein interfaceGroupDAO- Parameters:
name-scope-queryOptions-- Returns:
- the groups
- Throws:
GrouperDAOException- Since:
- See Also:
-
findAllByApproximateNameSecure
public Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) Implementation Notes.
- This method will generate a full table scan of the groups table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateNameSecurein interfaceGroupDAO- Parameters:
name-scope-queryOptions-typeOfGroups-- Returns:
- the groups
- Throws:
GrouperDAOException- Since:
- See Also:
-
findAllByApproximateNameSecure
public Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) Implementation Notes.
- This method will generate a full table scan of the groups table. It will not perform well if there are a large number of groups.
- Hibernate caching is not enabled.
- Specified by:
findAllByApproximateNameSecurein interfaceGroupDAO- Parameters:
name-scope-queryOptions-typeOfGroups-enabled-- Returns:
- the groups
- Throws:
GrouperDAOException- Since:
- See Also:
-
findAllByApproximateCurrentName
Find groups using an approximate string for the current name, display name, extension, display extension.- Specified by:
findAllByApproximateCurrentNamein interfaceGroupDAO- Parameters:
name-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateCurrentName
public Set<Group> findAllByApproximateCurrentName(String name, String scope) throws GrouperDAOException Find groups using an approximate string for the current name, display name, extension, display extension.- Specified by:
findAllByApproximateCurrentNamein interfaceGroupDAO- Parameters:
name-scope-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateAlternateName
Find groups using an approximate string for the alternate name.- Specified by:
findAllByApproximateAlternateNamein interfaceGroupDAO- Parameters:
name-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateAlternateName
public Set<Group> findAllByApproximateAlternateName(String name, String scope) throws GrouperDAOException Find groups using an approximate string for the alternate name.- Specified by:
findAllByApproximateAlternateNamein interfaceGroupDAO- Parameters:
name-scope-- Returns:
- set
- Throws:
GrouperDAOException
-
massageSortFields
if there are sort fields, go through them, and replace name with nameDb, etc, extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDb- Parameters:
querySort-
-
massageSortFields
if there are sort fields, go through them, and replace name with nameDb, etc, extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDb- Parameters:
querySort-alias- is the hql query alias
-
findAllByCreatedAfter
- Specified by:
findAllByCreatedAfterin interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByCreatedAfter
- Specified by:
findAllByCreatedAfterin interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByCreatedBefore
- Specified by:
findAllByCreatedBeforein interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByCreatedBefore
- Specified by:
findAllByCreatedBeforein interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByModifiedAfter
- Specified by:
findAllByModifiedAfterin interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByModifiedAfter
- Specified by:
findAllByModifiedAfterin interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByModifiedBefore
- Specified by:
findAllByModifiedBeforein interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByModifiedBefore
- Specified by:
findAllByModifiedBeforein interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByLastMembershipBefore
- Specified by:
findAllByLastMembershipBeforein interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByLastMembershipBefore
- Specified by:
findAllByLastMembershipBeforein interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByLastMembershipAfter
- Specified by:
findAllByLastMembershipAfterin interfaceGroupDAO- Parameters:
d-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByLastMembershipAfter
- Specified by:
findAllByLastMembershipAfterin interfaceGroupDAO- Parameters:
d-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByType
Note, this doesnt cache- Specified by:
findAllByTypein interfaceGroupDAO- Parameters:
_gt-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findAllByType
- Specified by:
findAllByTypein interfaceGroupDAO- Parameters:
_gt-scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
findByAttribute
public Group findByAttribute(String attr, String val, boolean exceptionIfNotFound, boolean secureQuery) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByAttributein interfaceGroupDAO- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByAttribute
public Group findByAttribute(String attr, String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByAttributein interfaceGroupDAO- Parameters:
attr-val-exceptionIfNotFound-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- Since:
-
findByAttribute
@Deprecated public Group findByAttribute(String attr, String val) throws GrouperDAOException, GroupNotFoundException Deprecated.use overload- Specified by:
findByAttributein interfaceGroupDAO- Parameters:
attr-val-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByNamein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByNamein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound- exception if cant find groupqueryOptions- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- Since:
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByNamein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound- exception if cant find groupqueryOptions- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- Since:
-
findByApproximateDescriptionSecure
public Set<Group> findByApproximateDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDescriptionSecurein interfaceGroupDAO
-
findByDescriptionSecure
public Set<Group> findByDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDescriptionSecurein interfaceGroupDAO
-
findByDisplayNameSecure
public Set<Group> findByDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDisplayNameSecurein interfaceGroupDAO
-
findByApproximateDisplayNameSecure
public Set<Group> findByApproximateDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDisplayNameSecurein interfaceGroupDAO
-
findByExtensionSecure
public Set<Group> findByExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByExtensionSecurein interfaceGroupDAO
-
findByApproximateExtensionSecure
public Set<Group> findByApproximateExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateExtensionSecurein interfaceGroupDAO
-
findByDisplayExtensionSecure
public Set<Group> findByDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDisplayExtensionSecurein interfaceGroupDAO
-
findByApproximateDisplayExtensionSecure
public Set<Group> findByApproximateDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDisplayExtensionSecurein interfaceGroupDAO
-
findByNameSecure
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByNameSecurein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound- exception if cant find groupqueryOptions- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- Since:
-
findByNameSecure
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Set<Privilege> inPrivSet) - Specified by:
findByNameSecurein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound- exception if cant find groupqueryOptions- if we should use cache or nottypeOfGroups-inPrivSet-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException- Since:
-
findByCurrentName
public Group findByCurrentName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its current name only.- Specified by:
findByCurrentNamein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException
-
findByAlternateName
public Group findByAlternateName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its alternate name only.- Specified by:
findByAlternateNamein interfaceGroupDAO- Parameters:
name-exceptionIfNotFound-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException
-
findByName
Deprecated.use overload- Specified by:
findByNamein interfaceGroupDAO- Parameters:
name-- Returns:
- group
- Throws:
GrouperDAOExceptionGroupNotFoundException
-
findByUuid
Deprecated.use overload- Hibernate caching is enabled.
- Specified by:
findByUuidin interfaceGroupDAO- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidin interfaceGroupDAO- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidin interfaceGroupDAO- Returns:
- the group or null or exception
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidin interfaceGroupDAOtypeOfGroups- to search in or null for all- Returns:
- the group or null or exception
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByInternalId
public Group findByInternalId(Long internalId, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByInternalIdin interfaceGroupDAOtypeOfGroups- to search in or null for all- Returns:
- the group or null or exception
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByInternalIds
public Map<Long,Group> findByInternalIds(Collection<Long> internalIds, boolean exceptionOnNotFound, QueryOptions queryOptions) throws GroupNotFoundException - Specified by:
findByInternalIdsin interfaceGroupDAO- Returns:
- the group or null or exception
- Throws:
GroupNotFoundException- See Also:
-
findByUuidSecure
public Group findByUuidSecure(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException Description copied from interface:GroupDAOfind by uuid secure- Specified by:
findByUuidSecurein interfaceGroupDAO- Returns:
- the group or null or exception
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
getAllGroups
- Specified by:
getAllGroupsin interfaceGroupDAO- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
getAllGroups
- Specified by:
getAllGroupsin interfaceGroupDAO- Parameters:
scope-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
getImmediateChildren
- Specified by:
getImmediateChildrenin interfaceGroupDAO- Parameters:
stem-- Returns:
- set
- Throws:
GrouperDAOException- Since:
-
update
- Specified by:
updatein interfaceGroupDAO- Parameters:
_g-- Throws:
GrouperDAOException- Since:
-
reset
protected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException - Parameters:
hibernateSession-- Throws:
org.hibernate.HibernateException
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val) throws GrouperDAOException, IllegalStateException Implementation Notes.
- This looks for groups by exact attribute value
- Hibernate caching is not enabled.
- Specified by:
findAllByAttrin interfaceGroupDAO- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAttrin interfaceGroupDAO- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException (non-Javadoc)- Specified by:
findAllByAttrin interfaceGroupDAO- Returns:
- set
- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException Implementation Notes.
- This looks for groups by exact attribute value
- Hibernate caching is not enabled.
- Specified by:
findAllByAttrin interfaceGroupDAO- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findByCreatorOrModifier
find groups by creator or modifier- Specified by:
findByCreatorOrModifierin interfaceGroupDAO- Parameters:
member-- Returns:
- the groups
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Specified by:
getAllGroupsSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- groups
- Throws:
GrouperDAOException- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException In this case, send in the attribute name to sort by (default is displayName). Make sure the grouperSession can see the groups- Specified by:
getAllGroupsSecurein interfaceGroupDAO- Parameters:
grouperSession-subject-queryOptions-inPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setstypeOfGroups- type of groups to return, or null for all- Returns:
- set
- Throws:
GrouperDAOException
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException In this case, send in the attribute name to sort by (default is displayName). Make sure the grouperSession can see the groups- Specified by:
getAllGroupsSecurein interfaceGroupDAO- Parameters:
grouperSession-subject-queryOptions-inPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setsenabled-typeOfGroups- type of groups to return, or null for all- Returns:
- set
- Throws:
GrouperDAOException
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Specified by:
getAllGroupsSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException - Specified by:
getAllGroupsSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setstypeOfGroups- type of groups to return or null for all- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException - Specified by:
getAllGroupsSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setstypeOfGroups- type of groups to return or null for all- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
getImmediateChildrenSecure
public Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException Description copied from interface:GroupDAOget immediate children secure- Specified by:
getImmediateChildrenSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- the set of groups
- Throws:
GrouperDAOException- See Also:
-
getImmediateChildrenSecure
public Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException Description copied from interface:GroupDAOget immediate children secure- Specified by:
getImmediateChildrenSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setstypeOfGroups- type of groups to return, or null for all- Returns:
- the set of groups
- Throws:
GrouperDAOException- See Also:
-
getImmediateChildrenSecure
public Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException Description copied from interface:GroupDAOget immediate children secure- Specified by:
getImmediateChildrenSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned setstypeOfGroups- type of groups to return, or null for all- Returns:
- the set of groups
- Throws:
GrouperDAOException- See Also:
-
findByUuids
public Set<Group> findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException Description copied from interface:GroupDAOfind all groups which have these uuids- Specified by:
findByUuidsin interfaceGroupDAOexceptionOnNotFound- if exception should be thrown when a uuid doesnt match up- Returns:
- the groups
- Throws:
GroupNotFoundException- See Also:
-
getAllGroupsMembershipSecure
public Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
getAllGroupsMembershipSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- groups
- Throws:
GrouperDAOException- See Also:
-
getAllGroupsMembershipSecure
public Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Specified by:
getAllGroupsMembershipSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
getAllGroupsMembershipSecure
public Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly, Stem stem, Stem.Scope stemScope) throws GrouperDAOException - Specified by:
getAllGroupsMembershipSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
getImmediateChildrenMembershipSecure
public Set<Group> getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException Description copied from interface:GroupDAOget immediate children secure- Specified by:
getImmediateChildrenMembershipSecurein interfaceGroupDAOinPrivSet- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets- Returns:
- the set of groups
- Throws:
GrouperDAOException- See Also:
-
updateLastMembershipChange
- Specified by:
updateLastMembershipChangein interfaceGroupDAO- See Also:
-
updateLastImmediateMembershipChange
- Specified by:
updateLastImmediateMembershipChangein interfaceGroupDAO- See Also:
-
updateLastMembershipChangeIncludeAncestorGroups
Description copied from interface:GroupDAOThis will update last_membership_change for group owners where group member in groupSet is the given groupId.- Specified by:
updateLastMembershipChangeIncludeAncestorGroupsin interfaceGroupDAO- See Also:
-
getAllGroupsMembershipSecure
public Set<Group> getAllGroupsMembershipSecure(Field field, String scope, GrouperSession grouperSession, Subject subject, QueryOptions queryOptions, Boolean enabled, MembershipType membershipType, Stem stem, Stem.Scope stemScope) throws GrouperDAOException - Specified by:
getAllGroupsMembershipSecurein interfaceGroupDAOqueryOptions- if sorting on name, displayName, extension, displayExtensionenabled- null for all, True for enabledOnly, False for disabledOnlymembershipType- immediate, effective, etcstem- if searching in a specific stemstemScope- sub or one- Returns:
- the groups
- Throws:
GrouperDAOException- See Also:
-
edu.internet2.middleware.grouper.internal.dao.GroupDAO#getAllGroupsMembershipSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.Boolean, edu.internet2.middleware.grouper.membership.MembershipType, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope)
-
findByUuidOrName
public Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidOrNamein interfaceGroupDAO- Returns:
- the stem or null
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
findByUuidOrName
public Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidOrNamein interfaceGroupDAO- Returns:
- the stem or null
- Throws:
GrouperDAOExceptionGroupNotFoundException- See Also:
-
saveUpdateProperties
Description copied from interface:GroupDAOsave the update properties which are auto saved when business method is called- Specified by:
saveUpdatePropertiesin interfaceGroupDAO- See Also:
-
findAllByType
public Set<Group> findAllByType(GroupType _gt, QueryOptions queryOptions) throws GrouperDAOException Description copied from interface:GroupDAOthis caches- Specified by:
findAllByTypein interfaceGroupDAO- Throws:
GrouperDAOException- See Also:
-
findGroupsInStemWithoutPrivilege
public Set<Group> findGroupsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) Description copied from interface:GroupDAOsee which groups do not have this privilege- Specified by:
findGroupsInStemWithoutPrivilegein interfaceGroupDAO- Returns:
- the groups
- See Also:
-
getAllGroupsSplitScopeSecure
public Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, TypeOfGroup typeOfGroup) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSplitScopeSecurein interfaceGroupDAOtypeOfGroup- or null for all- Returns:
- set of group
- See Also:
-
getAllGroupsSplitScopeSecure
public Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSplitScopeSecurein interfaceGroupDAOtypeOfGroups- or null for all- Returns:
- set of group
- See Also:
-
assignFilterToQuery
public static String assignFilterToQuery(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen) -
assignFilterToQuery
public static String assignFilterToQuery(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen, boolean excludeAlternateNames) - Parameters:
byHqlStatic-filter-splitScope- default truewhereClause-findByUuidOrName- generally this is falsealias- e.g. theGroup whatever alias in hql queryaddFinalParen-- Returns:
- scope lowercased
-
findAllByApproximateAttrSecure
public Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope, Boolean enabled) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByApproximateAttrSecurein interfaceGroupDAO- Parameters:
attr- attribute nameval- valuescope- some folder or null for all- Returns:
- the grops
- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findAllByApproximateAttrSecure
public Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByApproximateAttrSecurein interfaceGroupDAO- Parameters:
attr- attribute nameval- valuescope- some folder or null for all- Returns:
- the grops
- Throws:
GrouperDAOExceptionIllegalStateException- See Also:
-
findByNamesSecure
- Specified by:
findByNamesSecurein interfaceGroupDAO- See Also:
-
findByNamesSecure
public Set<Group> findByNamesSecure(Collection<String> names, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByNamesSecurein interfaceGroupDAO- See Also:
-
findByUuidsSecure
Description copied from interface:GroupDAOfind by uuid secure- Specified by:
findByUuidsSecurein interfaceGroupDAO- Returns:
- the group or null or exception
- See Also:
-
findByUuidsSecure
public Set<Group> findByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) Description copied from interface:GroupDAOfind by uuid secure- Specified by:
findByUuidsSecurein interfaceGroupDAO- Returns:
- the group or null or exception
- See Also:
-
findByIdIndex
not a secure method, find by id index- Specified by:
findByIdIndexin interfaceGroupDAO- Throws:
GroupNotFoundException
-
findByIdIndexSecure
public Group findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException Description copied from interface:GroupDAOfind a group by id index- Specified by:
findByIdIndexSecurein interfaceGroupDAO- Parameters:
idIndex- id index to findexceptionIfNotFound- true if exception should be thrown if not foundqueryOptions- query options- Returns:
- the gorup or null or exception
- Throws:
GroupNotFoundException- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroups- or null for all- Returns:
- set of group
- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroups- or null for allsubjectNotInGroup- is a subject which does not have a membership in the groupgroupIds- are the group ids to search forgroupNames- are the group names to search forcompositeOwner- if we are filtering for groups which are or are not composite owners- Returns:
- set of group
- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroups- or null for allsubjectNotInGroup- is a subject which does not have a membership in the groupgroupIds- are the group ids to search forgroupNames- are the group names to search forcompositeOwner- if we are filtering for groups which are or are not composite ownersidOfAttributeDefName- if looking for groups that have this attribute def nameattributeValue- if looking for groups that have this attribute value on the attribute def name- Returns:
- set of group
- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroup- or null for allsubjectNotInGroup- is a subject which does not have a membership in the groupgroupIds- are the group ids to search forgroupNames- are the group names to search forcompositeOwner- if we are filtering for groups which are or are not composite ownersidOfAttributeDefName- if looking for groups that have this attribute def nameattributeValue- if looking for groups that have this attribute value on the attribute def nameattributeValuesOnAssignment- if looking for an attribute value on an assignment, could be multiple valuesattributeCheckReadOnAttributeDef- use security around attribute def? default is true- Returns:
- set of group
- See Also:
-
findGroupsInStemWithPrivilege
public Set<Group> findGroupsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) Description copied from interface:GroupDAOsee which groups do not have this privilege- Specified by:
findGroupsInStemWithPrivilegein interfaceGroupDAO- Returns:
- the groups
- See Also:
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned) Description copied from interface:GroupDAOget all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroup- or null for allsubjectNotInGroup- is a subject which does not have a membership in the groupgroupIds- are the group ids to search forgroupNames- are the group names to search forcompositeOwner- if we are filtering for groups which are or are not composite ownersidOfAttributeDefName- if looking for groups that have this attribute def nameattributeValue- if looking for groups that have this attribute value on the attribute def nameattributeValuesOnAssignment- if looking for an attribute value on an assignment, could be multiple valuesattributeCheckReadOnAttributeDef- use security around attribute def? default is trueidOfAttributeDefName2- if looking for groups that have this attribute def name2attributeValue2- if looking for groups that have this attribute value2 on the attribute def name2attributeValuesOnAssignment2- if looking for an attribute value on an assignment2, could be multiple values- Returns:
- set of group
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Subject subjectNotInGroup, Collection<String> groupIds, Collection<String> groupNames, Boolean compositeOwner, String idOfAttributeDefName, Object attributeValue, Set<Object> attributeValuesOnAssignment, Boolean attributeCheckReadOnAttributeDef, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned, boolean excludeAlternateNames) - Specified by:
getAllGroupsSecurein interfaceGroupDAOtypeOfGroup- or null for allsubjectNotInGroup- is a subject which does not have a membership in the groupgroupIds- are the group ids to search forgroupNames- are the group names to search forcompositeOwner- if we are filtering for groups which are or are not composite ownersidOfAttributeDefName- if looking for groups that have this attribute def nameattributeValue- if looking for groups that have this attribute value on the attribute def nameattributeValuesOnAssignment- if looking for an attribute value on an assignment, could be multiple valuesattributeCheckReadOnAttributeDef- use security around attribute def? default is trueidOfAttributeDefName2- if looking for groups that have this attribute def name2attributeValue2- if looking for groups that have this attribute value2 on the attribute def name2attributeValuesOnAssignment2- if looking for an attribute value on an assignment2, could be multiple valuesexcludeAlternateNames- whether to exclude alternate names from name/scope search- Returns:
- See Also:
-
GroupDAO#getAllGroupsSecure(String, GrouperSession, Subject, Set, QueryOptions, Set, boolean, Subject, Field, String, Scope, boolean, Subject, Collection, Collection, Boolean, String, Object, Set, Boolean, String, Object)
-
findAllEnabledDisabledMismatch
Description copied from interface:GroupDAOfind records which are disabled which shouldnt be, and enabled which shouldnt be- Specified by:
findAllEnabledDisabledMismatchin interfaceGroupDAO- Returns:
- the groups
- See Also:
-