|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupDAO
public class Hib3GroupDAO
Basic Hibernate Group
DAO interface.
Field Summary |
---|
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
hibernateInitted |
Constructor Summary | |
---|---|
Hib3GroupDAO()
|
Method Summary | |
---|---|
void |
delete(Group _g)
|
boolean |
exists(java.lang.String uuid)
|
java.util.Set<Group> |
findAllByAnyApproximateAttr(java.lang.String val)
|
java.util.Set<Group> |
findAllByAnyApproximateAttr(java.lang.String val,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByAnyApproximateAttr(java.lang.String val,
java.lang.String scope,
boolean secureQuery)
|
java.util.Set<Group> |
findAllByApproximateAlternateName(java.lang.String name)
Find groups using an approximate string for the alternate name. |
java.util.Set<Group> |
findAllByApproximateAlternateName(java.lang.String name,
java.lang.String scope)
Find groups using an approximate string for the alternate name. |
java.util.Set<Group> |
findAllByApproximateAttr(java.lang.String attr,
java.lang.String val)
Implementation Notes. |
java.util.Set<Group> |
findAllByApproximateAttr(java.lang.String attr,
java.lang.String val,
java.lang.String scope)
Implementation Notes. |
java.util.Set<Group> |
findAllByApproximateAttrSecure(java.lang.String attr,
java.lang.String val,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByApproximateCurrentName(java.lang.String name)
Find groups using an approximate string for the current name, display name, extension, display extension. |
java.util.Set<Group> |
findAllByApproximateCurrentName(java.lang.String name,
java.lang.String scope)
Find groups using an approximate string for the current name, display name, extension, display extension. |
java.util.Set<Group> |
findAllByApproximateName(java.lang.String name)
Implementation Notes. |
java.util.Set<Group> |
findAllByApproximateName(java.lang.String name,
java.lang.String scope)
Implementation Notes. |
java.util.Set<Group> |
findAllByApproximateNameSecure(java.lang.String name,
java.lang.String scope,
QueryOptions queryOptions)
Implementation Notes. |
java.util.Set<Group> |
findAllByApproximateNameSecure(java.lang.String name,
java.lang.String scope,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
Implementation Notes. |
java.util.Set<Group> |
findAllByAttr(java.lang.String attr,
java.lang.String val)
Implementation Notes. |
java.util.Set<Group> |
findAllByAttr(java.lang.String attr,
java.lang.String val,
java.lang.String scope)
Implementation Notes. |
java.util.Set<Group> |
findAllByAttr(java.lang.String attr,
java.lang.String val,
java.lang.String scope,
boolean secureQuery)
|
java.util.Set<Group> |
findAllByCreatedAfter(java.util.Date d)
|
java.util.Set<Group> |
findAllByCreatedAfter(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByCreatedBefore(java.util.Date d)
|
java.util.Set<Group> |
findAllByCreatedBefore(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByLastMembershipAfter(java.util.Date d)
|
java.util.Set<Group> |
findAllByLastMembershipAfter(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByLastMembershipBefore(java.util.Date d)
|
java.util.Set<Group> |
findAllByLastMembershipBefore(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByModifiedAfter(java.util.Date d)
|
java.util.Set<Group> |
findAllByModifiedAfter(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByModifiedBefore(java.util.Date d)
|
java.util.Set<Group> |
findAllByModifiedBefore(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllByType(GroupType _gt)
Note, this doesnt cache |
java.util.Set<Group> |
findAllByType(GroupType _gt,
QueryOptions queryOptions)
this caches |
java.util.Set<Group> |
findAllByType(GroupType _gt,
java.lang.String scope)
|
Group |
findByAlternateName(java.lang.String name,
boolean exceptionIfNotFound)
Find a group by its alternate name only. |
Group |
findByAttribute(java.lang.String attr,
java.lang.String val)
Deprecated. use overload |
Group |
findByAttribute(java.lang.String attr,
java.lang.String val,
boolean exceptionIfNotFound)
|
Group |
findByAttribute(java.lang.String attr,
java.lang.String val,
boolean exceptionIfNotFound,
boolean secureQuery)
|
java.util.Set<Group> |
findByCreatorOrModifier(Member member)
find groups by creator or modifier |
Group |
findByCurrentName(java.lang.String name,
boolean exceptionIfNotFound)
Find a group by its current name only. |
Group |
findByIdIndex(java.lang.Long idIndex,
boolean exceptionIfNotFound)
not a secure method, find by id index |
Group |
findByIdIndexSecure(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find a group by id index |
Group |
findByName(java.lang.String name)
Deprecated. use overload |
Group |
findByName(java.lang.String name,
boolean exceptionIfNotFound)
|
Group |
findByName(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
|
Group |
findByName(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
|
Group |
findByNameSecure(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
|
Group |
findByNameSecure(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups,
java.util.Set<Privilege> inPrivSet)
|
java.util.Set<Group> |
findByNamesSecure(java.util.Collection<java.lang.String> names,
QueryOptions queryOptions)
|
java.util.Set<Group> |
findByNamesSecure(java.util.Collection<java.lang.String> names,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
|
Group |
findByUuid(java.lang.String uuid)
Deprecated. use overload |
Group |
findByUuid(java.lang.String uuid,
boolean exceptionIfNotFound)
|
Group |
findByUuid(java.lang.String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
|
Group |
findByUuid(java.lang.String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
|
Group |
findByUuidOrName(java.lang.String uuid,
java.lang.String name,
boolean exceptionIfNull)
|
Group |
findByUuidOrName(java.lang.String uuid,
java.lang.String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
java.util.Set<Group> |
findByUuids(java.util.Collection<java.lang.String> uuids,
boolean exceptionOnNotFound)
find all groups which have these uuids |
Group |
findByUuidSecure(java.lang.String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
find by uuid secure |
java.util.Set<Group> |
findByUuidsSecure(java.util.Collection<java.lang.String> uuids,
QueryOptions queryOptions)
find by uuid secure |
java.util.Set<Group> |
findByUuidsSecure(java.util.Collection<java.lang.String> uuids,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
find by uuid secure |
java.util.Set<Group> |
findGroupsInStemWithoutPrivilege(GrouperSession grouperSession,
java.lang.String stemId,
Stem.Scope scope,
edu.internet2.middleware.subject.Subject subject,
Privilege privilege,
QueryOptions queryOptions,
boolean considerAllSubject,
java.lang.String sqlLikeString)
see which groups do not have this privilege |
java.util.Set<Group> |
getAllGroups()
|
java.util.Set<Group> |
getAllGroups(java.lang.String scope)
|
java.util.Set<Group> |
getAllGroupsMembershipSecure(Field field,
java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
QueryOptions queryOptions,
java.lang.Boolean enabled,
MembershipType membershipType,
Stem stem,
Stem.Scope stemScope)
|
java.util.Set<Group> |
getAllGroupsMembershipSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly)
|
java.util.Set<Group> |
getAllGroupsMembershipSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly)
|
java.util.Set<Group> |
getAllGroupsMembershipSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly,
Stem stem,
Stem.Scope stemScope)
|
java.util.Set<Group> |
getAllGroupsSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
java.util.Set<Group> |
getAllGroupsSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
In this case, send in the attribute name to sort by (default is displayName). |
java.util.Set<Group> |
getAllGroupsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
java.util.Set<Group> |
getAllGroupsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
|
java.util.Set<Group> |
getAllGroupsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups,
boolean splitScope,
edu.internet2.middleware.subject.Subject membershipSubject,
Field field)
get all groups secure, split the scope by whitespace |
java.util.Set<Group> |
getAllGroupsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups,
boolean splitScope,
edu.internet2.middleware.subject.Subject membershipSubject,
Field field,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
edu.internet2.middleware.subject.Subject subjectNotInGroup,
java.util.Collection<java.lang.String> groupIds,
java.util.Collection<java.lang.String> groupNames,
java.lang.Boolean compositeOwner)
get all groups secure, split the scope by whitespace |
java.util.Set<Group> |
getAllGroupsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups,
boolean splitScope,
edu.internet2.middleware.subject.Subject membershipSubject,
Field field,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
edu.internet2.middleware.subject.Subject subjectNotInGroup,
java.util.Collection<java.lang.String> groupIds,
java.util.Collection<java.lang.String> groupNames,
java.lang.Boolean compositeOwner,
java.lang.String idOfAttributeDefName,
java.lang.Object attributeValue)
get all groups secure, split the scope by whitespace |
java.util.Set<Group> |
getAllGroupsSplitScopeSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
get all groups secure, split the scope by whitespace |
java.util.Set<Group> |
getAllGroupsSplitScopeSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
TypeOfGroup typeOfGroup)
get all groups secure, split the scope by whitespace |
java.util.Set<Group> |
getImmediateChildren(Stem stem)
|
java.util.Set<Group> |
getImmediateChildrenMembershipSecure(GrouperSession grouperSession,
Stem stem,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean enabledOnly)
get immediate children secure |
java.util.Set<Group> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get immediate children secure |
java.util.Set<Group> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
get immediate children secure |
void |
putInExistsCache(java.lang.String uuid,
boolean exists)
put in cache |
void |
saveUpdateProperties(Group group)
save the update properties which are auto saved when business method is called |
void |
update(Group _g)
|
void |
updateLastImmediateMembershipChange(java.lang.String groupId)
|
void |
updateLastMembershipChange(java.lang.String groupId)
|
void |
updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
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, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hib3GroupDAO()
Method Detail |
---|
public void putInExistsCache(java.lang.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(java.lang.String uuid) throws GrouperDAOException
exists
in interface GroupDAO
uuid
-
GrouperDAOException
public java.util.Set<Group> findAllByAnyApproximateAttr(java.lang.String val) throws GrouperDAOException, java.lang.IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
-
GrouperDAOException
java.lang.IllegalStateException
public java.util.Set<Group> findAllByAnyApproximateAttr(java.lang.String val, java.lang.String scope) throws GrouperDAOException, java.lang.IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
- scope
-
GrouperDAOException
java.lang.IllegalStateException
public java.util.Set<Group> findAllByAnyApproximateAttr(java.lang.String val, java.lang.String scope, boolean secureQuery) throws GrouperDAOException, java.lang.IllegalStateException
findAllByAnyApproximateAttr
in interface GroupDAO
val
- scope
- secureQuery
-
GrouperDAOException
java.lang.IllegalStateException
public java.util.Set<Group> findAllByApproximateAttr(java.lang.String attr, java.lang.String val) throws GrouperDAOException, java.lang.IllegalStateException
Implementation Notes.
findAllByApproximateAttr
in interface GroupDAO
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByApproximateAttr(String, String)
public java.util.Set<Group> findAllByApproximateAttr(java.lang.String attr, java.lang.String val, java.lang.String scope) throws GrouperDAOException, java.lang.IllegalStateException
Implementation Notes.
findAllByApproximateAttr
in interface GroupDAO
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByApproximateAttr(String, String, String)
public java.util.Set<Group> findAllByApproximateName(java.lang.String name) throws GrouperDAOException
Implementation Notes.
findAllByApproximateName
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByApproximateName(String)
public java.util.Set<Group> findAllByApproximateName(java.lang.String name, java.lang.String scope) throws GrouperDAOException
Implementation Notes.
findAllByApproximateName
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public java.util.Set<Group> findAllByApproximateNameSecure(java.lang.String name, java.lang.String scope, QueryOptions queryOptions) throws GrouperDAOException
Implementation Notes.
findAllByApproximateNameSecure
in interface GroupDAO
name
- scope
- queryOptions
-
GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public java.util.Set<Group> findAllByApproximateNameSecure(java.lang.String name, java.lang.String scope, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
Implementation Notes.
findAllByApproximateNameSecure
in interface GroupDAO
name
- scope
- queryOptions
- typeOfGroups
-
GrouperDAOException
GroupDAO.findAllByApproximateName(String, String)
public java.util.Set<Group> findAllByApproximateCurrentName(java.lang.String name) throws GrouperDAOException
findAllByApproximateCurrentName
in interface GroupDAO
name
-
GrouperDAOException
public java.util.Set<Group> findAllByApproximateCurrentName(java.lang.String name, java.lang.String scope) throws GrouperDAOException
findAllByApproximateCurrentName
in interface GroupDAO
name
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByApproximateAlternateName(java.lang.String name) throws GrouperDAOException
findAllByApproximateAlternateName
in interface GroupDAO
name
-
GrouperDAOException
public java.util.Set<Group> findAllByApproximateAlternateName(java.lang.String name, java.lang.String scope) throws GrouperDAOException
findAllByApproximateAlternateName
in interface GroupDAO
name
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByCreatedAfter(java.util.Date d) throws GrouperDAOException
findAllByCreatedAfter
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByCreatedAfter(java.util.Date d, java.lang.String scope)
findAllByCreatedAfter
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByCreatedBefore(java.util.Date d) throws GrouperDAOException
findAllByCreatedBefore
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByCreatedBefore(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByCreatedBefore
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByModifiedAfter(java.util.Date d) throws GrouperDAOException
findAllByModifiedAfter
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByModifiedAfter(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByModifiedAfter
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByModifiedBefore(java.util.Date d) throws GrouperDAOException
findAllByModifiedBefore
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByModifiedBefore(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByModifiedBefore
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByLastMembershipBefore(java.util.Date d) throws GrouperDAOException
findAllByLastMembershipBefore
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByLastMembershipBefore(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByLastMembershipBefore
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByLastMembershipAfter(java.util.Date d) throws GrouperDAOException
findAllByLastMembershipAfter
in interface GroupDAO
d
-
GrouperDAOException
public java.util.Set<Group> findAllByLastMembershipAfter(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByLastMembershipAfter
in interface GroupDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllByType(GroupType _gt) throws GrouperDAOException
findAllByType
in interface GroupDAO
_gt
-
GrouperDAOException
public java.util.Set<Group> findAllByType(GroupType _gt, java.lang.String scope) throws GrouperDAOException
findAllByType
in interface GroupDAO
_gt
- scope
-
GrouperDAOException
public Group findByAttribute(java.lang.String attr, java.lang.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(java.lang.String attr, java.lang.String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByAttribute
in interface GroupDAO
attr
- val
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByAttribute(java.lang.String attr, java.lang.String val) throws GrouperDAOException, GroupNotFoundException
findByAttribute
in interface GroupDAO
attr
- val
-
GrouperDAOException
GroupNotFoundException
public Group findByName(java.lang.String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
public Group findByName(java.lang.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 not
GrouperDAOException
GroupNotFoundException
public Group findByName(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or not
GrouperDAOException
GroupNotFoundException
public Group findByNameSecure(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
findByNameSecure
in interface GroupDAO
name
- exceptionIfNotFound
- exception if cant find groupqueryOptions
- if we should use cache or not
GrouperDAOException
GroupNotFoundException
public Group findByNameSecure(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups, java.util.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(java.lang.String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByCurrentName
in interface GroupDAO
name
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
public Group findByAlternateName(java.lang.String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByAlternateName
in interface GroupDAO
name
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByName(java.lang.String name) throws GrouperDAOException, GroupNotFoundException
findByName
in interface GroupDAO
name
-
GrouperDAOException
GroupNotFoundException
@Deprecated public Group findByUuid(java.lang.String uuid) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(String)
public Group findByUuid(java.lang.String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean)
public Group findByUuid(java.lang.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(java.lang.String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
findByUuid
in interface GroupDAO
typeOfGroups
- to search in or null for all
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean, QueryOptions, Set)
public Group findByUuidSecure(java.lang.String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException, GroupNotFoundException
GroupDAO
findByUuidSecure
in interface GroupDAO
GrouperDAOException
GroupNotFoundException
GroupDAO.findByUuid(java.lang.String, boolean, QueryOptions, Set)
public java.util.Set<Group> getAllGroups() throws GrouperDAOException
getAllGroups
in interface GroupDAO
GrouperDAOException
public java.util.Set<Group> getAllGroups(java.lang.String scope) throws GrouperDAOException
getAllGroups
in interface GroupDAO
scope
-
GrouperDAOException
public java.util.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
public java.util.Set<Group> findAllByAttr(java.lang.String attr, java.lang.String val) throws GrouperDAOException, java.lang.IllegalStateException
Implementation Notes.
findAllByAttr
in interface GroupDAO
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String)
public java.util.Set<Group> findAllByAttr(java.lang.String attr, java.lang.String val, java.lang.String scope, boolean secureQuery) throws GrouperDAOException, java.lang.IllegalStateException
findAllByAttr
in interface GroupDAO
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String, java.lang.String, boolean)
public java.util.Set<Group> findAllByAttr(java.lang.String attr, java.lang.String val, java.lang.String scope) throws GrouperDAOException, java.lang.IllegalStateException
Implementation Notes.
findAllByAttr
in interface GroupDAO
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByAttr(java.lang.String, java.lang.String, java.lang.String)
public java.util.Set<Group> findByCreatorOrModifier(Member member)
findByCreatorOrModifier
in interface GroupDAO
member
-
public java.util.Set<Group> getAllGroupsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
GroupDAO.getAllGroupsSecure(GrouperSession, Subject, Set, QueryOptions, Set)
public java.util.Set<Group> getAllGroupsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, java.util.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 all
GrouperDAOException
public java.util.Set<Group> getAllGroupsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
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 java.util.Set<Group> getAllGroupsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, java.util.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 all
GrouperDAOException
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 java.util.Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
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 java.util.Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, java.util.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 all
GrouperDAOException
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 java.util.Set<Group> findByUuids(java.util.Collection<java.lang.String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException
GroupDAO
findByUuids
in interface GroupDAO
exceptionOnNotFound
- if exception should be thrown when a uuid doesnt match up
GroupNotFoundException
GroupDAO.findByUuids(java.util.Collection, boolean)
public java.util.Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
GroupDAO.getAllGroupsMembershipSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, boolean)
public java.util.Set<Group> getAllGroupsMembershipSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
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 java.util.Set<Group> getAllGroupsMembershipSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
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 java.util.Set<Group> getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, java.util.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 sets
GrouperDAOException
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(java.lang.String groupId)
updateLastMembershipChange
in interface GroupDAO
GroupDAO.updateLastMembershipChange(java.lang.String)
public void updateLastImmediateMembershipChange(java.lang.String groupId)
updateLastImmediateMembershipChange
in interface GroupDAO
GroupDAO.updateLastImmediateMembershipChange(java.lang.String)
public void updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
GroupDAO
updateLastMembershipChangeIncludeAncestorGroups
in interface GroupDAO
GroupDAO.updateLastMembershipChangeIncludeAncestorGroups(java.lang.String)
public java.util.Set<Group> getAllGroupsMembershipSecure(Field field, java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, QueryOptions queryOptions, java.lang.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 one
GrouperDAOException
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(java.lang.String uuid, java.lang.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(java.lang.String uuid, java.lang.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 java.util.Set<Group> findAllByType(GroupType _gt, QueryOptions queryOptions) throws GrouperDAOException
GroupDAO
findAllByType
in interface GroupDAO
GrouperDAOException
GroupDAO.findAllByType(GroupType, QueryOptions)
public java.util.Set<Group> findGroupsInStemWithoutPrivilege(GrouperSession grouperSession, java.lang.String stemId, Stem.Scope scope, edu.internet2.middleware.subject.Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, java.lang.String sqlLikeString)
GroupDAO
findGroupsInStemWithoutPrivilege
in interface GroupDAO
GroupDAO#findGroupsInStemWithoutPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)
public java.util.Set<Group> getAllGroupsSplitScopeSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, TypeOfGroup typeOfGroup)
GroupDAO
getAllGroupsSplitScopeSecure
in interface GroupDAO
typeOfGroup
- or null for all
GroupDAO.getAllGroupsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, TypeOfGroup)
public java.util.Set<Group> getAllGroupsSplitScopeSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
GroupDAO
getAllGroupsSplitScopeSecure
in interface GroupDAO
typeOfGroups
- or null for all
GroupDAO.getAllGroupsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, Set)
public java.util.Set<Group> findAllByApproximateAttrSecure(java.lang.String attr, java.lang.String val, java.lang.String scope) throws GrouperDAOException, java.lang.IllegalStateException
findAllByApproximateAttrSecure
in interface GroupDAO
attr
- attribute nameval
- valuescope
- some folder or null for all
GrouperDAOException
java.lang.IllegalStateException
GroupDAO.findAllByApproximateAttrSecure(java.lang.String, java.lang.String, java.lang.String)
public java.util.Set<Group> findByNamesSecure(java.util.Collection<java.lang.String> names, QueryOptions queryOptions)
findByNamesSecure
in interface GroupDAO
GroupDAO.findByNamesSecure(Collection, QueryOptions)
public java.util.Set<Group> findByNamesSecure(java.util.Collection<java.lang.String> names, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
findByNamesSecure
in interface GroupDAO
GroupDAO.findByNamesSecure(Collection, QueryOptions)
public java.util.Set<Group> findByUuidsSecure(java.util.Collection<java.lang.String> uuids, QueryOptions queryOptions)
GroupDAO
findByUuidsSecure
in interface GroupDAO
GroupDAO.findByUuidsSecure(Collection, QueryOptions)
public java.util.Set<Group> findByUuidsSecure(java.util.Collection<java.lang.String> uuids, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
GroupDAO
findByUuidsSecure
in interface GroupDAO
GroupDAO.findByUuidsSecure(Collection, QueryOptions, Set)
public Group findByIdIndex(java.lang.Long idIndex, boolean exceptionIfNotFound) throws GroupNotFoundException
findByIdIndex
in interface GroupDAO
GroupNotFoundException
public Group findByIdIndexSecure(java.lang.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 options
GroupNotFoundException
GroupDAO.findByIdIndexSecure(Long, boolean, QueryOptions)
public java.util.Set<Group> getAllGroupsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups, boolean splitScope, edu.internet2.middleware.subject.Subject membershipSubject, Field field)
GroupDAO
getAllGroupsSecure
in interface GroupDAO
typeOfGroups
- or null for all
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, java.util.Set, boolean, edu.internet2.middleware.subject.Subject, edu.internet2.middleware.grouper.Field)
public java.util.Set<Group> getAllGroupsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups, boolean splitScope, edu.internet2.middleware.subject.Subject membershipSubject, Field field, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, edu.internet2.middleware.subject.Subject subjectNotInGroup, java.util.Collection<java.lang.String> groupIds, java.util.Collection<java.lang.String> groupNames, java.lang.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 owners
GroupDAO#getAllGroupsSecure(String, GrouperSession, Subject, Set, QueryOptions, Set, boolean, Subject, Field, String, Scope, boolean, Subject, Collection, Collection, Boolean)
public java.util.Set<Group> getAllGroupsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups, boolean splitScope, edu.internet2.middleware.subject.Subject membershipSubject, Field field, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, edu.internet2.middleware.subject.Subject subjectNotInGroup, java.util.Collection<java.lang.String> groupIds, java.util.Collection<java.lang.String> groupNames, java.lang.Boolean compositeOwner, java.lang.String idOfAttributeDefName, java.lang.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 name
GroupDAO#getAllGroupsSecure(String, GrouperSession, Subject, Set, QueryOptions, Set, boolean, Subject, Field, String, Scope, boolean, Subject, Collection, Collection, Boolean, String, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |