gov.nih.nci.system.web.util
Class JSPUtils

java.lang.Object
  extended by gov.nih.nci.system.web.util.JSPUtils
Direct Known Subclasses:
LexEVSJSPUtils

public class JSPUtils
extends java.lang.Object

Author:
Dan Dumitru

Constructor Summary
JSPUtils(ServletContext context)
           
 
Method Summary
 java.util.List<java.lang.String> getAllFields(java.lang.String className)
          Get the list of all fields for the class
 java.util.List<java.lang.String> getAssociations(java.lang.String className)
           
 java.util.List<java.lang.String> getClassNames(java.lang.String packageName)
          Get all the class names within a package
static JSPUtils getJSPUtils(ServletContext context)
          Instantiate JSPUtils
 java.util.List<java.lang.String> getPackageNames()
          Get all the packages
 java.util.List<java.lang.reflect.Field> getSearchableFields(java.lang.String className)
          Get the list of all searchable Fields for the class
 boolean isSecurityEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSPUtils

public JSPUtils(ServletContext context)
Method Detail

getJSPUtils

public static JSPUtils getJSPUtils(ServletContext context)
Instantiate JSPUtils

Parameters:
context -
Returns:
JSPUtils

getPackageNames

public java.util.List<java.lang.String> getPackageNames()
Get all the packages

Returns:
all packages

getClassNames

public java.util.List<java.lang.String> getClassNames(java.lang.String packageName)
Get all the class names within a package

Parameters:
packageName -
Returns:
list of class names

getAllFields

public java.util.List<java.lang.String> getAllFields(java.lang.String className)
Get the list of all fields for the class

Parameters:
className -
Returns:
List of all fields for the given class

getSearchableFields

public java.util.List<java.lang.reflect.Field> getSearchableFields(java.lang.String className)
Get the list of all searchable Fields for the class

Parameters:
className -
Returns:
Field[] of all fields for the given class

getAssociations

public java.util.List<java.lang.String> getAssociations(java.lang.String className)
                                                 throws java.lang.Exception
Parameters:
className -
Returns:
A list of associations for className
Throws:
java.lang.Exception

isSecurityEnabled

public boolean isSecurityEnabled()