edu.internet2.middleware.grouper.ws.rest
Class WsRestClassLookup

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

public class WsRestClassLookup
extends Object


Constructor Summary
WsRestClassLookup()
           
 
Method Summary
static void addAliasClass(Class<?> theClass)
          add an alias by class simple name
static Map<String,Class<?>> getAliasClassMap()
          map of aliases to classes
static Class<?> retrieveClassBySimpleName(String simpleClassName)
          find a class object based on simple name
static Class<?> retrieveClassBySimpleName(String simpleClassName, StringBuilder warnings)
          find a class object based on simple name, but put any errors to a warnings stringbuilder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsRestClassLookup

public WsRestClassLookup()
Method Detail

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