Interface StemDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3StemDAO
Basic
Stem
DAO interface.- Since:
- 1.2.0
- Version:
- $Id: StemDAO.java,v 1.24 2009-11-17 02:52:29 mchyzer Exp $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createChildAttributeDef
(Stem _parent, AttributeDef _child) void
createChildAttributeDefName
(Stem _parent, AttributeDefName _child) void
createChildGroup
(Stem _parent, Group _child, Member _m) void
createChildStem
(Stem _child) void
createRootStem
(Stem _root) void
boolean
findAllByApproximateDisplayExtension
(String val, String scope) findAllByApproximateDisplayName
(String val, String scope) findAllByApproximateExtension
(String val, String scope) findAllByApproximateName
(String val, String scope) findAllByApproximateNameAny
(String name, String scope) findAllByApproximateNameAny
(String name, String scope, QueryOptions queryOptions) findAllByCreatedAfter
(Date d, String scope) findAllByCreatedBefore
(Date d, String scope) findAllChildGroups
(Stem ns, Stem.Scope scope) Find all child groups within specified scope.findAllChildGroupsSecure
(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) Find all child groups within specified scope, and make sure the grouper session can see themfindAllChildGroupsSecure
(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) Find all child groups within specified scope, and make sure the grouper session can see themfindAllChildGroupsSecure
(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) Find all child groups within specified scope, and make sure the grouper session can see themfindAllChildMembershipGroupsSecure
(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) Find all child groups within specified scope, and make sure the grouper session can see themfindAllChildStems
(Stem ns, Stem.Scope scope) Find all child stems within specified scope.findAllChildStems
(Stem ns, Stem.Scope scope, boolean orderByName) Find all child stems within specified scope.findAllChildStems
(Stem ns, Stem.Scope scope, QueryOptions queryOptions) Find all child stems within specified scope.findAllChildStems
(Stem ns, Stem.Scope scope, QueryOptions queryOptions, boolean checkSecurity) Find all child stems within specified scope.findAllChildStemsSecure
(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) Find all child stems within specified scope, and make sure the grouper session can see themfindByAlternateName
(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) Find a stem by its alternate name only.findByCreatorOrModifier
(Member member) find stems by creator or modifierfindByCurrentName
(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) Find a stem by its current name only.findByIdIndex
(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) find by id indexfindByName
(String name) Deprecated.findByName
(String name, boolean exceptionIfNull) findByName
(String name, boolean exceptionIfNull, QueryOptions queryOptions) findByNames
(Collection<String> names, boolean exceptionOnNotFound) find all stems by namefindByUuid
(String uuid) Deprecated.findByUuid
(String uuid, boolean exceptionIfNull) findByUuid
(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) findByUuidOrName
(String uuid, String name, boolean exceptionIfNull) findByUuidOrName
(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) findByUuids
(Collection<String> uuids, QueryOptions queryOptions) note, dont pass more than 100 idsfindParentsByGroups
(Collection<Group> groups) find all parent stems of groups (and grandparents, etc)findStemsInStemWithoutPrivilege
(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which stems do not have this privilegefindStemsInStemWithPrivilege
(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which stems do not have this privilegegetAllStemsSecure
(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned) getAllStemsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, Collection<String> stemNames, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned, boolean excludeAlternateNames) getAllStemsSplitScopeSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all stems secure, split the scope by whitespacegetAllStemsWithGroupsSecure
(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) get stems with groups that have privilegesgetImmediateChildrenSecure
(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) get immediate children (stems) securevoid
moveStemSets
(List<StemSet> ifHasStemSetsOfParentStem, List<StemSet> oldStemSets, String currentStemId, int depthOfFirstParent) void
renameStemAndChildren
(Set<?> children) void
saveUpdateProperties
(Stem stem) save the udpate properties which are auto saved when business method is calledvoid
void
updateLastMembershipChange
(String stemId) void
This will update last_membership_change for stem owners where group member in groupSet is the given groupId.
-
Method Details
-
findByNames
Set<Stem> findByNames(Collection<String> names, boolean exceptionOnNotFound) throws StemNotFoundException find all stems by name- Parameters:
names
-exceptionOnNotFound
-- Returns:
- the stems
- Throws:
StemNotFoundException
-
findParentsByGroups
find all parent stems of groups (and grandparents, etc)- Parameters:
groups
-- Returns:
- the stems
-
createChildAttributeDef
- Throws:
GrouperDAOException
-
createChildAttributeDefName
- Throws:
GrouperDAOException
-
createChildGroup
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
createChildStem
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
createRootStem
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
delete
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
exists
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateDisplayExtension
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateDisplayExtension
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateDisplayName
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateDisplayName
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateExtension
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateExtension
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateName
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateName
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateNameAny
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByApproximateNameAny
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByApproximateNameAny
- Parameters:
name
-scope
-queryOptions
-- Returns:
- set stems
- Throws:
GrouperDAOException
- Since:
- 2.1.0
-
findAllByCreatedAfter
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByCreatedAfter
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllByCreatedBefore
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findAllByCreatedBefore
- Throws:
GrouperDAOException
- Since:
- 1.4.0
-
findAllChildGroups
Find all child groups within specified scope.- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildGroupsSecure
Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException Find all child groups within specified scope, and make sure the grouper session can see them- Parameters:
ns
-scope
-grouperSession
-subject
-queryOptions
-inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege has some pre-baked set constants available- Returns:
- the groups
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildGroupsSecure
Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException Find all child groups within specified scope, and make sure the grouper session can see them- Parameters:
ns
-scope
-grouperSession
-subject
-queryOptions
-inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege has some pre-baked set constants availabletypeOfGroups
- type of groups to return or null for all- Returns:
- the groups
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildGroupsSecure
Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException Find all child groups within specified scope, and make sure the grouper session can see them- Parameters:
ns
-scope
-grouperSession
-subject
-queryOptions
-inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege has some pre-baked set constants availabletypeOfGroups
- type of groups to return or null for allenabled
-- Returns:
- the groups
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildMembershipGroupsSecure
Set<Group> findAllChildMembershipGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException Find all child groups within specified scope, and make sure the grouper session can see them- Parameters:
ns
-scope
-grouperSession
-subject
-queryOptions
-inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege has some pre-baked set constants available- Returns:
- the groups
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildStemsSecure
Set<Stem> findAllChildStemsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException Find all child stems within specified scope, and make sure the grouper session can see them- Parameters:
ns
-scope
-grouperSession
-subject
-queryOptions
-inPrivSet
- is a set of privs that the subject must have one of to display a row. NamingPrivilege has some pre-baked set constants available- Returns:
- the groups
- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findByIdIndex
Stem findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws StemNotFoundException find by id index- Parameters:
idIndex
-exceptionIfNotFound
-queryOptions
-- Throws:
StemNotFoundException
- Since:
- 2.2
-
findAllChildStems
Find all child stems within specified scope.- Throws:
GrouperDAOException
- Since:
- 1.2.1
-
findAllChildStems
Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions, boolean checkSecurity) throws GrouperDAOException Find all child stems within specified scope.- Parameters:
ns
-scope
-queryOptions
-checkSecurity
- if true, then possibly check security based on security.folders.are.viewable.by.all and security.show.all.folders.if.in.group configuration- Returns:
- stems
- Throws:
GrouperDAOException
- Since:
- 2.1
-
findAllChildStems
Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions) throws GrouperDAOException Find all child stems within specified scope.- Throws:
GrouperDAOException
- Since:
- 2.1
-
findAllChildStems
Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, boolean orderByName) throws GrouperDAOException Find all child stems within specified scope.- Parameters:
ns
-scope
-orderByName
-- Returns:
- set of stems
- Throws:
GrouperDAOException
-
findByName
Deprecated.- Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
findByUuid
Deprecated.- Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
findByName
Stem findByName(String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException - Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
findByUuid
Stem findByUuid(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException - Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
findByUuids
note, dont pass more than 100 ids- Since:
- 2.1
-
findByName
Stem findByName(String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException - Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
findByAlternateName
Stem findByAlternateName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException Find a stem by its alternate name only.- Parameters:
name
-exceptionIfNotFound
-queryOptions
-- Returns:
- stem
- Throws:
GrouperDAOException
StemNotFoundException
-
findByCurrentName
Stem findByCurrentName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException Find a stem by its current name only.- Parameters:
name
-exceptionIfNotFound
-queryOptions
-- Returns:
- stem
- Throws:
GrouperDAOException
StemNotFoundException
-
findByUuidOrName
Stem findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException - Parameters:
uuid
-name
-exceptionIfNull
-- Returns:
- the stem or null
- Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.6.0
-
findByUuidOrName
Stem findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException - Parameters:
uuid
-name
-exceptionIfNull
-queryOptions
-- Returns:
- the stem or null
- Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.6.0
-
findByUuid
Stem findByUuid(String uuid, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException - Throws:
GrouperDAOException
StemNotFoundException
- Since:
- 1.2.0
-
getAllStems
- Throws:
GrouperDAOException
- Since:
- 1.3.1
-
renameStemAndChildren
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
update
- Throws:
GrouperDAOException
- Since:
- 1.2.0
-
findByCreatorOrModifier
find stems by creator or modifier- Parameters:
member
-- Returns:
- the groups
-
getImmediateChildrenSecure
Set<Stem> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException get immediate children (stems) 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
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Parameters:
grouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned sets- Returns:
- stems
- Throws:
GrouperDAOException
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned sets- Returns:
- the stems
- Throws:
GrouperDAOException
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned setssplitScope
- true to split scopes by whitespaceparentStemId
- true if filtering by parent of ancestorstemScope
- ONE or SUBfindByUuidOrName
- if we are looking up a stem, only look by uuid or nameuserHasInGroupFields
- find stems where the user has these fields in a groupuserHasInAttributeFields
- find stems where the user has these fields in an attributestemIds
-- Returns:
- the stems
- Throws:
GrouperDAOException
- Since:
- v2.2
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned setssplitScope
- true to split scopes by whitespaceparentStemId
- true if filtering by parent of ancestorstemScope
- ONE or SUBfindByUuidOrName
- if we are looking up a stem, only look by uuid or nameuserHasInGroupFields
- find stems where the user has these fields in a groupuserHasInAttributeFields
- find stems where the user has these fields in an attributestemIds
-idOfAttributeDefName
- if looking for groups that have this attribute def nameattributeValue
- if looking for groups that have this attribute value on the attribute def nameattributeCheckReadOnAttributeDef
- if check read on attribute for attribute on stem- Returns:
- the stems
- Throws:
GrouperDAOException
- Since:
- v2.2.1
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned setssplitScope
- true to split scopes by whitespaceparentStemId
- true if filtering by parent of ancestorstemScope
- ONE or SUBfindByUuidOrName
- if we are looking up a stem, only look by uuid or nameuserHasInGroupFields
- find stems where the user has these fields in a groupuserHasInAttributeFields
- find stems where the user has these fields in an attributestemIds
-idOfAttributeDefName
- if looking for groups that have this attribute def nameattributeValue
- if looking for groups that have this attribute value on the attribute def nameattributeCheckReadOnAttributeDef
- if check read on attribute for attribute on stemattributeValuesOnAssignment
- if looking for an attribute value on an assignment, could be multiple values- Returns:
- the stems
- Throws:
GrouperDAOException
- Since:
- v2.3.1
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned setssplitScope
- true to split scopes by whitespaceparentStemId
- true if filtering by parent of ancestorstemScope
- ONE or SUBfindByUuidOrName
- if we are looking up a stem, only look by uuid or nameuserHasInGroupFields
- find stems where the user has these fields in a groupuserHasInAttributeFields
- find stems where the user has these fields in an attributestemIds
-idOfAttributeDefName
- if looking for groups that have this attribute def nameattributeValue
- if looking for groups that have this attribute value on the attribute def nameattributeCheckReadOnAttributeDef
- if check read on attribute for attribute on stemattributeValuesOnAssignment
- if looking for an attribute value on an assignment, could be multiple valuesidOfAttributeDefName2
- if looking for groups that have this attribute def name2attributeValue2
- if looking for groups that have this attribute value2 on the attribute def name2attributeValuesOnAssignment2
- if looking for an attribute value on an assignment2, could be multiple valuesattributeNotAssigned
- find stems that don't have the given type assigned- Returns:
- the stems
- Throws:
GrouperDAOException
- Since:
- v2.4.0
-
getAllStemsSecure
Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<Field> userHasInGroupFields, Collection<Field> userHasInAttributeFields, Collection<String> stemIds, Collection<String> stemNames, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef, Set<Object> attributeValuesOnAssignment, String idOfAttributeDefName2, Object attributeValue2, Set<Object> attributeValuesOnAssignment2, boolean attributeNotAssigned, boolean excludeAlternateNames) throws GrouperDAOException - Parameters:
scope
- is blank for no scopegrouperSession
-subject
-queryOptions
-inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll. There are some constants in NamingPrivilege of pre-canned setssplitScope
- true to split scopes by whitespaceparentStemId
- true if filtering by parent of ancestorstemScope
- ONE or SUBfindByUuidOrName
- if we are looking up a stem, only look by uuid or nameuserHasInGroupFields
- find stems where the user has these fields in a groupuserHasInAttributeFields
- find stems where the user has these fields in an attributestemIds
- the stem Ids to search forstemNames
- the stem names to search foridOfAttributeDefName
- if looking for groups that have this attribute def nameattributeValue
- if looking for groups that have this attribute value on the attribute def nameattributeCheckReadOnAttributeDef
- if check read on attribute for attribute on stemattributeValuesOnAssignment
- if looking for an attribute value on an assignment, could be multiple valuesidOfAttributeDefName2
- if looking for groups that have this attribute def name2attributeValue2
- if looking for groups that have this attribute value2 on the attribute def name2attributeValuesOnAssignment2
- if looking for an attribute value on an assignment2, could be multiple valuesattributeNotAssigned
- find stems that don't have the given type assignedexcludeAlternateNames
- whether to exclude alternate names from name or scope search- Returns:
- the stems
- Throws:
GrouperDAOException
- Since:
- v2.4.0
-
getAllStemsSplitScopeSecure
Set<Stem> getAllStemsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all stems secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-- Returns:
- set of attribute defs
-
updateLastMembershipChange
- Parameters:
stemId
-
-
updateLastMembershipChangeIncludeAncestorGroups
This will update last_membership_change for stem owners where group member in groupSet is the given groupId.- Parameters:
groupId
-
-
saveUpdateProperties
save the udpate properties which are auto saved when business method is called- Parameters:
stem
-
-
getAllStemsWithGroupsSecure
Set<Stem> getAllStemsWithGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException get stems with groups that have privileges- 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:
- stems
- Throws:
GrouperDAOException
-
findStemsInStemWithoutPrivilege
Set<Stem> findStemsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which stems do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the stems
-
moveStemSets
void moveStemSets(List<StemSet> ifHasStemSetsOfParentStem, List<StemSet> oldStemSets, String currentStemId, int depthOfFirstParent) - Parameters:
ifHasStemSetsOfParentStem
-oldStemSets
-currentStemId
-depthOfFirstParent
-
-
findStemsInStemWithPrivilege
Set<Stem> findStemsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which stems do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the stems
-