edu.internet2.middleware.grouper.internal.dao
Interface GroupDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3GroupDAO

public interface GroupDAO
extends GrouperDAO

Basic Group DAO interface.

Since:
1.2.0
Version:
$Id: GroupDAO.java,v 1.30 2009-12-10 08:54:15 mchyzer Exp $
Author:
blair christensen.

Method Summary
 java.util.Set<GroupType> _findAllTypesByGroup(java.lang.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(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> 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)
           
 java.util.Set<Group> findAllByApproximateAttr(java.lang.String attr, java.lang.String val, java.lang.String scope)
           
 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)
           
 java.util.Set<Group> findAllByApproximateName(java.lang.String name, java.lang.String scope)
           
 java.util.Set<Group> findAllByApproximateNameSecure(java.lang.String name, java.lang.String scope, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups)
           
 java.util.Set<Group> findAllByAttr(java.lang.String attr, java.lang.String val)
           
 java.util.Set<Group> findAllByAttr(java.lang.String attr, java.lang.String val, java.lang.String scope)
           
 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)
           
 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 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 findByNameSecure(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
           
 java.util.Set<Group> findByNamesSecure(java.util.Collection<java.lang.String> names, QueryOptions queryOptions)
           
 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 findByUuidOrName(java.lang.String uuid, java.lang.String name, boolean exceptionIfNull)
           
 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)
          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> 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(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions)
           
 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
 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.
 

Method Detail

_findAllTypesByGroup

java.util.Set<GroupType> _findAllTypesByGroup(java.lang.String uuid)
find al types for a group

Parameters:
uuid -
Returns:
the types

putInExistsCache

void putInExistsCache(java.lang.String uuid,
                      boolean exists)
put in cache

Parameters:
uuid -
exists -

addType

GroupTypeTuple addType(Group _g,
                       GroupType _gt)
                       throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

delete

void delete(Group _g)
            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

deleteType

GroupTypeTuple deleteType(Group _g,
                          GroupType _gt)
                          throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

exists

boolean exists(java.lang.String uuid)
               throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByAnyApproximateAttr

java.util.Set<Group> findAllByAnyApproximateAttr(java.lang.String val)
                                                 throws GrouperDAOException,
                                                        java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.2.0

findAllByAnyApproximateAttr

java.util.Set<Group> findAllByAnyApproximateAttr(java.lang.String val,
                                                 java.lang.String scope)
                                                 throws GrouperDAOException,
                                                        java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.4.0

findAllByApproximateAttr

java.util.Set<Group> findAllByApproximateAttr(java.lang.String attr,
                                              java.lang.String val)
                                              throws GrouperDAOException,
                                                     java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.2.0

findAllByApproximateAttr

java.util.Set<Group> findAllByApproximateAttr(java.lang.String attr,
                                              java.lang.String val,
                                              java.lang.String scope)
                                              throws GrouperDAOException,
                                                     java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.4.0

findAllByApproximateAttrSecure

java.util.Set<Group> findAllByApproximateAttrSecure(java.lang.String attr,
                                                    java.lang.String val,
                                                    java.lang.String scope)
                                                    throws GrouperDAOException,
                                                           java.lang.IllegalStateException
Parameters:
attr - attribute name
val - value
scope - some folder or null for all
Returns:
the grops
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
2.0.2

findAllByAttr

java.util.Set<Group> findAllByAttr(java.lang.String attr,
                                   java.lang.String val)
                                   throws GrouperDAOException,
                                          java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.3

findAllByAttr

java.util.Set<Group> findAllByAttr(java.lang.String attr,
                                   java.lang.String val,
                                   java.lang.String scope)
                                   throws GrouperDAOException,
                                          java.lang.IllegalStateException
Throws:
GrouperDAOException
java.lang.IllegalStateException
Since:
1.4.0

findAllByApproximateName

java.util.Set<Group> findAllByApproximateName(java.lang.String name)
                                              throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByApproximateName

java.util.Set<Group> findAllByApproximateName(java.lang.String name,
                                              java.lang.String scope)
                                              throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findAllByCreatedAfter

