Interface GroupDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3GroupDAO
Basic
Group
DAO interface.- Since:
- 1.2.0
- Version:
- $Id: GroupDAO.java,v 1.30 2009-12-10 08:54:15 mchyzer Exp $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) findAllByApproximateAttr
(String attr, String val, String scope) 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.findAllByApproximateName
(String name, String scope) findAllByApproximateNameSecure
(String name, String scope, QueryOptions queryOptions) findAllByApproximateNameSecure
(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) findAllByApproximateNameSecure
(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) findAllByAttr
(String attr, String val) findAllByAttr
(String attr, String val, String scope) findAllByAttr
(String attr, String val, String scope, boolean secureQuery) findAllByAttr
(String attr, String val, String scope, boolean secureQuery, Boolean enabled) 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 extension, 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) findByIdIndexSecure
(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) getAllGroupsSecure
(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) 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> typeOfGroup, 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> typeOfGroup, 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> 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) 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 securevoid
putInExistsCache
(String uuid, boolean exists) put in cachevoid
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.
-
Method Details
-
putInExistsCache
put in cache- Parameters:
uuid
-exists
-
-
delete
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
exists
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByAnyApproximateAttr
Set<Group> findAllByAnyApproximateAttr(String val) throws GrouperDAOException, IllegalStateException - Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.2.0
-
findAllByAnyApproximateAttr
Set<Group> findAllByAnyApproximateAttr(String val, String scope) throws GrouperDAOException, IllegalStateException - Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.4.0
-
findAllByAnyApproximateAttr
Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Parameters:
val
-scope
-secureQuery
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
-
findAllByAnyApproximateAttr
Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException - Parameters:
val
-scope
-secureQuery
-enabled
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
-
findAllByApproximateAttr
Set<Group> findAllByApproximateAttr(String attr, String val) throws GrouperDAOException, IllegalStateException - Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.2.0
-
findAllByApproximateAttr
Set<Group> findAllByApproximateAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException - Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.4.0
-
findAllByApproximateAttrSecure
Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException - Parameters:
attr
- attribute nameval
- valuescope
- some folder or null for all- Returns:
- the grops
- Throws:
GrouperDAOException
IllegalStateException
- Since:
- 2.0.2
-
findAllByApproximateAttrSecure
Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope, Boolean enabled) throws GrouperDAOException, IllegalStateException - Parameters:
attr
- attribute nameval
- valuescope
- some folder or null for allenabled
-- Returns:
- the grops
- Throws:
GrouperDAOException
IllegalStateException
- Since:
- 2.0.2
-
findAllByAttr
- Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.3
-
findAllByAttr
Set<Group> findAllByAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException - Throws:
GrouperDAOException
IllegalStateException
- Since:
- 1.4.0
-
findAllByAttr
Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException - Parameters:
attr
-val
-scope
-secureQuery
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
-
findAllByAttr
Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery, Boolean enabled) throws GrouperDAOException, IllegalStateException - Parameters:
attr
-val
-scope
-secureQuery
-enabled
-- Returns:
- set
- Throws:
GrouperDAOException
IllegalStateException
-
findAllByApproximateName
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateName
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateNameSecure
Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions) throws GrouperDAOException - Throws:
GrouperDAOException
- Since:
- 2.1.0
-
findAllByCreatedAfter
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByCreatedAfter
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByCreatedBefore
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByCreatedBefore
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByModifiedAfter
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByModifiedAfter
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByModifiedBefore
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByModifiedBefore
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByLastMembershipAfter
- Throws:
GrouperDAOException
- Since:
- 1.5.0
-
findAllByLastMembershipAfter
- Throws:
GrouperDAOException
- Since:
- 1.5.0
-
findAllByLastMembershipBefore
- Throws:
GrouperDAOException
- Since:
- 1.5.0
-
findAllByLastMembershipBefore
- Throws:
GrouperDAOException
- Since:
- 1.5.0
-
findAllByType
note, this doesnt cache- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByType
this caches- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByType
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findByAttribute
@Deprecated Group findByAttribute(String attr, String val) throws GrouperDAOException, GroupNotFoundException Deprecated.use overload- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByAttribute
Group findByAttribute(String attr, String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByAttribute
Group findByAttribute(String attr, String val, boolean exceptionIfNotFound, boolean secureQuery) throws GrouperDAOException, GroupNotFoundException - Parameters:
attr
-val
-exceptionIfNotFound
-secureQuery
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByName
Deprecated.use overload- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByName
Group findByName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException - Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByIdIndex
- Throws:
GroupNotFoundException
- Since:
- 2.2
-
findByIdIndexSecure
Group findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException find a group by id index- 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
-
findByName
Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByNameSecure
Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Since:
- 2.0.2
-
findByNameSecure
Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Set<Privilege> inPrivSet) - Since:
- 2.2.1
-
findByName
Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 2.1.0
-
findByUuid
Deprecated.use overload- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.2.0
-
findByUuid
Group findByUuid(String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException -
findByUuid
Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Parameters:
uuid
-exceptionIfNotFound
-queryOptions
-- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByUuidSecure
Group findByUuidSecure(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) find by uuid secure- Parameters:
uuid
-exceptionIfNotFound
-queryOptions
-typeOfGroups
-- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByUuid
Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException - Parameters:
uuid
-exceptionIfNotFound
-queryOptions
-typeOfGroups
- to search in or null for all- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByUuids
Set<Group> findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException find all groups which have these uuids- Parameters:
uuids
-exceptionOnNotFound
- if exception should be thrown when a uuid doesnt match up- Returns:
- the groups
- Throws:
GroupNotFoundException
-
getAllGroups
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - 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 sets- Returns:
- groups
- Throws:
GrouperDAOException
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException - 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:
- groups
- Throws:
GrouperDAOException
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException - 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 allenabled
-- Returns:
- groups
- Throws:
GrouperDAOException
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Parameters:
scope
-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 sets- Returns:
- the groups
- Throws:
GrouperDAOException
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException - Parameters:
scope
-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:
- the groups
- Throws:
GrouperDAOException
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException - Parameters:
scope
-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 allenabled
-- Returns:
- the groups
- Throws:
GrouperDAOException
-
getImmediateChildrenSecure
Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException get immediate children secure- Parameters:
grouperSession
-stem
-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 sets- Returns:
- the set of groups
- Throws:
GrouperDAOException
-
getImmediateChildrenSecure
Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException get immediate children secure- Parameters:
grouperSession
-stem
-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:
- the set of groups
- Throws:
GrouperDAOException
-
getImmediateChildrenSecure
Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException get immediate children secure- Parameters:
grouperSession
-stem
-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 allenabled
-- Returns:
- the set of groups
- Throws:
GrouperDAOException
-
getImmediateChildrenMembershipSecure
Set<Group> getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException get immediate children secure- Parameters:
grouperSession
-stem
-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 setsenabledOnly
-- Returns:
- the set of groups
- Throws:
GrouperDAOException
-
getAllGroups
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
getImmediateChildren
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
update
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findByCreatorOrModifier
find groups by creator or modifier- Parameters:
member
-- Returns:
- the groups
-
findAllByApproximateNameSecure
Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException - Parameters:
name
-scope
-queryOptions
-typeOfGroups
-- Returns:
- the set of groups
- Throws:
GrouperDAOException
- Since:
- 2.1.0
-
findAllByApproximateNameSecure
Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException - Parameters:
name
-scope
-queryOptions
-typeOfGroups
-enabled
-- Returns:
- the set of groups
- Throws:
GrouperDAOException
- Since:
- 2.1.0
-
findByAlternateName
Group findByAlternateName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its alternate name only.- Parameters:
name
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByCurrentName
Group findByCurrentName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException Find a group by its current name only.- Parameters:
name
-exceptionIfNotFound
-- Returns:
- group
- Throws:
GrouperDAOException
GroupNotFoundException
-
findAllByApproximateCurrentName
Find groups using an approximate string for the current name, display name, extension, display extension.- Parameters:
name
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateCurrentName
Find groups using an approximate string for the current name, display name, extension, display extension.- Parameters:
name
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateAlternateName
Find groups using an approximate string for the alternate name.- Parameters:
name
-- Returns:
- set
- Throws:
GrouperDAOException
-
findAllByApproximateAlternateName
Find groups using an approximate string for the alternate name.- Parameters:
name
-scope
-- Returns:
- set
- Throws:
GrouperDAOException
-
getAllGroupsMembershipSecure
Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - 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 setsenabledOnly
-- Returns:
- groups
- Throws:
GrouperDAOException
-
getAllGroupsMembershipSecure
Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException - Parameters:
scope
-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 setsenabledOnly
-- Returns:
- the groups
- Throws:
GrouperDAOException
-
getAllGroupsMembershipSecure
Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly, Stem stem, Stem.Scope stemScope) throws GrouperDAOException - Parameters:
scope
-stemScope
-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 setsenabledOnly
-stem
-- Returns:
- the groups
- Throws:
GrouperDAOException
-
getAllGroupsMembershipSecure
Set<Group> getAllGroupsMembershipSecure(Field field, String scope, GrouperSession grouperSession, Subject subject, QueryOptions queryOptions, Boolean enabled, MembershipType membershipType, Stem stem, Stem.Scope stemScope) throws GrouperDAOException - Parameters:
field
-scope
-grouperSession
-subject
-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
-
updateLastMembershipChange
- Parameters:
groupId
-
-
updateLastImmediateMembershipChange
- Parameters:
groupId
-
-
updateLastMembershipChangeIncludeAncestorGroups
This will update last_membership_change for group owners where group member in groupSet is the given groupId.- Parameters:
groupId
-
-
findByUuidOrName
Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, GroupNotFoundException - Parameters:
uuid
-name
-exceptionIfNull
-- Returns:
- the stem or null
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.6.0
-
findByUuidOrName
Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException - Parameters:
uuid
-name
-exceptionIfNull
-queryOptions
-- Returns:
- the stem or null
- Throws:
GrouperDAOException
GroupNotFoundException
- Since:
- 1.6.0
-
saveUpdateProperties
save the update properties which are auto saved when business method is called- Parameters:
group
-
-
findGroupsInStemWithoutPrivilege
Set<Group> findGroupsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which groups do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the groups
-
findGroupsInStemWithPrivilege
Set<Group> findGroupsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which groups do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the groups
-
getAllGroupsSplitScopeSecure
Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, TypeOfGroup typeOfGroup) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for all- Returns:
- set of group
-
getAllGroupsSecure
Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroup, boolean splitScope, Subject membershipSubject, Field field) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-field
-- Returns:
- set of group
-
getAllGroupsSecure
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) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-membershipSubject
-field
-parentStemId
-stemScope
-findByUuidOrName
-subjectNotInGroup
- 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
- Since:
- v2.2
-
getAllGroupsSecure
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) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-membershipSubject
-field
-parentStemId
-stemScope
-findByUuidOrName
-subjectNotInGroup
- 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
- Since:
- v2.2.1
-
getAllGroupsSecure
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) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-membershipSubject
-field
-parentStemId
-stemScope
-findByUuidOrName
-subjectNotInGroup
- 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
- Since:
- v2.3.1
-
getAllGroupsSecure
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) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-membershipSubject
-field
-parentStemId
-stemScope
-findByUuidOrName
-subjectNotInGroup
- 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 valuesattributeNotAssigned
-- Returns:
- set of group
- Since:
- v2.3.1
-
getAllGroupsSecure
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) - Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroup
- or null for allsplitScope
-membershipSubject
-field
-parentStemId
-stemScope
-findByUuidOrName
-subjectNotInGroup
- 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 valuesattributeNotAssigned
-excludeAlternateNames
- whether to exclude alternate names from name/scope search- Returns:
-
findByUuidsSecure
find by uuid secure- Parameters:
uuids
-exceptionIfNotFound
-queryOptions
-- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByUuidsSecure
Set<Group> findByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) find by uuid secure- Parameters:
uuids
-exceptionIfNotFound
-queryOptions
-typeOfGroups
-- Returns:
- the group or null or exception
- Throws:
GrouperDAOException
GroupNotFoundException
-
findByNamesSecure
- Parameters:
names
-queryOptions
-- Since:
- 2.0.2
-
findByNamesSecure
Set<Group> findByNamesSecure(Collection<String> names, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) - Parameters:
names
-queryOptions
-typeOfGroups
-- Since:
- 2.1.0
-
getAllGroupsSplitScopeSecure
Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) get all groups secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-typeOfGroups
- or null for all- Returns:
- set of group
-
findByApproximateDescriptionSecure
Set<Group> findByApproximateDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByDescriptionSecure
Set<Group> findByDescriptionSecure(String description, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByDisplayNameSecure
Set<Group> findByDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByApproximateDisplayNameSecure
Set<Group> findByApproximateDisplayNameSecure(String displayName, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByExtensionSecure
Set<Group> findByExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByApproximateExtensionSecure
Set<Group> findByApproximateExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByDisplayExtensionSecure
Set<Group> findByDisplayExtensionSecure(String displayExtension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findByApproximateDisplayExtensionSecure
Set<Group> findByApproximateDisplayExtensionSecure(String extension, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) -
findAllEnabledDisabledMismatch
find records which are disabled which shouldnt be, and enabled which shouldnt be- Parameters:
queryTime
-- Returns:
- the groups
-