edu.internet2.middleware.grouper
Class CompositeFinder

java.lang.Object
  extended by edu.internet2.middleware.grouper.CompositeFinder

public class CompositeFinder
extends Object

Since:
1.0
Version:
$Id: CompositeFinder.java,v 1.26 2009-03-15 06:37:21 mchyzer Exp $
Author:
blair christensen.

Method Summary
static Set<Composite> findAsFactor(Group g)
          Find where the specified Group is a Composite factor.
static Composite findAsOwner(Group g)
          Deprecated. use findAsOwner(Group, boolean) instead.
static Composite findAsOwner(Group g, boolean throwExceptionIfNotFound)
          Find Composite owned by this Group.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findAsFactor

public static Set<Composite> findAsFactor(Group g)
Find where the specified Group is a Composite factor.
 Set composites = CompositeFinder.findAsFactor(g);
 

Parameters:
g - Search on this Group.
Returns:
A set of Composite objects.
Since:
1.0

findAsOwner

@Deprecated
public static Composite findAsOwner(Group g)
                             throws CompositeNotFoundException,
                                    GroupNotFoundException
Deprecated. use findAsOwner(Group, boolean) instead.

Find Composite owned by this Group.
 Composite c = CompositeFinder.findAsOwner(g);
 

Parameters:
g - Search on this Group.
Returns:
c Composite owned by this Group.
Throws:
CompositeNotFoundException
GroupNotFoundException
Since:
1.0

findAsOwner

public static Composite findAsOwner(Group g,
                                    boolean throwExceptionIfNotFound)
                             throws CompositeNotFoundException,
                                    GroupNotFoundException
Find Composite owned by this Group.
 Composite c = CompositeFinder.findAsOwner(g, false);
 

Parameters:
g - Search on this Group.
throwExceptionIfNotFound - true to throw exception if not found
Returns:
c Composite owned by this Group.
Throws:
CompositeNotFoundException - if throwExceptionIfNotFound is true, and composite is not found
GroupNotFoundException - if the group owner of composite cant be found (this is a problem)
Since:
1.0