|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.StemFinder
public class StemFinder
Find stems within the Groups Registry.
Constructor Summary | |
---|---|
StemFinder()
|
Method Summary | |
---|---|
StemFinder |
addPrivilege(Privilege privilege)
add a privilege to filter by that the subject has on the stem |
StemFinder |
addStemId(java.lang.String stemId)
add a stem id to search for |
StemFinder |
addUserHasInAttributeField(Field theUserHasInAttributeField)
find stems where the user has these fields in an attribute |
StemFinder |
addUserHasInGroupField(Field theUserHasInGroupField)
find stems where the user has these fields in a group |
StemFinder |
assignAttributeCheckReadOnAttributeDef(boolean theAttributeCheckReadOnAttributeDef)
check read on attribute def when checking attribute def name |
StemFinder |
assignAttributeValue(java.lang.Object theValue)
find objects with this value |
StemFinder |
assignFindByUuidOrName(boolean theFindByUuidOrName)
if we are looking up a stem, only look by uuid or name |
StemFinder |
assignIdOfAttributeDefName(java.lang.String theAttributeDefNameId)
find stems that have this attribute assigned |
StemFinder |
assignNameOfAttributeDefName(java.lang.String theNameOfAttributeDefName)
find stems that have this attribute assigned |
StemFinder |
assignParentStemId(java.lang.String theParentStemId)
parent or ancestor stem of the stem |
StemFinder |
assignPrivileges(java.util.Set<Privilege> theStems)
assign privileges to filter by that the subject has on the stem |
StemFinder |
assignQueryOptions(QueryOptions theQueryOptions)
if sorting, paging, caching, etc |
StemFinder |
assignScope(java.lang.String theScope)
scope to look for stems Wildcards will be appended or percent is the wildcard |
StemFinder |
assignSplitScope(boolean theSplitScope)
if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope strings |
StemFinder |
assignStemIds(java.util.Collection<java.lang.String> theStemIds)
assign stem ids to search for |
StemFinder |
assignStemScope(Stem.Scope theStemScope)
if passing in a stem, this is the stem scope... |
StemFinder |
assignSubject(edu.internet2.middleware.subject.Subject theSubject)
this is the subject that has certain privileges or is in the query |
StemFinder |
assignUserHasInAttributeField(java.util.Collection<Field> theUserHasInAttributeFields)
find stems where the user has these fields in an attribute |
StemFinder |
assignUserHasInGroupField(java.util.Collection<Field> theUserHasInGroupFields)
find stems where the user has these fields in an attribute |
static Stem |
findByAlternateName(GrouperSession s,
java.lang.String name,
boolean exceptionOnNotFound,
QueryOptions queryOptions)
Find stem by its alternate name. |
static Stem |
findByCurrentName(GrouperSession s,
java.lang.String name,
boolean exceptionOnNotFound,
QueryOptions queryOptions)
Find stem by its current name. |
static Stem |
findByIdIndex(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
Find a stem within the registry by ID index. |
static Stem |
findByName(GrouperSession s,
java.lang.String name)
Deprecated. see overload |
static Stem |
findByName(GrouperSession s,
java.lang.String name,
boolean exceptionOnNotFound)
Find stem by name. |
static Stem |
findByName(GrouperSession s,
java.lang.String name,
boolean exceptionOnNotFound,
QueryOptions queryOptions)
Find stem by name. |
static Stem |
findByUuid(GrouperSession s,
java.lang.String uuid)
Deprecated. see overload |
static Stem |
findByUuid(GrouperSession s,
java.lang.String uuid,
boolean exceptionIfNull)
Get stem by uuid. |
static Stem |
findByUuid(GrouperSession s,
java.lang.String uuid,
boolean exceptionIfNull,
QueryOptions queryOptions)
Get stem by uuid. |
static java.util.Set<Stem> |
findByUuids(GrouperSession s,
java.util.Collection<java.lang.String> uuids,
QueryOptions queryOptions)
Get stems by uuids. |
static Stem |
findRootStem(GrouperSession s)
Find root stem of the Groups Registry. |
Stem |
findStem()
find the stem |
java.util.Set<Stem> |
findStems()
find all the stems |
static java.util.Set |
internal_findAllByApproximateDisplayExtension(GrouperSession s,
java.lang.String val)
|
static java.util.Set |
internal_findAllByApproximateDisplayName(GrouperSession s,
java.lang.String val)
|
static java.util.Set |
internal_findAllByApproximateExtension(GrouperSession s,
java.lang.String val)
|
static java.util.Set |
internal_findAllByApproximateName(GrouperSession s,
java.lang.String val)
|
static java.util.Set |
internal_findAllByApproximateNameAny(GrouperSession s,
java.lang.String val)
|
static java.util.Set |
internal_findAllByCreatedAfter(GrouperSession s,
java.util.Date d)
|
static java.util.Set |
internal_findAllByCreatedBefore(GrouperSession s,
java.util.Date d)
|
static Stem |
internal_findByName(java.lang.String name,
boolean exceptionIfNull)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StemFinder()
Method Detail |
---|
public StemFinder addUserHasInGroupField(Field theUserHasInGroupField)
theUserHasInGroupField
-
public StemFinder addUserHasInAttributeField(Field theUserHasInAttributeField)
theUserHasInAttributeField
-
public StemFinder assignUserHasInGroupField(java.util.Collection<Field> theUserHasInGroupFields)
theUserHasInGroupFields
-
public StemFinder assignUserHasInAttributeField(java.util.Collection<Field> theUserHasInAttributeFields)
theUserHasInAttributeFields
-
@Deprecated public static Stem findByName(GrouperSession s, java.lang.String name) throws StemNotFoundException
try { Stem stem = StemFinder.findByName(s, name); } catch (StemNotFoundException e) { // Stem not found }
s
- Search within this GrouperSession
contextname
- Find stem with this name.
Stem
object
StemNotFoundException
public static Stem findByName(GrouperSession s, java.lang.String name, boolean exceptionOnNotFound) throws StemNotFoundException
Stem stem = StemFinder.findByName(s, name, false);
s
- Search within this GrouperSession
contextname
- Find stem with this name.exceptionOnNotFound
-
Stem
object
StemNotFoundException
public static Stem findByName(GrouperSession s, java.lang.String name, boolean exceptionOnNotFound, QueryOptions queryOptions) throws StemNotFoundException
Stem stem = StemFinder.findByName(s, name, false);
s
- Search within this GrouperSession
contextname
- Find stem with this name.exceptionOnNotFound
- queryOptions
-
Stem
object
StemNotFoundException
public static Stem findByAlternateName(GrouperSession s, java.lang.String name, boolean exceptionOnNotFound, QueryOptions queryOptions) throws StemNotFoundException
Stem stem = StemFinder.findByAlternateName(s, name, false);
s
- Search within this GrouperSession
contextname
- Find stem with this alternate name.exceptionOnNotFound
- queryOptions
-
Stem
object
StemNotFoundException
public static Stem findByCurrentName(GrouperSession s, java.lang.String name, boolean exceptionOnNotFound, QueryOptions queryOptions) throws StemNotFoundException
Stem stem = StemFinder.findByCurrentName(s, name, false);
s
- Search within this GrouperSession
contextname
- Find stem with this name.exceptionOnNotFound
- queryOptions
-
Stem
object
StemNotFoundException
public static Stem findRootStem(GrouperSession s) throws StemNotFoundException
// Find the root stem. Stem rootStem = StemFinder.findRootStem(s);
s
- Search within this GrouperSession
context
Stem
object
GrouperException
StemNotFoundException
@Deprecated public static Stem findByUuid(GrouperSession s, java.lang.String uuid) throws StemNotFoundException
// Get the specified stem by uuid. try { Stem stem = StemFinder.findByUuid(s, uuid); } catch (StemNotFoundException e) { // Stem not found }
s
- Search within this GrouperSession
contextuuid
- Get stem with this UUID.
Stem
object
StemNotFoundException
public static Stem findByUuid(GrouperSession s, java.lang.String uuid, boolean exceptionIfNull) throws StemNotFoundException
// Get the specified stem by uuid. try { Stem stem = StemFinder.findByUuid(s, uuid); } catch (StemNotFoundException e) { // Stem not found }
s
- Search within this GrouperSession
contextuuid
- Get stem with this UUID.exceptionIfNull
-
Stem
object
StemNotFoundException
public static Stem findByUuid(GrouperSession s, java.lang.String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws StemNotFoundException
// Get the specified stem by uuid. try { Stem stem = StemFinder.findByUuid(s, uuid); } catch (StemNotFoundException e) { // Stem not found }
s
- Search within this GrouperSession
contextuuid
- Get stem with this UUID.exceptionIfNull
- queryOptions
-
Stem
object
StemNotFoundException
public static java.util.Set<Stem> findByUuids(GrouperSession s, java.util.Collection<java.lang.String> uuids, QueryOptions queryOptions) throws StemNotFoundException
// Get the specified stems by uuids. try { Setstems = StemFinder.findByUuids(s, uuids, null); } catch (StemNotFoundException e) { // Stem not found }
s
- Search within this GrouperSession
contextuuid
- Get stem with this UUID.exceptionIfNull
- queryOptions
-
Stem
object
StemNotFoundException
public static java.util.Set internal_findAllByApproximateDisplayExtension(GrouperSession s, java.lang.String val) throws QueryException
QueryException
public static java.util.Set internal_findAllByApproximateDisplayName(GrouperSession s, java.lang.String val) throws QueryException
QueryException
public static java.util.Set internal_findAllByApproximateExtension(GrouperSession s, java.lang.String val) throws QueryException
QueryException
public static java.util.Set internal_findAllByApproximateName(GrouperSession s, java.lang.String val) throws QueryException
QueryException
public static java.util.Set internal_findAllByApproximateNameAny(GrouperSession s, java.lang.String val) throws QueryException
QueryException
public static java.util.Set internal_findAllByCreatedAfter(GrouperSession s, java.util.Date d) throws QueryException
QueryException
public static java.util.Set internal_findAllByCreatedBefore(GrouperSession s, java.util.Date d) throws QueryException
QueryException
public static Stem internal_findByName(java.lang.String name, boolean exceptionIfNull) throws StemNotFoundException
name
- exceptionIfNull
-
StemNotFoundException
public static Stem findByIdIndex(java.lang.Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws StemNotFoundException
idIndex
- id index of stem to find.exceptionIfNotFound
- true if exception if not foundqueryOptions
-
Stem
StemNotFoundException
- if not found an exceptionIfNotFound is truepublic StemFinder assignFindByUuidOrName(boolean theFindByUuidOrName)
theFindByUuidOrName
-
public StemFinder assignAttributeCheckReadOnAttributeDef(boolean theAttributeCheckReadOnAttributeDef)
theAttributeCheckReadOnAttributeDef
-
public StemFinder assignAttributeValue(java.lang.Object theValue)
theValue
-
public StemFinder assignIdOfAttributeDefName(java.lang.String theAttributeDefNameId)
theAttributeDefNameId
-
public StemFinder assignNameOfAttributeDefName(java.lang.String theNameOfAttributeDefName)
theNameOfAttributeDefName
-
public StemFinder addPrivilege(Privilege privilege)
privilege
- should be AccessPrivilege
public StemFinder assignPrivileges(java.util.Set<Privilege> theStems)
theStems
-
public StemFinder assignQueryOptions(QueryOptions theQueryOptions)
theQueryOptions
-
public StemFinder assignScope(java.lang.String theScope)
theScope
-
public StemFinder assignSplitScope(boolean theSplitScope)
theSplitScope
-
public StemFinder assignSubject(edu.internet2.middleware.subject.Subject theSubject)
theSubject
-
public Stem findStem()
public java.util.Set<Stem> findStems()
public StemFinder assignParentStemId(java.lang.String theParentStemId)
theParentStemId
-
public StemFinder assignStemScope(Stem.Scope theStemScope)
theStemScope
-
public StemFinder addStemId(java.lang.String stemId)
stemId
-
public StemFinder assignStemIds(java.util.Collection<java.lang.String> theStemIds)
theStemIds
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |