public class Hib3StemDAO extends Hib3DAO implements StemDAO
Stem DAO interface.| Constructor and Description |
|---|
Hib3StemDAO() |
| Modifier and Type | Method and Description |
|---|---|
static String |
assignFilterToQuery(String scope,
Boolean splitScope,
StringBuilder whereClause,
ByHqlStatic byHqlStatic,
boolean findByUuidOrName,
String alias) |
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(String stemId,
String parentStemId) |
void |
delete(Stem _ns) |
boolean |
exists(String uuid) |
Set<Stem> |
findAllByApproximateDisplayExtension(String val) |
Set<Stem> |
findAllByApproximateDisplayExtension(String val,
String scope) |
Set<Stem> |
findAllByApproximateDisplayName(String val) |
Set<Stem> |
findAllByApproximateDisplayName(String val,
String scope) |
Set<Stem> |
findAllByApproximateExtension(String val) |
Set<Stem> |
findAllByApproximateExtension(String val,
String scope) |
Set<Stem> |
findAllByApproximateName(String val) |
Set<Stem> |
findAllByApproximateName(String val,
String scope) |
Set<Stem> |
findAllByApproximateNameAny(String name) |
Set<Stem> |
findAllByApproximateNameAny(String name,
String scope) |
Set<Stem> |
findAllByApproximateNameAny(String name,
String scope,
QueryOptions queryOptions) |
Set<Stem> |
findAllByCreatedAfter(Date d) |
Set<Stem> |
findAllByCreatedAfter(Date d,
String scope) |
Set<Stem> |
findAllByCreatedBefore(Date d) |
Set<Stem> |
findAllByCreatedBefore(Date d,
String scope) |
Set<Group> |
findAllChildGroups(Stem ns,
Stem.Scope scope)
Find all child groups within specified scope.
|
Set<Group> |
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 them
|
Set<Group> |
findAllChildGroupsSecure(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 them
|
Set<Group> |
findAllChildGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions,
Set<TypeOfGroup> typeOfGroups,
Boolean enabled)
(non-Javadoc)
|
Set<Group> |
findAllChildMembershipGroupsSecure(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 them
|
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope)
Find all child stems within specified scope.
|
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
boolean orderByName)
Find all child stems within specified scope.
|
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
QueryOptions queryOptions)
Find all child stems within specified scope.
|
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
QueryOptions queryOptions,
boolean checkSecurity)
Find all child stems within specified scope.
|
Set<Stem> |
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 them
|
Stem |
findByAlternateName(String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
Find a stem by its alternate name only.
|
Set<Stem> |
findByCreatorOrModifier(Member member)
find stems by creator or modifier
|
Stem |
findByCurrentName(String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
Find a stem by its current name only.
|
Stem |
findByIdIndex(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
not a secure method, find by id index
|
Stem |
findByName(String name)
Deprecated.
|
Stem |
findByName(String name,
boolean exceptionIfNull) |
Stem |
findByName(String name,
boolean exceptionIfNull,
QueryOptions queryOptions) |
Set<Stem> |
findByNames(Collection<String> names,
boolean exceptionOnNotFound)
find all stems by name
|
Stem |
findByUuid(String uuid)
Deprecated.
|
Stem |
findByUuid(String uuid,
boolean exceptionIfNull) |
Stem |
findByUuid(String uuid,
boolean exceptionIfNull,
QueryOptions queryOptions) |
Stem |
findByUuidOrName(String uuid,
String name,
boolean exceptionIfNull) |
Stem |
findByUuidOrName(String uuid,
String name,
boolean exceptionIfNull,
QueryOptions queryOptions) |
Set<Stem> |
findByUuids(Collection<String> uuids,
QueryOptions queryOptions)
note, dont pass more than 100 ids
|
Set<Stem> |
findParentsByGroups(Collection<Group> groups)
find all parent stems by group
|
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
|
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
|
Set<Stem> |
getAllStems() |
Set<Stem> |
getAllStemsSecure(GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions) |
Set<Stem> |
getAllStemsSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions) |
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> totalStemIds) |
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> totalStemIds,
String idOfAttributeDefName,
Object attributeValue,
Boolean attributeCheckReadOnAttributeDef) |
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) |
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) |
Set<Stem> |
getAllStemsSplitScopeSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions)
get all stems secure, split the scope by whitespace
|
Set<Stem> |
getAllStemsWithGroupsSecure(GrouperSession grouperSession,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get stems with groups that have privileges
|
Set<Stem> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get immediate children (stems) secure
|
static void |
massageSortFields(QuerySort querySort)
if there are sort fields, go through them, and replace name with nameDb, etc,
extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDb
|
static void |
massageSortFields(QuerySort querySort,
String alias)
if there are sort fields, go through them, and replace name with nameDb, etc,
extension for extensionDb, displayName with displayNameDb, and displayExtension with displayExtensionDb
|
void |
moveStemSets(List<StemSet> ifHasStemSetsOfParentStem,
List<StemSet> oldStemSets,
String currentStemId,
int depthOfFirstParent) |
void |
renameStemAndChildren(Set children) |
protected static void |
reset(HibernateSession hibernateSession) |
void |
saveUpdateProperties(Stem stem)
save the udpate properties which are auto saved when business method is called
|
void |
update(Stem _ns) |
void |
updateLastMembershipChange(String stemId) |
void |
updateLastMembershipChangeIncludeAncestorGroups(String groupId)
This will update last_membership_change for stem owners where group member in groupSet is the given groupId.
|
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, sessionpublic void createChildGroup(Stem _stem, Group _group, Member _member) throws GrouperDAOException
createChildGroup in interface StemDAO_stem - _group - _member - GrouperDAOExceptionpublic void createChildAttributeDef(Stem _stem, AttributeDef attributeDef) throws GrouperDAOException
createChildAttributeDef in interface StemDAO_stem - attributeDef - GrouperDAOExceptionpublic void createChildStem(Stem _child) throws GrouperDAOException
createChildStem in interface StemDAO_child - GrouperDAOExceptionpublic void createRootStem(Stem _root) throws GrouperDAOException
createRootStem in interface StemDAO_root - GrouperDAOExceptionpublic void createStemSetsForStem(String stemId, String parentStemId)
stemId - parentStemId - public void moveStemSets(List<StemSet> ifHasStemSetsOfParentStem, List<StemSet> oldStemSets, String currentStemId, int depthOfFirstParent)
moveStemSets in interface StemDAOStemDAO.moveStemSets(java.util.List, java.util.List, java.lang.String, int)public void delete(Stem _ns) throws GrouperDAOException
delete in interface StemDAO_ns - GrouperDAOExceptionpublic boolean exists(String uuid) throws GrouperDAOException
exists in interface StemDAOuuid - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateDisplayExtension(String val) throws GrouperDAOException
findAllByApproximateDisplayExtension in interface StemDAOval - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateDisplayExtension(String val, String scope) throws GrouperDAOException
findAllByApproximateDisplayExtension in interface StemDAOval - scope - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateDisplayName(String val) throws GrouperDAOException
findAllByApproximateDisplayName in interface StemDAOval - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateDisplayName(String val, String scope) throws GrouperDAOException
findAllByApproximateDisplayName in interface StemDAOval - scope - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateExtension(String val) throws GrouperDAOException
findAllByApproximateExtension in interface StemDAOval - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateExtension(String val, String scope) throws GrouperDAOException
findAllByApproximateExtension in interface StemDAOval - scope - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateName(String val) throws GrouperDAOException
findAllByApproximateName in interface StemDAOval - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateName(String val, String scope) throws GrouperDAOException
findAllByApproximateName in interface StemDAOval - scope - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateNameAny(String name) throws GrouperDAOException
findAllByApproximateNameAny in interface StemDAOname - GrouperDAOExceptionpublic static void massageSortFields(QuerySort querySort)
querySort - public static void massageSortFields(QuerySort querySort, String alias)
querySort - alias - is the hql aliaspublic Set<Stem> findAllByApproximateNameAny(String name, String scope)
findAllByApproximateNameAny in interface StemDAOname - scope - GrouperDAOExceptionpublic Set<Stem> findAllByApproximateNameAny(String name, String scope, QueryOptions queryOptions) throws GrouperDAOException
findAllByApproximateNameAny in interface StemDAOname - scope - queryOptions - GrouperDAOExceptionpublic Set<Stem> findAllByCreatedAfter(Date d) throws GrouperDAOException
findAllByCreatedAfter in interface StemDAOd - GrouperDAOExceptionpublic Set<Stem> findAllByCreatedAfter(Date d, String scope) throws GrouperDAOException
findAllByCreatedAfter in interface StemDAOd - scope - GrouperDAOExceptionpublic Set<Stem> findAllByCreatedBefore(Date d) throws GrouperDAOException
findAllByCreatedBefore in interface StemDAOd - GrouperDAOExceptionpublic Set<Stem> findAllByCreatedBefore(Date d, String scope) throws GrouperDAOException
findAllByCreatedBefore in interface StemDAOd - scope - GrouperDAOExceptionpublic Set<Group> findAllChildGroups(Stem ns, Stem.Scope scope) throws GrouperDAOException
StemDAOfindAllChildGroups in interface StemDAOGrouperDAOExceptionStemDAO.findAllChildGroups(Stem, Stem.Scope)public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope) throws GrouperDAOException, IllegalStateException
StemDAOfindAllChildStems in interface StemDAOIllegalStateException - if unknown scope.GrouperDAOExceptionStemDAO.findAllChildStems(Stem, Stem.Scope)public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, boolean orderByName)
StemDAOfindAllChildStems in interface StemDAOns - scope - orderByName - GrouperDAOExceptionIllegalStateException - if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions) throws GrouperDAOException, IllegalStateException
StemDAOfindAllChildStems in interface StemDAOns - scope - queryOptions - GrouperDAOExceptionIllegalStateException - if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, QueryOptions queryOptions, boolean checkSecurity) throws GrouperDAOException, IllegalStateException
StemDAOfindAllChildStems in interface StemDAOns - scope - queryOptions - checkSecurity - GrouperDAOExceptionIllegalStateException - if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)@Deprecated public Stem findByName(String name) throws GrouperDAOException, StemNotFoundException
findByName in interface StemDAOname - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByName(String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByName in interface StemDAOname - exceptionIfNull - GrouperDAOExceptionStemNotFoundException@Deprecated public Stem findByUuid(String uuid) throws GrouperDAOException, StemNotFoundException
findByUuid in interface StemDAOuuid - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByUuid(String uuid, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByUuid in interface StemDAOuuid - exceptionIfNull - GrouperDAOExceptionStemNotFoundExceptionpublic Set<Stem> getAllStems() throws GrouperDAOException
getAllStems in interface StemDAOGrouperDAOExceptionpublic void renameStemAndChildren(Set children) throws GrouperDAOException
renameStemAndChildren in interface StemDAOchildren - GrouperDAOExceptionpublic void update(Stem _ns) throws GrouperDAOException
update in interface StemDAO_ns - GrouperDAOExceptionprotected static void reset(HibernateSession hibernateSession) throws org.hibernate.HibernateException
hibernateSession - org.hibernate.HibernateExceptionpublic Set<Stem> findByCreatorOrModifier(Member member)
findByCreatorOrModifier in interface StemDAOmember - public Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAOfindAllChildGroupsSecure in interface StemDAOinPrivSet - is a set of privs that the subject must have one of to display a row. AccessPrivilege
has some pre-baked set constants availableGrouperDAOExceptionStemDAO.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 Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups) throws GrouperDAOException
StemDAOfindAllChildGroupsSecure in interface StemDAOinPrivSet - 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 allGrouperDAOExceptionStemDAO.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 Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions, Set<TypeOfGroup> typeOfGroups, Boolean enabled) throws GrouperDAOException
findAllChildGroupsSecure in interface StemDAOinPrivSet - 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 allGrouperDAOExceptionStemDAO.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, java.util.Set, java.lang.Boolean)public Set<Group> findAllChildMembershipGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAOfindAllChildMembershipGroupsSecure in interface StemDAOinPrivSet - is a set of privs that the subject must have one of to display a row. AccessPrivilege
has some pre-baked set constants availableGrouperDAOExceptionStemDAO.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 Set<Stem> findAllChildStemsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAOfindAllChildStemsSecure in interface StemDAOinPrivSet - is a set of privs that the subject must have one of to display a row. NamingPrivilege
has some pre-baked set constants availableGrouperDAOExceptionStemDAO.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 Set<Stem> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAOgetImmediateChildrenSecure in interface StemDAOinPrivSet - 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 setsGrouperDAOExceptionStemDAO.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 Set<Stem> getAllStemsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllStemsSecure in interface StemDAOinPrivSet - 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 setsGrouperDAOExceptionStemDAO.getAllStemsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllStemsSecure in interface StemDAOscope - 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 setsGrouperDAOExceptionStemDAO.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 static String assignFilterToQuery(String scope, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias)
byHqlStatic - scope - splitScope - default truewhereClause - findByUuidOrName - generally this is falsealias - e.g. theGroup whatever alias in hql querypublic void createChildAttributeDefName(Stem _parent, AttributeDefName attributeDefName) throws GrouperDAOException
createChildAttributeDefName in interface StemDAO_parent - attributeDefName - GrouperDAOExceptionpublic void updateLastMembershipChange(String stemId)
updateLastMembershipChange in interface StemDAOStemDAO.updateLastMembershipChange(java.lang.String)public void updateLastMembershipChangeIncludeAncestorGroups(String groupId)
StemDAOupdateLastMembershipChangeIncludeAncestorGroups in interface StemDAOStemDAO.updateLastMembershipChangeIncludeAncestorGroups(java.lang.String)public Stem findByName(String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByName in interface StemDAOname - exceptionIfNull - queryOptions - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByCurrentName(String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
StemDAOfindByCurrentName in interface StemDAOname - exceptionIfNull - queryOptions - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByAlternateName(String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
StemDAOfindByAlternateName in interface StemDAOname - exceptionIfNull - queryOptions - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByUuid(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByUuid in interface StemDAOuuid - exceptionIfNull - queryOptions - GrouperDAOExceptionStemNotFoundExceptionpublic Stem findByUuidOrName(String uuid, String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByUuidOrName in interface StemDAOGrouperDAOExceptionStemNotFoundExceptionStemDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)public Stem findByUuidOrName(String uuid, String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByUuidOrName in interface StemDAOGrouperDAOExceptionStemNotFoundExceptionStemDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)public void saveUpdateProperties(Stem stem)
StemDAOsaveUpdateProperties in interface StemDAOStemDAO.saveUpdateProperties(edu.internet2.middleware.grouper.Stem)public Set<Stem> findParentsByGroups(Collection<Group> groups)
findParentsByGroups in interface StemDAOgroups - public Set<Stem> findByNames(Collection<String> names, boolean exceptionOnNotFound) throws StemNotFoundException
StemDAOfindByNames in interface StemDAOStemNotFoundExceptionStemDAO.findByNames(java.util.Collection, boolean)public Set<Stem> getAllStemsWithGroupsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAOgetAllStemsWithGroupsSecure in interface StemDAOinPrivSet - 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 setsGrouperDAOExceptionStemDAO.getAllStemsWithGroupsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public Set<Stem> findStemsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
StemDAOfindStemsInStemWithoutPrivilege in interface StemDAOStemDAO#findStemsInStemWithoutPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)public Set<Stem> getAllStemsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
StemDAOgetAllStemsSplitScopeSecure in interface StemDAOStemDAO.getAllStemsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions)public Set<Stem> findByUuids(Collection<String> uuids, QueryOptions queryOptions)
StemDAOfindByUuids in interface StemDAOStemDAO.findByUuids(Collection, QueryOptions)public Stem findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GroupNotFoundException
findByIdIndex in interface StemDAOGroupNotFoundExceptionStemDAO.findByIdIndex(Long, boolean, QueryOptions)public 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> totalStemIds) throws GrouperDAOException
getAllStemsSecure in interface StemDAOscope - 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 attributeGrouperDAOExceptionStemDAO#getAllStemsSecure(String, GrouperSession, Subject, Set, QueryOptions, boolean, String, Scope, boolean, Collection, Collection, Collection)public 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> totalStemIds, String idOfAttributeDefName, Object attributeValue, Boolean attributeCheckReadOnAttributeDef) throws GrouperDAOException
getAllStemsSecure in interface StemDAOscope - 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 stemGrouperDAOExceptionStemDAO#getAllStemsSecure(String, GrouperSession, Subject, Set, QueryOptions, boolean, String, Scope, boolean, Collection, Collection, Collection, String, Object, Boolean)public 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
getAllStemsSecure in interface StemDAOscope - 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 stemattributeValuesOnAssignment - if looking for an attribute value on an assignment, could be multiple valuesGrouperDAOExceptionpublic 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
getAllStemsSecure in interface StemDAOscope - 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 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 assignedGrouperDAOExceptionedu.internet2.middleware.grouper.internal.dao.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, boolean, java.lang.String, edu.internet2.middleware.grouper.Stem.Scope, boolean, java.util.Collection, java.util.Collection, java.util.Collection, java.lang.String, java.lang.Object, java.lang.Boolean, java.util.Set, java.lang.String, java.lang.Object, java.util.Set)public Set<Stem> findStemsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
StemDAOfindStemsInStemWithPrivilege in interface StemDAOStemDAO#findStemsInStemWithPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)Copyright © 2016 Internet2. All rights reserved.