Class GroupTypeFinder

java.lang.Object
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 $
  • Constructor Details

    • GroupTypeFinder

      public GroupTypeFinder()
  • Method Details

    • 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