Class WsRestClassLookup
java.lang.Object
edu.internet2.middleware.grouper.ws.rest.WsRestClassLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAliasClass
(Class<?> theClass) add an alias by class simple namemap of aliases to classesstatic Class<?>
retrieveClassBySimpleName
(String simpleClassName) find a class object based on simple namestatic Class<?>
retrieveClassBySimpleName
(String simpleClassName, StringBuilder warnings) find a class object based on simple name, but put any errors to a warnings stringbuilder
-
Constructor Details
-
WsRestClassLookup
public WsRestClassLookup()
-
-
Method Details
-
addAliasClass
add an alias by class simple name- Parameters:
theClass
-
-
retrieveClassBySimpleName
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
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
map of aliases to classes- Returns:
- the alias to class map
-