java.util.Set<Group> findAllByCreatedAfter(java.util.Date d)
                                           throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByCreatedAfter

java.util.Set<Group> findAllByCreatedAfter(java.util.Date d,
                                           java.lang.String scope)
                                           throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findAllByCreatedBefore

java.util.Set<Group> findAllByCreatedBefore(java.util.Date d)
                                            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByCreatedBefore

java.util.Set<Group> findAllByCreatedBefore(java.util.Date d,
                                            java.lang.String scope)
                                            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findAllByModifiedAfter

java.util.Set<Group> findAllByModifiedAfter(java.util.Date d)
                                            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByModifiedAfter

java.util.Set<Group> findAllByModifiedAfter(java.util.Date d,
                                            java.lang.String scope)
                                            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findAllByModifiedBefore

java.util.Set<Group> findAllByModifiedBefore(java.util.Date d)
                                             throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findAllByModifiedBefore

java.util.Set<Group> findAllByModifiedBefore(java.util.Date d,
                                             java.lang.String scope)
                                             throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findAllByLastMembershipAfter

java.util.Set<Group> findAllByLastMembershipAfter(java.util.Date d)
                                                  throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.5.0

findAllByLastMembershipAfter

java.util.Set<Group> findAllByLastMembershipAfter(java.util.Date d,
                                                  java.lang.String scope)
                                                  throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.5.0

findAllByLastMembershipBefore

java.util.Set<Group> findAllByLastMembershipBefore(java.util.Date d)
                                                   throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.5.0

findAllByLastMembershipBefore

java.util.Set<Group> findAllByLastMembershipBefore(java.util.Date d,
                                                   java.lang.String scope)
                                                   throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.5.0

findAllByType

java.util.Set<Group> findAllByType(GroupType _gt)
                                   throws GrouperDAOException
note, this doesnt cache

Throws:
GrouperDAOException
Since:
1.2.0

findAllByType

java.util.Set<Group> findAllByType(GroupType _gt,
                                   QueryOptions queryOptions)
                                   throws GrouperDAOException
this caches

Throws:
GrouperDAOException
Since:
1.2.0

findAllByType

java.util.Set<Group> findAllByType(GroupType _gt,
                                   java.lang.String scope)
                                   throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

findByAttribute

@Deprecated
Group findByAttribute(java.lang.String attr,
                                 java.lang.String val)
                      throws GrouperDAOException,
                             GroupNotFoundException
Deprecated. use overload

Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.2.0

findByAttribute

Group findByAttribute(java.lang.String attr,
                      java.lang.String val,
                      boolean exceptionIfNotFound)
                      throws GrouperDAOException,
                             GroupNotFoundException
Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.2.0

findByName

@Deprecated
Group findByName(java.lang.String name)
                 throws GrouperDAOException,
                        GroupNotFoundException
Deprecated. use overload

Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.2.0

findByName

Group findByName(java.lang.String name,
                 boolean exceptionIfNotFound)
                 throws GrouperDAOException,
                        GroupNotFoundException
Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.2.0

findByName

Group findByName(java.lang.String name,
                 boolean exceptionIfNotFound,
                 QueryOptions queryOptions)
Since:
1.2.0

findByNameSecure

Group findByNameSecure(java.lang.String name,
                       boolean exceptionIfNotFound,
                       QueryOptions queryOptions)
Since:
2.0.2

findByUuid

@Deprecated
Group findByUuid(java.lang.String uuid)
                 throws GrouperDAOException,
                        GroupNotFoundException
Deprecated. use overload

Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.2.0

findByUuid

Group findByUuid(java.lang.String uuid,
                 boolean exceptionIfNotFound)
                 throws GrouperDAOException,
                        GroupNotFoundException
Throws:
GrouperDAOException
GroupNotFoundException

findByUuid

Group findByUuid(java.lang.String uuid,
                 boolean exceptionIfNotFound,
                 QueryOptions queryOptions)
                 throws GrouperDAOException,
                        GroupNotFoundException
Parameters:
uuid -
exceptionIfNotFound -
queryOptions -
Returns:
the group or null or exception
Throws:
GrouperDAOException
GroupNotFoundException

