|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3StemDAO
public class Hib3StemDAO
Basic Hibernate Stem
DAO interface.
Field Summary |
---|
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
hibernateInitted |
Constructor Summary | |
---|---|
Hib3StemDAO()
|
Method Summary | |
---|---|
void |
createChildAttributeDef(Stem _stem,
AttributeDef attributeDef)
|
void |
createChildAttributeDefName(Stem _parent,
AttributeDefName attributeDefName)
|
void |
createChildGroup(Stem _stem,
Group _group,
Member _member)
|
void |
createChildStem(Stem _child)
|
void |
createRootStem(Stem _root)
|
void |
createStemSetsForStem(java.lang.String stemId,
java.lang.String parentStemId)
|
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 exceptionIfNull,
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 exceptionIfNull,
QueryOptions queryOptions)
Find a stem by its current name only. |
Stem |
findByIdIndex(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
not a secure method, 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 by group |
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> totalStemIds)
|
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> totalStemIds,
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. |
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hib3StemDAO()
Method Detail |
---|
public void createChildGroup(Stem _stem, Group _group, Member _member) throws GrouperDAOException
createChildGroup
in interface StemDAO
_stem
- _group
- _member
-
GrouperDAOException
public void createChildAttributeDef(Stem _stem, AttributeDef attributeDef) throws GrouperDAOException
createChildAttributeDef
in interface StemDAO
_stem
- attributeDef
-
GrouperDAOException
public void createChildStem(Stem _child) throws GrouperDAOException
createChildStem
in interface StemDAO
_child
-
GrouperDAOException
public void createRootStem(Stem _root) throws GrouperDAOException
createRootStem
in interface StemDAO
_root
-
GrouperDAOException
public void createStemSetsForStem(java.lang.String stemId, java.lang.String parentStemId)
stemId
- parentStemId
- public void moveStemSets(java.util.List<StemSet> ifHasStemSetsOfParentStem, java.util.List<StemSet> oldStemSets, java.lang.String currentStemId, int depthOfFirstParent)
moveStemSets
in interface StemDAO
StemDAO.moveStemSets(java.util.List, java.util.List, java.lang.String, int)
public void delete(Stem _ns) throws GrouperDAOException
delete
in interface StemDAO
_ns
-
GrouperDAOException
public boolean exists(java.lang.String uuid) throws GrouperDAOException
exists
in interface StemDAO
uuid
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateDisplayExtension(java.lang.String val) throws GrouperDAOException
findAllByApproximateDisplayExtension
in interface StemDAO
val
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateDisplayExtension(java.lang.String val, java.lang.String scope) throws GrouperDAOException
findAllByApproximateDisplayExtension
in interface StemDAO
val
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateDisplayName(java.lang.String val) throws GrouperDAOException
findAllByApproximateDisplayName
in interface StemDAO
val
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateDisplayName(java.lang.String val, java.lang.String scope) throws GrouperDAOException
findAllByApproximateDisplayName
in interface StemDAO
val
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateExtension(java.lang.String val) throws GrouperDAOException
findAllByApproximateExtension
in interface StemDAO
val
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateExtension(java.lang.String val, java.lang.String scope) throws GrouperDAOException
findAllByApproximateExtension
in interface StemDAO
val
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateName(java.lang.String val) throws GrouperDAOException
findAllByApproximateName
in interface StemDAO
val
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateName(java.lang.String val, java.lang.String scope) throws GrouperDAOException
findAllByApproximateName
in interface StemDAO
val
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name) throws GrouperDAOException
findAllByApproximateNameAny
in interface StemDAO
name
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name, java.lang.String scope)
findAllByApproximateNameAny
in interface StemDAO
name
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByApproximateNameAny(java.lang.String name, java.lang.String scope, QueryOptions queryOptions) throws GrouperDAOException
findAllByApproximateNameAny
in interface StemDAO
name
- scope
- queryOptions
-
GrouperDAOException
public java.util.Set<Stem> findAllByCreatedAfter(java.util.Date d) throws GrouperDAOException
findAllByCreatedAfter
in interface StemDAO
d
-
GrouperDAOException
public java.util.Set<Stem> findAllByCreatedAfter(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByCreatedAfter
in interface StemDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Stem> findAllByCreatedBefore(java.util.Date d) throws GrouperDAOException
findAllByCreatedBefore
in interface StemDAO
d
-
GrouperDAOException
public java.util.Set<Stem> findAllByCreatedBefore(java.util.Date d, java.lang.String scope) throws GrouperDAOException
findAllByCreatedBefore
in interface StemDAO
d
- scope
-
GrouperDAOException
public java.util.Set<Group> findAllChildGroups(Stem ns, Stem.Scope scope) throws GrouperDAOException
StemDAO
findAllChildGroups
in interface StemDAO
GrouperDAOException
StemDAO.findAllChildGroups(Stem, Stem.Scope)
public java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope) throws GrouperDAOException, java.lang.IllegalStateException
StemDAO
findAllChildStems
in interface StemDAO
java.lang.IllegalStateException
- if unknown scope.
GrouperDAOException
StemDAO.findAllChildStems(Stem, Stem.Scope)
public java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, boolean orderByName)
StemDAO
findAllChildStems
in interface StemDAO
ns
- scope
- orderByName
-
GrouperDAOException
java.lang.IllegalStateException
- if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)
public java.util.Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions) throws GrouperDAOException, java.lang.IllegalStateException
StemDAO
findAllChildStems
in interface StemDAO
ns
- scope
- queryOptions
-
GrouperDAOException
java.lang.IllegalStateException
- if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)
@Deprecated public Stem findByName(java.lang.String name) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
-
GrouperDAOException
StemNotFoundException
public Stem findByName(java.lang.String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
@Deprecated public Stem findByUuid(java.lang.String uuid) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
-
GrouperDAOException
StemNotFoundException
public Stem findByUuid(java.lang.String uuid, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
public java.util.Set<Stem> getAllStems() throws GrouperDAOException
getAllStems
in interface StemDAO
GrouperDAOException
public void renameStemAndChildren(java.util.Set children) throws GrouperDAOException
renameStemAndChildren
in interface StemDAO
children
-
GrouperDAOException
public void update(Stem _ns) throws GrouperDAOException
update
in interface StemDAO
_ns
-
GrouperDAOException
public java.util.Set<Stem> findByCreatorOrModifier(Member member)
findByCreatorOrModifier
in interface StemDAO
member
-
public 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
StemDAO
findAllChildGroupsSecure
in interface StemDAO
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
StemDAO.findAllChildGroupsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public java.util.Set<Group> 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
StemDAO
findAllChildGroupsSecure
in interface StemDAO
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
StemDAO.findAllChildGroupsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, Set)
public java.util.Set<Group> findAllChildMembershipGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
findAllChildMembershipGroupsSecure
in interface StemDAO
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
StemDAO.findAllChildMembershipGroupsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public 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
StemDAO
findAllChildStemsSecure
in interface StemDAO
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
StemDAO.findAllChildStemsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public java.util.Set<Stem> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
getImmediateChildrenSecure
in interface StemDAO
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
StemDAO.getImmediateChildrenSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public java.util.Set<Stem> getAllStemsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllStemsSecure
in interface StemDAO
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
StemDAO.getAllStemsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public 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
getAllStemsSecure
in interface StemDAO
scope
- is blank for no scopeinPrivSet
- 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
StemDAO.getAllStemsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public void createChildAttributeDefName(Stem _parent, AttributeDefName attributeDefName) throws GrouperDAOException
createChildAttributeDefName
in interface StemDAO
_parent
- attributeDefName
-
GrouperDAOException
public void updateLastMembershipChange(java.lang.String stemId)
updateLastMembershipChange
in interface StemDAO
StemDAO.updateLastMembershipChange(java.lang.String)
public void updateLastMembershipChangeIncludeAncestorGroups(java.lang.String groupId)
StemDAO
updateLastMembershipChangeIncludeAncestorGroups
in interface StemDAO
StemDAO.updateLastMembershipChangeIncludeAncestorGroups(java.lang.String)
public Stem findByName(java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
public Stem findByCurrentName(java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
StemDAO
findByCurrentName
in interface StemDAO
name
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
public Stem findByAlternateName(java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
StemDAO
findByAlternateName
in interface StemDAO
name
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
public Stem findByUuid(java.lang.String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
public Stem findByUuidOrName(java.lang.String uuid, java.lang.String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByUuidOrName
in interface StemDAO
GrouperDAOException
StemNotFoundException
StemDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)
public Stem findByUuidOrName(java.lang.String uuid, java.lang.String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByUuidOrName
in interface StemDAO
GrouperDAOException
StemNotFoundException
StemDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)
public void saveUpdateProperties(Stem stem)
StemDAO
saveUpdateProperties
in interface StemDAO
StemDAO.saveUpdateProperties(edu.internet2.middleware.grouper.Stem)
public java.util.Set<Stem> findParentsByGroups(java.util.Collection<Group> groups)
findParentsByGroups
in interface StemDAO
groups
-
public java.util.Set<Stem> findByNames(java.util.Collection<java.lang.String> names, boolean exceptionOnNotFound) throws StemNotFoundException
StemDAO
findByNames
in interface StemDAO
StemNotFoundException
StemDAO.findByNames(java.util.Collection, boolean)
public java.util.Set<Stem> getAllStemsWithGroupsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
getAllStemsWithGroupsSecure
in interface StemDAO
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
StemDAO.getAllStemsWithGroupsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public 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)
StemDAO
findStemsInStemWithoutPrivilege
in interface StemDAO
StemDAO#findStemsInStemWithoutPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)
public java.util.Set<Stem> getAllStemsSplitScopeSecure(java.lang.String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions)
StemDAO
getAllStemsSplitScopeSecure
in interface StemDAO
StemDAO.getAllStemsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions)
public java.util.Set<Stem> findByUuids(java.util.Collection<java.lang.String> uuids, QueryOptions queryOptions)
StemDAO
findByUuids
in interface StemDAO
StemDAO.findByUuids(Collection, QueryOptions)
public Stem findByIdIndex(java.lang.Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException
findByIdIndex
in interface StemDAO
GroupNotFoundException
StemDAO.findByIdIndex(Long, boolean, QueryOptions)
public 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> totalStemIds) throws GrouperDAOException
getAllStemsSecure
in interface StemDAO
scope
- is blank for no scopeinPrivSet
- 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 attribute
GrouperDAOException
StemDAO#getAllStemsSecure(String, GrouperSession, Subject, Set, QueryOptions, boolean, String, Scope, boolean, Collection, Collection, Collection)
public 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> totalStemIds, java.lang.String idOfAttributeDefName, java.lang.Object attributeValue, java.lang.Boolean attributeCheckReadOnAttributeDef) throws GrouperDAOException
getAllStemsSecure
in interface StemDAO
scope
- is blank for no scopeinPrivSet
- 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 attributeidOfAttributeDefName
- 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
StemDAO#getAllStemsSecure(String, GrouperSession, Subject, Set, QueryOptions, boolean, String, Scope, boolean, Collection, Collection, Collection, String, Object, Boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |