public class CompositeFinder extends Object
Use this class to find a composite
Sample call
Composite c = CompositeFinder.findAsOwner(group, true)
Constructor and Description |
---|
CompositeFinder() |
Modifier and Type | Method and Description |
---|---|
CompositeFinder |
assignParentStemId(String parentStemId1) |
CompositeFinder |
assignPrivileges(Set<Privilege> theGroups)
assign privileges to filter by that the subject has on the owner group
|
CompositeFinder |
assignStemScope(Stem.Scope theScope) |
CompositeFinder |
assignSubject(Subject theSubject)
this is the subject that has certain memberships in the query on owner group
|
static Set<Composite> |
findAsFactor(Group g)
|
static Composite |
findAsOwner(Group g)
Deprecated.
use findAsOwner(Group, boolean) instead.
|
static Composite |
findAsOwner(Group g,
boolean throwExceptionIfNotFound)
|
Set<Composite> |
findComposites()
find composites
|
public CompositeFinder assignParentStemId(String parentStemId1)
parentStemId1
- public CompositeFinder assignStemScope(Stem.Scope theScope)
theScope
- public CompositeFinder assignPrivileges(Set<Privilege> theGroups)
theGroups
- public CompositeFinder assignSubject(Subject theSubject)
theSubject
- @Deprecated public static Composite findAsOwner(Group g) throws CompositeNotFoundException, GroupNotFoundException
g
- Search on this Group
.Composite
owned by this Group
.CompositeNotFoundException
GroupNotFoundException
public static Composite findAsOwner(Group g, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GroupNotFoundException
g
- Search on this Group
.throwExceptionIfNotFound
- true to throw exception if not foundComposite
owned by this Group
.CompositeNotFoundException
- if throwExceptionIfNotFound is true, and composite is not foundGroupNotFoundException
- if the group owner of composite cant be found (this is a problem)Copyright © 2016 Internet2. All rights reserved.