findByUuidSecure

Group findByUuidSecure(java.lang.String uuid,
                       boolean exceptionIfNotFound,
                       QueryOptions queryOptions)
find by uuid secure

Parameters:
uuid -
exceptionIfNotFound -
queryOptions -
Returns:
the group or null or exception
Throws:
GrouperDAOException
GroupNotFoundException

findByUuids

java.util.Set<Group> findByUuids(java.util.Collection<java.lang.String> uuids,
                                 boolean exceptionOnNotFound)
                                 throws GroupNotFoundException
find all groups which have these uuids

Parameters:
uuids -
exceptionOnNotFound - if exception should be thrown when a uuid doesnt match up
Returns:
the groups
Throws:
GroupNotFoundException

getAllGroups

java.util.Set<Group> getAllGroups()
                                  throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.3.1

getAllGroupsSecure

java.util.Set<Group> getAllGroupsSecure(GrouperSession grouperSession,
                                        edu.internet2.middleware.subject.Subject subject,
                                        java.util.Set<Privilege> inPrivSet,
                                        QueryOptions queryOptions)
                                        throws GrouperDAOException
Parameters:
grouperSession -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
Returns:
groups
Throws:
GrouperDAOException

getAllGroupsSecure

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
Parameters:
scope -
grouperSession -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
Returns:
the groups
Throws:
GrouperDAOException

getImmediateChildrenSecure

java.util.Set<Group> getImmediateChildrenSecure(GrouperSession grouperSession,
                                                Stem stem,
                                                edu.internet2.middleware.subject.Subject subject,
                                                java.util.Set<Privilege> inPrivSet,
                                                QueryOptions queryOptions)
                                                throws GrouperDAOException
get immediate children secure

Parameters:
grouperSession -
stem -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
Returns:
the set of groups
Throws:
GrouperDAOException

getImmediateChildrenMembershipSecure

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
get immediate children secure

Parameters:
grouperSession -
stem -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
enabledOnly -
Returns:
the set of groups
Throws:
GrouperDAOException

getAllGroups

java.util.Set<Group> getAllGroups(java.lang.String scope)
                                  throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

getImmediateChildren

java.util.Set<Group> getImmediateChildren(Stem stem)
                                          throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.4.0

update

void update(Group _g)
            throws GrouperDAOException
Throws:
GrouperDAOException
Since:
1.2.0

findByCreatorOrModifier

java.util.Set<Group> findByCreatorOrModifier(Member member)
find groups by creator or modifier

Parameters:
member -
Returns:
the groups

findAllByApproximateNameSecure

java.util.Set<Group> findAllByApproximateNameSecure(java.lang.String name,
                                                    java.lang.String scope,
                                                    QueryOptions queryOptions,
                                                    java.util.Set<TypeOfGroup> typeOfGroups)
                                                    throws GrouperDAOException
Parameters:
name -
scope -
queryOptions -
typeOfGroups -
Returns:
the set of groups
Throws:
GrouperDAOException
Since:
2.1.0

findByAlternateName

Group findByAlternateName(java.lang.String name,
                          boolean exceptionIfNotFound)
                          throws GrouperDAOException,
                                 GroupNotFoundException
Find a group by its alternate name only.

Parameters:
name -
exceptionIfNotFound -
Returns:
group
Throws:
GrouperDAOException
GroupNotFoundException

findByCurrentName

Group findByCurrentName(java.lang.String name,
                        boolean exceptionIfNotFound)
                        throws GrouperDAOException,
                               GroupNotFoundException
Find a group by its current name only.

Parameters:
name -
exceptionIfNotFound -
Returns:
group
Throws:
GrouperDAOException
GroupNotFoundException

findAllByApproximateCurrentName

java.util.Set<Group> findAllByApproximateCurrentName(java.lang.String name)
                                                     throws GrouperDAOException
Find groups using an approximate string for the current name, display name, extension, display extension.

Parameters:
name -
Returns:
set
Throws:
GrouperDAOException

findAllByApproximateCurrentName

