edu.internet2.middleware.grouper
Class GroupTypeFinder

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

public class GroupTypeFinder
extends Object

Find group types.

Version:
$Id: GroupTypeFinder.java,v 1.35 2009-03-15 06:37:21 mchyzer Exp $
Author:
blair christensen.

Constructor Summary
GroupTypeFinder()
           
 
Method Summary
static void clearCache()
          clear cache (e.g.
static GroupType find(String name)
          Deprecated. 
static GroupType find(String name, boolean exceptionIfNotFound)
          Deprecated.  
static Set findAll()
          Deprecated.  
static Set findAllAssignable()
          Deprecated.  
static GroupType findByUuid(String typeUuid, boolean exceptionIfNotFound)
          Deprecated.  
static Set<AttributeDefName> internal_findAllLegacyAttributes()
           
static GroupType internal_findGroupTypeByField(Field field, boolean exceptionIfNoGroupType)
           
static void internal_updateKnownTypes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTypeFinder

public GroupTypeFinder()
Method Detail

find

public static GroupType find(String name,
                             boolean exceptionIfNotFound)
                      throws SchemaException
Deprecated. 

Find a GroupType.

A SchemaException will be thrown if the type is not found.

 try {
   GroupType type = GroupTypeFinder.find(name);
 }
 catch (SchemaException eS) {
   // type does not exist
 }
 

Parameters:
name - Find GroupType with this name.
exceptionIfNotFound -
Returns:
GroupType
Throws:
SchemaException

findByUuid

public static GroupType findByUuid(String typeUuid,
                                   boolean exceptionIfNotFound)
                            throws SchemaException
Deprecated. 

Find a GroupType.

A SchemaException will be thrown if the type is not found.

 try {
   GroupType type = GroupTypeFinder.find(name);
 }
 catch (SchemaException eS) {
   // type does not exist
 }
 

Parameters:
typeUuid - Find GroupType with this uuid.
exceptionIfNotFound -
Returns:
GroupType
Throws:
SchemaException

find

@Deprecated
public static GroupType find(String name)
                      throws SchemaException
Deprecated. 

Find a GroupType.

A SchemaException will be thrown if the type is not found.

 try {
   GroupType type = GroupTypeFinder.find(name);
 }
 catch (SchemaException eS) {
   // type does not exist
 }
 

Parameters:
name - Find GroupType with this name.
Returns:
GroupType
Throws:
SchemaException

findAll

public static Set findAll()
Deprecated. 

Find all public group types.
 Set types = GroupTypeFinder.findAll();
 

Returns:
A Set of GroupType objects.

findAllAssignable

public static Set findAllAssignable()
Deprecated. 

Find all assignable group types.
 Set types = GroupTypeFinder.findAllAssignable();
 

Returns:
A Set of GroupType objects.

internal_updateKnownTypes

public static void internal_updateKnownTypes()

clearCache

public static void clearCache()
clear cache (e.g. if schema export)


internal_findGroupTypeByField

public static GroupType internal_findGroupTypeByField(Field field,
                                                      boolean exceptionIfNoGroupType)
Parameters:
field -
exceptionIfNoGroupType -
Returns:
groupType

internal_findAllLegacyAttributes

public static Set<AttributeDefName> internal_findAllLegacyAttributes()
Returns:
legacy attributes