public class Hib3GroupDAO extends Hib3DAO implements GroupDAO
Group
DAO interface.hibernateInitted
Constructor and Description |
---|
Hib3GroupDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Group _g) |
boolean |
exists(String uuid) |
Set<Group> |
findAllByAnyApproximateAttr(String val) |
Set<Group> |
findAllByAnyApproximateAttr(String val,
String scope) |
Set<Group> |
findAllByAnyApproximateAttr(String val,
String scope,
boolean secureQuery) |
Set<Group> |
findAllByApproximateAlternateName(String name)
Find groups using an approximate string for the alternate name.
|
Set<Group> |
findAllByApproximateAlternateName(String name,
String scope)
Find groups using an approximate string for the alternate name.
|
Set<Group> |
findAllByApproximateAttr(String attr,
String val)
Implementation Notes.
|
Set<Group> |
findAllByApproximateAttr(String attr,
String val,
String scope)
Implementation Notes.
|
Set<Group> |
findAllByApproximateAttrSecure(String attr,
String val,
String scope) |
Set<Group> |
findAllByApproximateCurrentName(String name)
Find groups using an approximate string for the current name,
display name, extension, display extension.
|
Set<Group> |
findAllByApproximateCurrentName(String name,
String scope)
Find groups using an approximate string for the current name,
display name, extension, display extension.
|
Set<Group> |
findAllByApproximateName(String name)
Implementation Notes.
|
Set<Group> |
findAllByApproximateName(String name,
String scope)
Implementation Notes.
|
Set<Group> |
findAllByApproximateNameSecure(String name,
String scope,
QueryOptions queryOptions)
Implementation Notes.
|
Set<Group> |
findAllByApproximateNameSecure(String name,
String scope,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups)
Implementation Notes.
|
Set<Group> |
findAllByAttr(String attr,
String val)
Implementation Notes.
|
Set<Group> |
findAllByAttr(String attr,
String val,
String scope)
Implementation Notes.
|
Set<Group> |
findAllByAttr(String attr,
String val,
String scope,
boolean secureQuery) |
Set<Group> |
findAllByCreatedAfter(Date d) |
Set<Group> |
findAllByCreatedAfter(Date d,
String scope) |
Set<Group> |
findAllByCreatedBefore(Date d) |
Set<Group> |
findAllByCreatedBefore(Date d,
String scope) |
Set<Group> |
findAllByLastMembershipAfter(Date d) |
Set<Group> |
findAllByLastMembershipAfter(Date d,
String scope) |
Set<Group> |
findAllByLastMembershipBefore(Date d) |
Set<Group> |
findAllByLastMembershipBefore(Date d,
String scope) |
Set<Group> |
findAllByModifiedAfter(Date d) |
Set<Group> |
findAllByModifiedAfter(Date d,
String scope) |
Set<Group> |
findAllByModifiedBefore(Date d) |
Set<Group> |
findAllByModifiedBefore(Date d,
String scope) |
Set<Group> |
findAllByType(GroupType _gt)
Note, this doesnt cache
|
Set<Group> |
findAllByType(GroupType _gt,
QueryOptions queryOptions)
this caches
|
Set<Group> |
findAllByType(GroupType _gt,
String scope) |
Group |
findByAlternateName(String name,
boolean exceptionIfNotFound)
Find a group by its alternate name only.
|
Group |
findByAttribute(String attr,
String val)
Deprecated.
use overload
|
Group |
findByAttribute(String attr,
String val,
boolean exceptionIfNotFound) |
Group |
findByAttribute(String attr,
String val,
boolean exceptionIfNotFound,
boolean secureQuery) |
Set<Group> |
findByCreatorOrModifier(Member member)
find groups by creator or modifier
|
Group |
findByCurrentName(String name,
boolean exceptionIfNotFound)
Find a group by its current name only.
|
Group |
findByIdIndex(Long idIndex,
boolean exceptionIfNotFound)
not a secure method, find by id index
|
Group |
findByIdIndexSecure(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find a group by id index
|
Group |
findByName(String name)
Deprecated.
use overload
|
Group |
findByName(String name,
boolean exceptionIfNotFound) |
Group |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions) |
Group |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups) |
Group |
findByNameSecure(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups) |
Group |
findByNameSecure(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups,
Set<Privilege> inPrivSet) |
Set<Group> |
findByNamesSecure(Collection<String> names,
QueryOptions queryOptions) |
Set<Group> |
findByNamesSecure(Collection<String> names,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups) |
Group |
findByUuid(String uuid)
Deprecated.
use overload
|
Group |
findByUuid(String uuid,
boolean exceptionIfNotFound) |
Group |
findByUuid(String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions) |
Group |
findByUuid(String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups) |
Group |
findByUuidOrName(String uuid,
String name,
boolean exceptionIfNull) |
Group |
findByUuidOrName(String uuid,
String name,
boolean exceptionIfNull,
QueryOptions queryOptions) |
Set<Group> |
findByUuids(Collection<String> uuids,
boolean exceptionOnNotFound)
find all groups which have these uuids
|
Group |
findByUuidSecure(String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups)
find by uuid secure
|
Set<Group> |
findByUuidsSecure(Collection<String> uuids,
QueryOptions queryOptions)
find by uuid secure
|
Set<Group> |
findByUuidsSecure(Collection<String> uuids,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups)
find by uuid secure
|
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
|
Set<Group> |
getAllGroups() |
Set<Group> |
getAllGroups(String scope) |
Set<Group> |
getAllGroupsMembershipSecure(Field field,
String scope,
GrouperSession grouperSession,
Subject subject,
QueryOptions queryOptions,
Boolean enabled,
MembershipType membershipType,
Stem stem,
Stem.Scope stemScope) |
Set<Group> |
getAllGroupsMembershipSecure(GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly) |
Set<Group> |
getAllGroupsMembershipSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly) |
Set<Group> |
getAllGroupsMembershipSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly,
Stem stem,
Stem.Scope stemScope) |
Set<Group> |
getAllGroupsSecure(GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions) |
Set<Group> |
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).
|
Set<Group> |
getAllGroupsSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions) |
Set<Group> |
getAllGroupsSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups) |
Set<Group> |
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 whitespace
|
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)
get all groups secure, split the scope by whitespace
|
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)
get all groups secure, split the scope by whitespace
|
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
|
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
|
Set<Group> |
getImmediateChildren(Stem stem) |
Set<Group> |
getImmediateChildrenMembershipSecure(GrouperSession grouperSession,
Stem stem,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly)
get immediate children secure
|
Set<Group> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get immediate children secure
|
Set<Group> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups)
get immediate children secure
|
void |
putInExistsCache(String uuid,
boolean exists)
put in cache
|
protected static void |
reset(HibernateSession hibernateSession) |
void |
saveUpdateProperties(Group group)
save the update properties which are auto saved when business method is called
|
void |
update(Group _g) |
void |
updateLastImmediateMembershipChange(String groupId) |
void |
updateLastMembershipChange(String groupId) |
void |
updateLastMembershipChangeIncludeAncestorGroups(String groupId)
This will update last_membership_change for group owners where group member in groupSet is the given groupId.
|
evict, evictEntity, evictQueries, getConfiguration, initHibernateIfNotInitted, resourceNameFromClassName, session
public void putInExistsCache(String uuid, boolean exists)
putInExistsCache
in interface GroupDAO
uuid
- exists
- public void delete(Group _g) throws GrouperDAOException
delete
in interface GroupDAO
_g
- GrouperDAOException
public boolean exists(String uuid) throws GrouperDAOException
exists
in interface GroupDAO
uuid
- GrouperDAOException
public Set<Group> findAllByAnyApproximateAttr(String val) throws GrouperDAOException, IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
- GrouperDAOException
IllegalStateException
public Set<Group> findAllByAnyApproximateAttr(String val, String scope) throws GrouperDAOException, IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
- scope
- GrouperDAOException
IllegalStateException
public Set<Group> findAllByAnyApproximateAttr(String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
- scope
- secureQuery
- GrouperDAOException
IllegalStateException
public Set<Group> findAllByApproximateAttr(String attr, String val) throws GrouperDAOException, IllegalStateException
Implementation Notes.
findAllByApproximateAttr
in interface GroupDAO
GrouperDAOException
IllegalStateException
GroupDAO.findAllByApproximateAttr(String, String)
public Set<Group> findAllByApproximateAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException
Implementation Notes.
findAllByApproximateAttr
in interface GroupDAO
GrouperDAOException
IllegalStateException
GroupDAO.findAllByApproximateAttr(String, String, String)
public Set<Group> findAllByApproximateName(String name) throws GrouperDAOException
Implementation Notes.
findAllByApproximateName
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByApproximateName(String)
public Set<Group> findAllByApproximateName(String name, String scope) throws GrouperDAOException
Implementation Notes.
findAllByApproximateName
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions) throws GrouperDAOException
Implementation Notes.
findAllByApproximateNameSecure
in interface GroupDAO
name
- scope
- queryOptions
- GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public Set<Group> findAllByApproximateNameSecure(String name, String scope, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups)
Implementation Notes.
findAllByApproximateNameSecure
in interface GroupDAO
name
- scope
- queryOptions
- typeOfGroups
- GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public Set<Group> findAllByApproximateCurrentName(String name) throws GrouperDAOException
findAllByApproximateCurrentName
in interface GroupDAO
name
- GrouperDAOException
public Set<Group> findAllByApproximateCurrentName(String name, String scope) throws GrouperDAOException
findAllByApproximateCurrentName
in interface GroupDAO
name
- scope
- GrouperDAOException
public Set<Group> findAllByApproximateAlternateName(String name) throws GrouperDAOException
findAllByApproximateAlternateName
in interface GroupDAO
name
- GrouperDAOException
public Set<Group> findAllByApproximateAlternateName(String name, String scope) throws GrouperDAOException
findAllByApproximateAlternateName
in interface GroupDAO
name
- scope
- GrouperDAOException
public Set<Group> findAllByCreatedAfter(Date d) throws GrouperDAOException
findAllByCreatedAfter
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByCreatedAfter(Date d, String scope)
findAllByCreatedAfter
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByCreatedBefore(Date d) throws GrouperDAOException
findAllByCreatedBefore
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByCreatedBefore(Date d, String scope) throws GrouperDAOException
findAllByCreatedBefore
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByModifiedAfter(Date d) throws GrouperDAOException
findAllByModifiedAfter
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByModifiedAfter(Date d, String scope) throws GrouperDAOException
findAllByModifiedAfter
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByModifiedBefore(Date d) throws GrouperDAOException
findAllByModifiedBefore
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByModifiedBefore(Date d, String scope) throws GrouperDAOException
findAllByModifiedBefore
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByLastMembershipBefore(Date d) throws GrouperDAOException
findAllByLastMembershipBefore
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByLastMembershipBefore(Date d, String scope) throws GrouperDAOException
findAllByLastMembershipBefore
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByLastMembershipAfter(Date d) throws GrouperDAOException
findAllByLastMembershipAfter
in interface GroupDAO
d
- GrouperDAOException
public Set<Group> findAllByLastMembershipAfter(Date d, String scope) throws GrouperDAOException
findAllByLastMembershipAfter
in interface GroupDAO
d
- scope
- GrouperDAOException
public Set<Group> findAllByType(GroupType _gt) throws GrouperDAOException
findAllByType
in interface GroupDAO
_gt
- GrouperDAOException
public Set<Group> findAllByType(GroupType _gt, String scope) throws GrouperDAOException
findAllByType
in interface GroupDAO
_gt
- scope
- GrouperDAOException
public Group findByAttribute(String attr, String val, boolean exceptionIfNotFound, boolean secureQuery) throws GrouperDAOException, GroupNotFoundException
findByAttribute
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByAttribute(java.lang.String, java.lang.String, boolean, boolean)
public Group findByAttribute(String attr, String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByAttribute
in interface GroupDAO
attr
- val
- exceptionIfNotFound
- GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByAttribute(String attr, String val) throws GrouperDAOException, GroupNotFoundException
findByAttribute
in interface GroupDAO
attr
- val
- GrouperDAOException
GroupNotFoundException
public Group findByName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- exceptionIfNotFound
- GrouperDAOException
GroupNotFoundException
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or notGrouperDAOException
GroupNotFoundException
public Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or notGrouperDAOException
GroupNotFoundException
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups)
findByNameSecure
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or notGrouperDAOException
GroupNotFoundException
public Group findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Set<Privilege> inPrivSet)
findByNameSecure
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or nottypeOfGroups
- inPrivSet
- GrouperDAOException
GroupNotFoundException
public Group findByCurrentName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByCurrentName
in interface GroupDAO
name
- exceptionIfNotFound
- GrouperDAOException
GroupNotFoundException
public Group findByAlternateName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByAlternateName
in interface GroupDAO
name
- exceptionIfNotFound
- GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByName(String name) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByUuid(String uuid) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(String)
public Group findByUuid(String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean)
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean, QueryOptions)
public Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
typeOfGroups
- to search in or null for allGrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean, QueryOptions, Set)
public Group findByUuidSecure(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
GroupDAO
findByUuidSecure
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean, QueryOptions, Set)
public Set<Group> getAllGroups() throws GrouperDAOException
getAllGroups
in interface GroupDAO
GrouperDAOException
public Set<Group> getAllGroups(String scope) throws GrouperDAOException
getAllGroups
in interface GroupDAO
scope
- GrouperDAOException
public Set<Group> getImmediateChildren(Stem stem) throws GrouperDAOException
getImmediateChildren
in interface GroupDAO
stem
- GrouperDAOException
public void update(Group _g) throws GrouperDAOException
update
in interface GroupDAO
_g
- GrouperDAOException
protected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException
hibernateSession
- org.hibernate.HibernateException
public Set<Group> findAllByAttr(String attr, String val) throws GrouperDAOException, IllegalStateException
Implementation Notes.
findAllByAttr
in interface GroupDAO
GrouperDAOException
IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String)
public Set<Group> findAllByAttr(String attr, String val, String scope, boolean secureQuery) throws GrouperDAOException, IllegalStateException
findAllByAttr
in interface GroupDAO
GrouperDAOException
IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String, java.lang.String, boolean)
public Set<Group> findAllByAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException
Implementation Notes.
findAllByAttr
in interface GroupDAO
GrouperDAOException
IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String, java.lang.String)
public Set<Group> findByCreatorOrModifier(Member member)
findByCreatorOrModifier
in interface GroupDAO
member
- public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllGroupsSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getAllGroupsSecure(GrouperSession, Subject, Set, QueryOptions, Set)
public Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException
getAllGroupsSecure
in interface GroupDAO
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 allGrouperDAOException
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllGroupsSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getAllGroupsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException
getAllGroupsSecure
in interface GroupDAO
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 allGrouperDAOException
GroupDAO.getAllGroupsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, Set)
public Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
GroupDAO
getImmediateChildrenSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getImmediateChildrenSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException
GroupDAO
getImmediateChildrenSecure
in interface GroupDAO
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 allGrouperDAOException
GroupDAO.getImmediateChildrenSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, Set)
public Set<Group> findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException
GroupDAO
findByUuids
in interface GroupDAO
exceptionOnNotFound
- if exception should be thrown when a uuid doesnt match upGroupNotFoundException
GroupDAO.findByUuids(java.util.Collection, boolean)
public Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
getAllGroupsMembershipSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getAllGroupsMembershipSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, boolean)
public Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
getAllGroupsMembershipSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getAllGroupsMembershipSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, boolean)
public Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly, Stem stem, Stem.Scope stemScope) throws GrouperDAOException
getAllGroupsMembershipSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getAllGroupsMembershipSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, boolean, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope)
public Set<Group> getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
GroupDAO
getImmediateChildrenMembershipSecure
in interface GroupDAO
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 setsGrouperDAOException
GroupDAO.getImmediateChildrenMembershipSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, boolean)
public void updateLastMembershipChange(String groupId)
updateLastMembershipChange
in interface GroupDAO
GroupDAO.updateLastMembershipChange(java.lang.String)
public void updateLastImmediateMembershipChange(String groupId)
updateLastImmediateMembershipChange
in interface GroupDAO
GroupDAO.updateLastImmediateMembershipChange(java.lang.String)
public void updateLastMembershipChangeIncludeAncestorGroups(String groupId)
GroupDAO
updateLastMembershipChangeIncludeAncestorGroups
in interface GroupDAO
GroupDAO.updateLastMembershipChangeIncludeAncestorGroups(java.lang.String)
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
getAllGroupsMembershipSecure
in interface GroupDAO
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 oneGrouperDAOException
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)
public Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, GroupNotFoundException
findByUuidOrName
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)
public Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException
findByUuidOrName
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)
public void saveUpdateProperties(Group group)
GroupDAO
saveUpdateProperties
in interface GroupDAO
GroupDAO.saveUpdateProperties(edu.internet2.middleware.grouper.Group)
public Set<Group> findAllByType(GroupType _gt, QueryOptions queryOptions) throws GrouperDAOException
GroupDAO
findAllByType
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByType(GroupType, QueryOptions)
public Set<Group> findGroupsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
GroupDAO
findGroupsInStemWithoutPrivilege
in interface GroupDAO
GroupDAO#findGroupsInStemWithoutPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)
public Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, TypeOfGroup typeOfGroup)
GroupDAO
getAllGroupsSplitScopeSecure
in interface GroupDAO
typeOfGroup
- or null for allGroupDAO.getAllGroupsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, TypeOfGroup)
public Set<Group> getAllGroupsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups)
GroupDAO
getAllGroupsSplitScopeSecure
in interface GroupDAO
typeOfGroups
- or null for allGroupDAO.getAllGroupsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, Set)
public Set<Group> findAllByApproximateAttrSecure(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException
findAllByApproximateAttrSecure
in interface GroupDAO
attr
- attribute nameval
- valuescope
- some folder or null for allGrouperDAOException
IllegalStateException
GroupDAO.findAllByApproximateAttrSecure(java.lang.String, java.lang.String, java.lang.String)
public Set<Group> findByNamesSecure(Collection<String> names, QueryOptions queryOptions)
findByNamesSecure
in interface GroupDAO
GroupDAO.findByNamesSecure(Collection, QueryOptions)
public Set<Group> findByNamesSecure(Collection<String> names, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups)
findByNamesSecure
in interface GroupDAO
GroupDAO.findByNamesSecure(Collection, QueryOptions)
public Set<Group> findByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions)
GroupDAO
findByUuidsSecure
in interface GroupDAO
GroupDAO.findByUuidsSecure(Collection, QueryOptions)
public Set<Group> findByUuidsSecure(Collection<String> uuids, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups)
GroupDAO
findByUuidsSecure
in interface GroupDAO
GroupDAO.findByUuidsSecure(Collection, QueryOptions, Set)
public Group findByIdIndex(Long idIndex, boolean exceptionIfNotFound) throws GroupNotFoundException
findByIdIndex
in interface GroupDAO
GroupNotFoundException
public Group findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException
GroupDAO
findByIdIndexSecure
in interface GroupDAO
idIndex
- id index to findexceptionIfNotFound
- true if exception should be thrown if not foundqueryOptions
- query optionsGroupNotFoundException
GroupDAO.findByIdIndexSecure(Long, boolean, QueryOptions)
public Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, boolean splitScope, Subject membershipSubject, Field field)
GroupDAO
getAllGroupsSecure
in interface GroupDAO
typeOfGroups
- or null for allGroupDAO.getAllGroupsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.util.Set, boolean, edu.internet2.middleware.subject.Subject, edu.internet2.middleware.grouper.Field)
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)
GroupDAO
getAllGroupsSecure
in interface GroupDAO
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 ownersGroupDAO#getAllGroupsSecure(String, GrouperSession, Subject, Set, QueryOptions, Set, boolean, Subject, Field, String, Scope, boolean, Subject, Collection, Collection, Boolean)
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)
GroupDAO
getAllGroupsSecure
in interface GroupDAO
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 nameGroupDAO#getAllGroupsSecure(String, GrouperSession, Subject, Set, QueryOptions, Set, boolean, Subject, Field, String, Scope, boolean, Subject, Collection, Collection, Boolean, String, Object)
Copyright © 2016 Internet2. All rights reserved.