Class WsRestClassLookup

java.lang.Object
edu.internet2.middleware.grouper.ws.rest.WsRestClassLookup

public class WsRestClassLookup extends Object
  • Constructor Details

    • WsRestClassLookup

      public WsRestClassLookup()
  • Method Details

    • addAliasClass

      public static void addAliasClass(Class<?> theClass)
      add an alias by class simple name
      Parameters:
      theClass -
    • retrieveClassBySimpleName

      public static Class<?> retrieveClassBySimpleName(String simpleClassName, StringBuilder warnings)
      find a class object based on simple name, but put any errors to a warnings stringbuilder
      Parameters:
      simpleClassName -
      warnings - is where to add error message instead of exception
      Returns:
      the class object or null if blank
      Throws:
      WsInvalidQueryException - if there is an invalid entry
    • retrieveClassBySimpleName

      public static Class<?> retrieveClassBySimpleName(String simpleClassName)
      find a class object based on simple name
      Parameters:
      simpleClassName -
      Returns:
      the class object or null if blank
      Throws:
      WsInvalidQueryException - if there is an invalid entry
    • getAliasClassMap

      public static Map<String,Class<?>> getAliasClassMap()
      map of aliases to classes
      Returns:
      the alias to class map