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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
assignFilterToQuery
(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen) static String
assignFilterToQuery
(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias, boolean addFinalParen, boolean excludeAlternateNames) void
boolean
findAllByAnyApproximateAttr
(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 indexfindByName
(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 void
massageSortFields
(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 void
massageSortFields
(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 displayExtensionDbvoid
putInExistsCache
(String uuid, boolean exists) put in cacheprotected static void
reset
(HibernateSession hibernateSession) void
saveUpdateProperties
(Group group) save the update properties which are auto saved when business method is calledvoid
void
void
updateLastMembershipChange
(String groupId) void
This 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:
putInExistsCache
in interfaceGroupDAO
- Parameters:
uuid
-exists
-
-
delete
- Specified by:
delete
in interfaceGroupDAO
- Parameters:
_g
-- Throws:
GrouperDAOException
- Since:
-
exists
- Specified by:
exists
in interfaceGroupDAO
- Parameters:
uuid
-- Returns:
- if exists
- Throws:
GrouperDAOException
- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttr
in interfaceGroupDAO
- Parameters:
val
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttr
in interfaceGroupDAO
- Parameters:
val
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttr
in interfaceGroupDAO
- Parameters:
val
-scope
-secureQuery
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- Since:
-
findAllByAnyApproximateAttr
public Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAnyApproximateAttr
in interfaceGroupDAO
- Parameters:
val
-scope
-secureQuery
-enabled
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- 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:
findAllByApproximateAttr
in interfaceGroupDAO
- Throws:
GrouperDAOException
IllegalStateException
- 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:
findAllByApproximateAttr
in interfaceGroupDAO
- Throws:
GrouperDAOException
IllegalStateException
- 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:
findAllByApproximateName
in 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:
findAllByApproximateName
in 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:
findAllByApproximateNameSecure
in 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:
findAllByApproximateNameSecure
in 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:
findAllByApproximateNameSecure
in 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:
findAllByApproximateCurrentName
in 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:
findAllByApproximateCurrentName
in interfaceGroupDAO
- Parameters:
name
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateAlternateName
Find groups using an approximate string for the alternate name.- Specified by:
findAllByApproximateAlternateName
in 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:
findAllByApproximateAlternateName
in 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:
findAllByCreatedAfter
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByCreatedAfter
- Specified by:
findAllByCreatedAfter
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByCreatedBefore
- Specified by:
findAllByCreatedBefore
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByCreatedBefore
- Specified by:
findAllByCreatedBefore
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByModifiedAfter
- Specified by:
findAllByModifiedAfter
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByModifiedAfter
- Specified by:
findAllByModifiedAfter
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByModifiedBefore
- Specified by:
findAllByModifiedBefore
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByModifiedBefore
- Specified by:
findAllByModifiedBefore
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByLastMembershipBefore
- Specified by:
findAllByLastMembershipBefore
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByLastMembershipBefore
- Specified by:
findAllByLastMembershipBefore
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByLastMembershipAfter
- Specified by:
findAllByLastMembershipAfter
in interfaceGroupDAO
- Parameters:
d
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByLastMembershipAfter
- Specified by:
findAllByLastMembershipAfter
in interfaceGroupDAO
- Parameters:
d
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByType
Note, this doesnt cache- Specified by:
findAllByType
in interfaceGroupDAO
- Parameters:
_gt
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
findAllByType
- Specified by:
findAllByType
in 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:
findByAttribute
in interfaceGroupDAO
- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByAttribute
public Group findByAttribute(String attr, String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByAttribute
in interfaceGroupDAO
- Parameters:
attr
-val
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
-
findByAttribute
@Deprecated public Group findByAttribute(String attr, String val) throws GrouperDAOException, GroupNotFoundException Deprecated.use overload- Specified by:
findByAttribute
in interfaceGroupDAO
- Parameters:
attr
-val
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByName
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByName
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
-
findByName
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByName
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
-
findByApproximateDescriptionSecure
public Set<Group> findByApproximateDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDescriptionSecure
in interfaceGroupDAO
-
findByDescriptionSecure
public Set<Group> findByDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDescriptionSecure
in interfaceGroupDAO
-
findByDisplayNameSecure
public Set<Group> findByDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDisplayNameSecure
in interfaceGroupDAO
-
findByApproximateDisplayNameSecure
public Set<Group> findByApproximateDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDisplayNameSecure
in interfaceGroupDAO
-
findByExtensionSecure
public Set<Group> findByExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByExtensionSecure
in interfaceGroupDAO
-
findByApproximateExtensionSecure
public Set<Group> findByApproximateExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateExtensionSecure
in interfaceGroupDAO
-
findByDisplayExtensionSecure
public Set<Group> findByDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByDisplayExtensionSecure
in interfaceGroupDAO
-
findByApproximateDisplayExtensionSecure
public Set<Group> findByApproximateDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByApproximateDisplayExtensionSecure
in interfaceGroupDAO
-
findByNameSecure
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByNameSecure
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or not- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
-
findByNameSecure
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Set<Privilege> inPrivSet) - Specified by:
findByNameSecure
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or nottypeOfGroups
-inPrivSet
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
-
findByCurrentName
public Group findByCurrentName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its current name only.- Specified by:
findByCurrentName
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByAlternateName
public Group findByAlternateName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its alternate name only.- Specified by:
findByAlternateName
in interfaceGroupDAO
- Parameters:
name
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByName
Deprecated.use overload- Specified by:
findByName
in interfaceGroupDAO
- Parameters:
name
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByUuid
Deprecated.use overload- Hibernate caching is enabled.
- Specified by:
findByUuid
in interfaceGroupDAO
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuid
in interfaceGroupDAO
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuid
in interfaceGroupDAO
- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByUuid
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuid
in interfaceGroupDAO
typeOfGroups
- to search in or null for all- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByUuidSecure
public Group findByUuidSecure(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException Description copied from interface:GroupDAO
find by uuid secure- Specified by:
findByUuidSecure
in interfaceGroupDAO
- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
getAllGroups
- Specified by:
getAllGroups
in interfaceGroupDAO
- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
getAllGroups
- Specified by:
getAllGroups
in interfaceGroupDAO
- Parameters:
scope
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
getImmediateChildren
- Specified by:
getImmediateChildren
in interfaceGroupDAO
- Parameters:
stem
-- Returns:
- set
- Throws:
GrouperDAOException
- Since:
-
update
- Specified by:
update
in 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:
findAllByAttr
in interfaceGroupDAO
- Throws:
GrouperDAOException
IllegalStateException
- See Also:
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByAttr
in interfaceGroupDAO
- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- See Also:
-
findAllByAttr
public Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException (non-Javadoc)- Specified by:
findAllByAttr
in interfaceGroupDAO
- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
- 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:
findAllByAttr
in interfaceGroupDAO
- Throws:
GrouperDAOException
IllegalStateException
- See Also:
-
findByCreatorOrModifier
find groups by creator or modifier- Specified by:
findByCreatorOrModifier
in interfaceGroupDAO
- Parameters:
member
-- Returns:
- the groups
-
getAllGroupsSecure
public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Specified by:
getAllGroupsSecure
in interfaceGroupDAO
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 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:
getAllGroupsSecure
in 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:
getAllGroupsSecure
in 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:
getAllGroupsSecure
in interfaceGroupDAO
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 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:
getAllGroupsSecure
in interfaceGroupDAO
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:
- 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:
getAllGroupsSecure
in interfaceGroupDAO
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:
- 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:GroupDAO
get immediate children secure- Specified by:
getImmediateChildrenSecure
in interfaceGroupDAO
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 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:GroupDAO
get immediate children secure- Specified by:
getImmediateChildrenSecure
in interfaceGroupDAO
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:
- 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:GroupDAO
get immediate children secure- Specified by:
getImmediateChildrenSecure
in interfaceGroupDAO
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:
- the set of groups
- Throws:
GrouperDAOException
- See Also:
-
findByUuids
public Set<Group> findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException Description copied from interface:GroupDAO
find all groups which have these uuids- Specified by:
findByUuids
in interfaceGroupDAO
exceptionOnNotFound
- 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:
getAllGroupsMembershipSecure
in interfaceGroupDAO
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 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:
getAllGroupsMembershipSecure
in interfaceGroupDAO
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 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:
getAllGroupsMembershipSecure
in interfaceGroupDAO
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 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:GroupDAO
get immediate children secure- Specified by:
getImmediateChildrenMembershipSecure
in interfaceGroupDAO
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 sets- Returns:
- the set of groups
- Throws:
GrouperDAOException
- See Also:
-
updateLastMembershipChange
- Specified by:
updateLastMembershipChange
in interfaceGroupDAO
- See Also:
-
updateLastImmediateMembershipChange
- Specified by:
updateLastImmediateMembershipChange
in interfaceGroupDAO
- See Also:
-
updateLastMembershipChangeIncludeAncestorGroups
Description copied from interface:GroupDAO
This will update last_membership_change for group owners where group member in groupSet is the given groupId.- Specified by:
updateLastMembershipChangeIncludeAncestorGroups
in 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:
getAllGroupsMembershipSecure
in interfaceGroupDAO
queryOptions
- 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:
findByUuidOrName
in interfaceGroupDAO
- Returns:
- the stem or null
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
findByUuidOrName
public Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Specified by:
findByUuidOrName
in interfaceGroupDAO
- Returns:
- the stem or null
- Throws:
GrouperDAOException
GroupNotFoundException
- See Also:
-
saveUpdateProperties
Description copied from interface:GroupDAO
save the update properties which are auto saved when business method is called- Specified by:
saveUpdateProperties
in interfaceGroupDAO
- See Also:
-
findAllByType
public Set<Group> findAllByType(GroupType _gt, QueryOptions queryOptions) throws GrouperDAOException Description copied from interface:GroupDAO
this caches- Specified by:
findAllByType
in 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:GroupDAO
see which groups do not have this privilege- Specified by:
findGroupsInStemWithoutPrivilege
in 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSplitScopeSecure
in interfaceGroupDAO
typeOfGroup
- 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSplitScopeSecure
in interfaceGroupDAO
typeOfGroups
- 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:
findAllByApproximateAttrSecure
in interfaceGroupDAO
- Parameters:
attr
- attribute nameval
- valuescope
- some folder or null for all- Returns:
- the grops
- Throws:
GrouperDAOException
IllegalStateException
- See Also:
-
findAllByApproximateAttrSecure
public Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException - Specified by:
findAllByApproximateAttrSecure
in interfaceGroupDAO
- Parameters:
attr
- attribute nameval
- valuescope
- some folder or null for all- Returns:
- the grops
- Throws:
GrouperDAOException
IllegalStateException
- See Also:
-
findByNamesSecure
- Specified by:
findByNamesSecure
in interfaceGroupDAO
- See Also:
-
findByNamesSecure
public Set<Group> findByNamesSecure(Collection<String> names, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Specified by:
findByNamesSecure
in interfaceGroupDAO
- See Also:
-
findByUuidsSecure
Description copied from interface:GroupDAO
find by uuid secure- Specified by:
findByUuidsSecure
in 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:GroupDAO
find by uuid secure- Specified by:
findByUuidsSecure
in interfaceGroupDAO
- Returns:
- the group or null or exception
- See Also:
-
findByIdIndex
not a secure method, find by id index- Specified by:
findByIdIndex
in interfaceGroupDAO
- Throws:
GroupNotFoundException
-
findByIdIndexSecure
public Group findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException Description copied from interface:GroupDAO
find a group by id index- Specified by:
findByIdIndexSecure
in 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroups
- 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroups
- 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroups
- 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroup
- 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:GroupDAO
see which groups do not have this privilege- Specified by:
findGroupsInStemWithPrivilege
in 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:GroupDAO
get all groups secure, split the scope by whitespace- Specified by:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroup
- 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:
getAllGroupsSecure
in interfaceGroupDAO
typeOfGroup
- 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:GroupDAO
find records which are disabled which shouldnt be, and enabled which shouldnt be- Specified by:
findAllEnabledDisabledMismatch
in interfaceGroupDAO
- Returns:
- the groups
- See Also:
-