|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupDAO
Basic Group
DAO interface.
Method Summary | |
---|---|
Set<GroupType> |
_findAllTypesByGroup(String uuid)
find al types for a group |
GroupTypeTuple |
addType(Group _g,
GroupType _gt)
|
void |
delete(Group _g)
|
GroupTypeTuple |
deleteType(Group _g,
GroupType _gt)
|
boolean |
exists(String uuid)
|
Set<Group> |
findAllByAnyApproximateAttr(String val)
|
Set<Group> |
findAllByAnyApproximateAttr(String val,
String scope)
|
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)
|
Set<Group> |
findAllByApproximateAttr(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)
|
Set<Group> |
findAllByApproximateName(String name,
String scope)
|
Set<Group> |
findAllByAttr(String attr,
String val)
|
Set<Group> |
findAllByAttr(String attr,
String val,
String scope)
|
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)
|
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 |
findByName(String name)
Deprecated. use overload |
Group |
findByName(String name,
boolean exceptionIfNotFound)
|
Group |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
|
Group |
findByUuid(String uuid)
Deprecated. use overload |
Group |
findByUuid(String uuid,
boolean exceptionIfNotFound)
|
Group |
findByUuid(String uuid,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
|
Group |
findByUuidOrName(String uuid,
String name,
boolean exceptionIfNull)
|
Set<Group> |
findByUuids(Collection<String> uuids,
boolean exceptionOnNotFound)
find all groups which have these uuids |
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(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
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 |
void |
putInExistsCache(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 |
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. |
Method Detail |
---|
Set<GroupType> _findAllTypesByGroup(String uuid)
uuid
-
void putInExistsCache(String uuid, boolean exists)
uuid
- exists
- GroupTypeTuple addType(Group _g, GroupType _gt) throws GrouperDAOException
GrouperDAOException
void delete(Group _g) throws GrouperDAOException
GrouperDAOException
GroupTypeTuple deleteType(Group _g, GroupType _gt) throws GrouperDAOException
GrouperDAOException
boolean exists(String uuid) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByAnyApproximateAttr(String val) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByAnyApproximateAttr(String val, String scope) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByApproximateAttr(String attr, String val) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByApproximateAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByAttr(String attr, String val) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByAttr(String attr, String val, String scope) throws GrouperDAOException, IllegalStateException
GrouperDAOException
IllegalStateException
Set<Group> findAllByApproximateName(String name) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByApproximateName(String name, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByCreatedAfter(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByCreatedAfter(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByCreatedBefore(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByCreatedBefore(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByModifiedAfter(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByModifiedAfter(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByModifiedBefore(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByModifiedBefore(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByLastMembershipAfter(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByLastMembershipAfter(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByLastMembershipBefore(Date d) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByLastMembershipBefore(Date d, String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByType(GroupType _gt) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByType(GroupType _gt, QueryOptions queryOptions) throws GrouperDAOException
GrouperDAOException
Set<Group> findAllByType(GroupType _gt, String scope) throws GrouperDAOException
GrouperDAOException
@Deprecated Group findByAttribute(String attr, String val) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
Group findByAttribute(String attr, String val, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
@Deprecated Group findByName(String name) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
Group findByName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
Group findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
@Deprecated Group findByUuid(String uuid) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
Group findByUuid(String uuid, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
GrouperDAOException
GroupNotFoundException
Group findByUuid(String uuid, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, GroupNotFoundException
uuid
- exceptionIfNotFound
- queryOptions
-
GrouperDAOException
GroupNotFoundException
Set<Group> findByUuids(Collection<String> uuids, boolean exceptionOnNotFound) throws GroupNotFoundException
uuids
- exceptionOnNotFound
- if exception should be thrown when a uuid doesnt match up
GroupNotFoundException
Set<Group> getAllGroups() throws GrouperDAOException
GrouperDAOException
Set<Group> getAllGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
Set<Group> getAllGroupsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
Set<Group> getImmediateChildrenMembershipSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
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
-
GrouperDAOException
Set<Group> getAllGroups(String scope) throws GrouperDAOException
GrouperDAOException
Set<Group> getImmediateChildren(Stem stem) throws GrouperDAOException
GrouperDAOException
void update(Group _g) throws GrouperDAOException
GrouperDAOException
Set<Group> findByCreatorOrModifier(Member member)
member
-
Group findByAlternateName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
name
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
Group findByCurrentName(String name, boolean exceptionIfNotFound) throws GrouperDAOException, GroupNotFoundException
name
- exceptionIfNotFound
-
GrouperDAOException
GroupNotFoundException
Set<Group> findAllByApproximateCurrentName(String name) throws GrouperDAOException
name
-
GrouperDAOException
Set<Group> findAllByApproximateCurrentName(String name, String scope) throws GrouperDAOException
name
- scope
-
GrouperDAOException
Set<Group> findAllByApproximateAlternateName(String name) throws GrouperDAOException
name
-
GrouperDAOException
Set<Group> findAllByApproximateAlternateName(String name, String scope) throws GrouperDAOException
name
- scope
-
GrouperDAOException
Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
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
-
GrouperDAOException
Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly) throws GrouperDAOException
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
-
GrouperDAOException
Set<Group> getAllGroupsMembershipSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean enabledOnly, Stem stem, Stem.Scope stemScope) throws GrouperDAOException
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
-
GrouperDAOException
Set<Group> getAllGroupsMembershipSecure(Field field, String scope, GrouperSession grouperSession, Subject subject, QueryOptions queryOptions, Boolean enabled, MembershipType membershipType, Stem stem, Stem.Scope stemScope) throws GrouperDAOException
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
GrouperDAOException
void updateLastMembershipChange(String groupId)
groupId
- void updateLastMembershipChangeIncludeAncestorGroups(String groupId)
groupId
- Group findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, GroupNotFoundException
uuid
- name
- exceptionIfNull
-
GrouperDAOException
GroupNotFoundException
void saveUpdateProperties(Group group)
group
- Set<Group> findGroupsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
grouperSession
- stemId
- scope
- subject
- privilege
- queryOptions
- considerAllSubject
- sqlLikeString
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |