edu.internet2.middleware.grouper.pit.finder
Class PITGroupFinder

java.lang.Object
  extended by edu.internet2.middleware.grouper.pit.finder.PITGroupFinder

public class PITGroupFinder
extends Object

Find point in time groups.

Author:
shilen $Id$

Constructor Summary
PITGroupFinder()
           
 
Method Summary
static PITGroup findById(String id, boolean exceptionIfNotFound)
          Find point in time groups by id.
static Set<PITGroup> findByName(String name, boolean exceptionIfNotFound, boolean orderByStartTime)
          Find point in time groups by name.
static Set<PITGroup> findByName(String name, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, boolean exceptionIfNotFound, boolean orderByStartTime)
          Find point in time groups by name and date ranges If the group currently exists, you must have view access to it.
static Set<PITGroup> findBySourceId(String id, boolean exceptionIfNotFound)
          Find point in time groups by id.
static Set<PITGroup> findBySourceId(String id, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, boolean exceptionIfNotFound)
          Find point in time groups by id and date ranges If the group currently exists, you must have view access to it.
static PITGroup findMostRecentByName(String name, boolean exceptionIfNotFound)
          Find the most recent point in time group by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PITGroupFinder

public PITGroupFinder()
Method Detail

findById

public static PITGroup findById(String id,
                                boolean exceptionIfNotFound)
Find point in time groups by id. If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
id -
exceptionIfNotFound -
Returns:
pit group

findBySourceId

public static Set<PITGroup> findBySourceId(String id,
                                           boolean exceptionIfNotFound)
Find point in time groups by id. If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
id -
exceptionIfNotFound -
Returns:
set of pit group

findByName

public static Set<PITGroup> findByName(String name,
                                       boolean exceptionIfNotFound,
                                       boolean orderByStartTime)
Find point in time groups by name. If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
name -
exceptionIfNotFound -
orderByStartTime -
Returns:
set of pit group

findMostRecentByName

public static PITGroup findMostRecentByName(String name,
                                            boolean exceptionIfNotFound)
Find the most recent point in time group by name. If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
name -
exceptionIfNotFound -
Returns:
pit group

findByName

public static Set<PITGroup> findByName(String name,
                                       Timestamp pointInTimeFrom,
                                       Timestamp pointInTimeTo,
                                       boolean exceptionIfNotFound,
                                       boolean orderByStartTime)
Find point in time groups by name and date ranges If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
name -
pointInTimeFrom -
pointInTimeTo -
exceptionIfNotFound -
orderByStartTime -
Returns:
set of pit group

findBySourceId

public static Set<PITGroup> findBySourceId(String id,
                                           Timestamp pointInTimeFrom,
                                           Timestamp pointInTimeTo,
                                           boolean exceptionIfNotFound)
Find point in time groups by id and date ranges If the group currently exists, you must have view access to it. If it has been deleted, you must be wheel or root.

Parameters:
id -
pointInTimeFrom -
pointInTimeTo -
exceptionIfNotFound -
Returns:
set of pit group