Package edu.internet2.middleware.grouper
Class CompositeFinder
java.lang.Object
edu.internet2.middleware.grouper.CompositeFinder
Use this class to find a composite
Sample call
Composite c = CompositeFinder.findAsOwner(group, true)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignParentStemId
(String parentStemId1) assignPrivileges
(Set<Privilege> theGroups) assign privileges to filter by that the subject has on the owner groupassignStemScope
(Stem.Scope theScope) assignSubject
(Subject theSubject) this is the subject that has certain memberships in the query on owner groupstatic Composite
findAsOwner
(Group g) Deprecated.use findAsOwner(Group, boolean) instead.static Composite
findAsOwner
(Group g, boolean throwExceptionIfNotFound) find composites
-
Constructor Details
-
CompositeFinder
public CompositeFinder()
-
-
Method Details
-
assignParentStemId
- Parameters:
parentStemId1
-- Returns:
- this for chaining
-
assignStemScope
- Parameters:
theScope
-- Returns:
- this for chaining
-
findComposites
find composites- Returns:
- composites
-
assignPrivileges
assign privileges to filter by that the subject has on the owner group- Parameters:
theGroups
-- Returns:
- this for chaining
-
assignSubject
this is the subject that has certain memberships in the query on owner group- Parameters:
theSubject
-- Returns:
- this for chaining
-
findAsFactor
-
findAsOwner
@Deprecated public static Composite findAsOwner(Group g) throws CompositeNotFoundException, GroupNotFoundException Deprecated.use findAsOwner(Group, boolean) instead.- Parameters:
g
- Search on thisGroup
.- Returns:
- c
Composite
owned by thisGroup
. - Throws:
CompositeNotFoundException
GroupNotFoundException
- Since:
- 1.0
-
findAsOwner
public static Composite findAsOwner(Group g, boolean throwExceptionIfNotFound) throws CompositeNotFoundException, GroupNotFoundException - Parameters:
g
- Search on thisGroup
.throwExceptionIfNotFound
- true to throw exception if not found- Returns:
- c
Composite
owned by thisGroup
. - Throws:
CompositeNotFoundException
- if throwExceptionIfNotFound is true, and composite is not foundGroupNotFoundException
- if the group owner of composite cant be found (this is a problem)- Since:
- 1.0
-