java.util.Set<Group> findAllByApproximateCurrentName(java.lang.String name,
                                                     java.lang.String scope)
                                                     throws GrouperDAOException
Find groups using an approximate string for the current name, display name, extension, display extension.

Parameters:
name -
scope -
Returns:
set
Throws:
GrouperDAOException

findAllByApproximateAlternateName

java.util.Set<Group> findAllByApproximateAlternateName(java.lang.String name)
                                                       throws GrouperDAOException
Find groups using an approximate string for the alternate name.

Parameters:
name -
Returns:
set
Throws:
GrouperDAOException

findAllByApproximateAlternateName

java.util.Set<Group> findAllByApproximateAlternateName(java.lang.String name,
                                                       java.lang.String scope)
                                                       throws GrouperDAOException
Find groups using an approximate string for the alternate name.

Parameters:
name -
scope -
Returns:
set
Throws:
GrouperDAOException

getAllGroupsMembershipSecure

java.util.Set<Group> getAllGroupsMembershipSecure(GrouperSession grouperSession,
                                                  edu.internet2.middleware.subject.Subject subject,
                                                  java.util.Set<Privilege> inPrivSet,
                                                  QueryOptions queryOptions,
                                                  boolean enabledOnly)
                                                  throws GrouperDAOException
Parameters:
grouperSession -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
enabledOnly -
Returns:
groups
Throws:
GrouperDAOException

getAllGroupsMembershipSecure

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
Parameters:
scope -
grouperSession -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
enabledOnly -
Returns:
the groups
Throws:
GrouperDAOException

getAllGroupsMembershipSecure

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
Parameters:
scope -
stemScope -
grouperSession -
subject -
queryOptions -
inPrivSet - means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in AccessPrivilege of pre-canned sets
enabledOnly -
stem -
Returns:
the groups
Throws:
GrouperDAOException

getAllGroupsMembershipSecure

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
Parameters:
field -
scope -
grouperSession -
subject -
queryOptions - if sorting on name, displayName, extension, displayExtension
enabled - null for all, True for enabledOnly, False for disabledOnly
membershipType - immediate, effective, etc
stem - if searching in a specific stem
stemScope - sub or one
Returns:
the groups
Throws:
GrouperDAOException

updateLastMembershipChange

void updateLastMembershipChange(java.lang.String groupId)
Parameters:
groupId -

updateLastImmediateMembershipChange

void updateLastImmediateMembershipChange(java.lang.String groupId)
Parameters:
groupId -

updateLastMembershipChangeIncludeAncestorGroups

void updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
This will update last_membership_change for group owners where group member in groupSet is the given groupId.

Parameters:
groupId -

findByUuidOrName

Group findByUuidOrName(java.lang.String uuid,
                       java.lang.String name,
                       boolean exceptionIfNull)
                       throws GrouperDAOException,
                              GroupNotFoundException
Parameters:
uuid -
name -
exceptionIfNull -
Returns:
the stem or null
Throws:
GrouperDAOException
GroupNotFoundException
Since:
1.6.0

saveUpdateProperties

void saveUpdateProperties(Group group)
save the update properties which are auto saved when business method is called

Parameters:
group -

findGroupsInStemWithoutPrivilege

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

Parameters:
grouperSession -
stemId -
scope -
subject -
privilege -
queryOptions -
considerAllSubject -
sqlLikeString -
Returns:
the groups

getAllGroupsSplitScopeSecure

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

Parameters:
scope -
grouperSession -
subject -
privileges -
queryOptions -
typeOfGroup - or null for all
Returns:
set of group

findByUuidsSecure

java.util.Set<Group> findByUuidsSecure(java.util.Collection<java.lang.String> uuids,
                                       QueryOptions queryOptions)
find by uuid secure

Parameters:
uuids -
exceptionIfNotFound -
queryOptions -
Returns:
the group or null or exception
Throws:
GrouperDAOException
GroupNotFoundException

findByNamesSecure

java.util.Set<Group> findByNamesSecure(java.util.Collection<java.lang.String> names,
                                       QueryOptions queryOptions)
Parameters:
names -
queryOptions -
Since:
2.0.2