|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StemDAO
Basic Stem
DAO interface.
Method Summary | |
---|---|
void |
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 |
delete(Stem _ns)
|
boolean |
exists(java.lang.String uuid)
|
java.util.Set<Stem> |
findAllByApproximateDisplayExtension(java.lang.String val)
|
java.util.Set<Stem> |
findAllByApproximateDisplayExtension(java.lang.String val,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByApproximateDisplayName(java.lang.String val)
|
java.util.Set<Stem> |
findAllByApproximateDisplayName(java.lang.String val,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByApproximateExtension(java.lang.String val)
|
java.util.Set<Stem> |
findAllByApproximateExtension(java.lang.String val,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByApproximateName(java.lang.String val)
|
java.util.Set<Stem> |
findAllByApproximateName(java.lang.String val,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByApproximateNameAny(java.lang.String name)
|
java.util.Set<Stem> |
findAllByApproximateNameAny(java.lang.String name,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByApproximateNameAny(java.lang.String name,
java.lang.String scope,
QueryOptions queryOptions)
|
java.util.Set<Stem> |
findAllByCreatedAfter(java.util.Date d)
|
java.util.Set<Stem> |
findAllByCreatedAfter(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Stem> |
findAllByCreatedBefore(java.util.Date d)
|
java.util.Set<Stem> |
findAllByCreatedBefore(java.util.Date d,
java.lang.String scope)
|
java.util.Set<Group> |
findAllChildGroups(Stem ns,
Stem.Scope scope)
Find all child groups within specified scope. |
java.util.Set<Group> |
findAllChildGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child groups within specified scope, and make sure the grouper session can see them |
java.util.Set<Group> |
findAllChildGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
Find all child groups within specified scope, and make sure the grouper session can see them |
java.util.Set<Group> |
findAllChildMembershipGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child groups within specified scope, and make sure the grouper session can see them |
java.util.Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope)
Find all child stems within specified scope. |
java.util.Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
boolean orderByName)
Find all child stems within specified scope. |
java.util.Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
QueryOptions queryOptions)
Find all child stems within specified scope. |
java.util.Set<Stem> |
findAllChildStemsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child stems within specified scope, and make sure the grouper session can see them |
Stem |
findByAlternateName(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
Find a stem by its alternate name only. |
java.util.Set<Stem> |
findByCreatorOrModifier(Member member)
find stems by creator or modifier |
Stem |
findByCurrentName(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
Find a stem by its current name only. |
Stem |
findByIdIndex(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find by id index |
Stem |
findByName(java.lang.String name)
Deprecated. |
Stem |
findByName(java.lang.String name,
boolean exceptionIfNull)
|
Stem |
findByName(java.lang.String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
java.util.Set<Stem> |
findByNames(java.util.Collection<java.lang.String> names,
boolean exceptionOnNotFound)
find all stems by name |
Stem |
findByUuid(java.lang.String uuid)
Deprecated. |
Stem |
findByUuid(java.lang.String uuid,
boolean exceptionIfNull)
|
Stem |
findByUuid(java.lang.String uuid,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
Stem |
findByUuidOrName(java.lang.String uuid,
java.lang.String name,
boolean exceptionIfNull)
|
Stem |
findByUuidOrName(java.lang.String uuid,
java.lang.String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
java.util.Set<Stem> |
findByUuids(java.util.Collection<java.lang.String> uuids,
QueryOptions queryOptions)
note, dont pass more than 100 ids |
java.util.Set<Stem> |
findParentsByGroups(java.util.Collection<Group> groups)
find all parent stems of groups (and grandparents, etc) |
java.util.Set<Stem> |
findStemsInStemWithoutPrivilege(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 stems do not have this privilege |
java.util.Set<Stem> |
getAllStems()
|
java.util.Set<Stem> |
getAllStemsSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
java.util.Set<Stem> |
getAllStemsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
java.util.Set<Stem> |
getAllStemsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean splitScope,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
java.util.Collection<Field> userHasInGroupFields,
java.util.Collection<Field> userHasInAttributeFields,
java.util.Collection<java.lang.String> stemIds)
|
java.util.Set<Stem> |
getAllStemsSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
boolean splitScope,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
java.util.Collection<Field> userHasInGroupFields,
java.util.Collection<Field> userHasInAttributeFields,
java.util.Collection<java.lang.String> stemIds,
java.lang.String idOfAttributeDefName,
java.lang.Object attributeValue,
java.lang.Boolean attributeCheckReadOnAttributeDef)
|
java.util.Set<Stem> |
getAllStemsSplitScopeSecure(java.lang.String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions)
get all stems secure, split the scope by whitespace |
java.util.Set<Stem> |
getAllStemsWithGroupsSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get stems with groups that have privileges |
java.util.Set<Stem> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get immediate children (stems) secure |
void |
moveStemSets(java.util.List<StemSet> ifHasStemSetsOfParentStem,
java.util.List<StemSet> oldStemSets,
java.lang.String currentStemId,
int depthOfFirstParent)
|
void |
renameStemAndChildren(java.util.Set<?> children)
|
void |
saveUpdateProperties(Stem stem)
save the udpate properties which are auto saved when business method is called |
void |
update(Stem _ns)
|
void |
updateLastMembershipChange(java.lang.String stemId)
|
void |
updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
This will update last_membership_change for stem owners where group member in groupSet is the given groupId. |
Method Detail |
---|
java.util.Set<Stem> findByNames(java.util.Collection<java.lang.String> names, boolean exceptionOnNotFound) throws StemNotFoundException
names
- exceptionOnNotFound
-
StemNotFoundException
java.util.Set<Stem> findParentsByGroups(java.util.Collection<Group> groups)
groups
-
void createChildAttributeDef(Stem _parent, AttributeDef _child) throws GrouperDAOException
GrouperDAOException
void createChildAttributeDefName(Stem _parent, AttributeDefName _child) throws GrouperDAOException
GrouperDAOException
void createChildGroup(Stem _parent, Group _child, Member _m) throws GrouperDAOException
GrouperDAOException
void createChildStem(Stem _child) throws GrouperDAOException
GrouperDAOException
void createRootStem(Stem _root) throws GrouperDAOException
GrouperDAOException
void delete(Stem _ns) throws GrouperDAOException
GrouperDAOException
boolean exists(java.lang.String uuid) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateDisplayExtension(java.lang.String val) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateDisplayExtension(java.lang.String val, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateDisplayName(java.lang.String val) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateDisplayName(java.lang.String val, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateExtension(java.lang.String val) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateExtension(java.lang.String val, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateName(java.lang.String val) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateName(java.lang.String val, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name, java.lang.String scope, QueryOptions queryOptions)
name
- scope
- queryOptions
-
GrouperDAOException
java.util.Set<Stem> findAllByCreatedAfter(java.util.Date d) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByCreatedAfter(java.util.Date d, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByCreatedBefore(java.util.Date d) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllByCreatedBefore(java.util.Date d, java.lang.String scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Group> findAllChildGroups(Stem ns, Stem.Scope scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
java.util.Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException
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
GrouperDAOException
java.util.Set<Group> findAllChildMembershipGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
java.util.Set<Stem> findAllChildStemsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
Stem findByIdIndex(java.lang.Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws StemNotFoundException
idIndex
- exceptionIfNotFound
- queryOptions
-
StemNotFoundException
java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, boolean orderByName) throws GrouperDAOException
ns
- scope
- orderByName
-
GrouperDAOException
@Deprecated Stem findByName(java.lang.String name) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
@Deprecated Stem findByUuid(java.lang.String uuid) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
Stem findByName(java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
Stem findByUuid(java.lang.String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
java.util.Set<Stem> findByUuids(java.util.Collection<java.lang.String> uuids, QueryOptions queryOptions)
Stem findByName(java.lang.String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
Stem findByAlternateName(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
name
- exceptionIfNotFound
- queryOptions
-
GrouperDAOException
StemNotFoundException
Stem findByCurrentName(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
name
- exceptionIfNotFound
- queryOptions
-
GrouperDAOException
StemNotFoundException
Stem findByUuidOrName(java.lang.String uuid, java.lang.String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
uuid
- name
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
Stem findByUuidOrName(java.lang.String uuid, java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
uuid
- name
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
Stem findByUuid(java.lang.String uuid, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
GrouperDAOException
StemNotFoundException
java.util.Set<Stem> getAllStems() throws GrouperDAOException
GrouperDAOException
void renameStemAndChildren(java.util.Set<?> children) throws GrouperDAOException
GrouperDAOException
void update(Stem _ns) throws GrouperDAOException
GrouperDAOException
java.util.Set<Stem> findByCreatorOrModifier(Member member)
member
-
java.util.Set<Stem> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, java.util.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
java.util.Set<Stem> getAllStemsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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 NamingPrivilege of pre-canned sets
GrouperDAOException
java.util.Set<Stem> getAllStemsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
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
GrouperDAOException
java.util.Set<Stem> getAllStemsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, java.util.Collection<Field> userHasInGroupFields, java.util.Collection<Field> userHasInAttributeFields, java.util.Collection<java.lang.String> stemIds) throws GrouperDAOException
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
-
GrouperDAOException
java.util.Set<Stem> getAllStemsSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, boolean splitScope, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, java.util.Collection<Field> userHasInGroupFields, java.util.Collection<Field> userHasInAttributeFields, java.util.Collection<java.lang.String> stemIds, java.lang.String idOfAttributeDefName, java.lang.Object attributeValue, java.lang.Boolean attributeCheckReadOnAttributeDef) throws GrouperDAOException
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
GrouperDAOException
java.util.Set<Stem> getAllStemsSplitScopeSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions)
scope
- grouperSession
- subject
- privileges
- queryOptions
-
void updateLastMembershipChange(java.lang.String stemId)
stemId
- void updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
groupId
- void saveUpdateProperties(Stem stem)
stem
- java.util.Set<Stem> getAllStemsWithGroupsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.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
java.util.Set<Stem> findStemsInStemWithoutPrivilege(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)
grouperSession
- stemId
- scope
- subject
- privilege
- queryOptions
- considerAllSubject
- sqlLikeString
-
void moveStemSets(java.util.List<StemSet> ifHasStemSetsOfParentStem, java.util.List<StemSet> oldStemSets, java.lang.String currentStemId, int depthOfFirstParent)
ifHasStemSetsOfParentStem
- oldStemSets
- currentStemId
- depthOfFirstParent
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |