com.taggercat.util
Class ELFunctions

java.lang.Object
  extended by com.taggercat.util.ELFunctions

public class ELFunctions
extends java.lang.Object

This class includes extension functions for TaggerCat's EL.

 

Field Summary
static long MILLISECONDS_PER_DAY
          Number of milliseconds for 1 day (86400000).
static long MILLISECONDS_PER_HOUR
          Number of milliseconds for 1 hour.
static long MILLISECONDS_PER_MINUTE
          Number of milliseconds for 1 minute (60000).
static long MILLISECONDS_PER_SECOND
          Number of milliseconds for 1 second (1000).
static long MILLISECONDS_PER_WEEK
          Number of milliseconds for 1 week (604800000).
 
Constructor Summary
ELFunctions()
           
 
Method Summary
static java.lang.String ageAsString(java.util.Date fromDate)
          Returns a string representation of the delta time.
static java.lang.String autoFilterValue(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
          Returns the current auto-filter on the specified DSN and property Name.
static java.lang.Double avg(com.taggercat.el.ELContext elContext, java.lang.String dsnPropertyName)
           
static java.lang.Double avg(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
          Gets the average of properties from the named DS and property
static java.lang.Double avg(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.String predicate)
          Gets the average of properties from the named DS and property name that match the predicate expression.
static java.lang.Integer count(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String predicate)
          Gets a count of records in the data source that match the predicate expression.
static TCEntity currentEntity(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns the current TCEntity ( the one after the current TCEntity ) in the named ds.
static java.lang.String dataFieldUID(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
           
static java.lang.String dataFieldUID(java.lang.String dsn, java.lang.String propertyName)
          Return the UID of the specified property and datasource; used in JSP EL Functions
static java.lang.Object dataValue(TCEntity entity, java.lang.String propertyName)
          Returns the value of the named property on the specified entity.
static DataSource ds(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns the named data source if it exists; otherwise null.
static java.lang.String dsQbfValue(com.taggercat.el.ELContext elContext, java.lang.String dsnPropertyName)
          Returns the current QBF value for the named data source and property if it exists; otherwise null.
static java.lang.String dsQbfValue(java.lang.String dsnPropertyName)
          Returns the current QBF value for the named data source and property if it exists; otherwise null.
static java.lang.Boolean empty(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns true if the named data source is empty ( has no rows ).
static java.lang.String encryptPassword(java.lang.String password)
          Returns the encrypted version of the specified password value.
static java.lang.String extendedProperty(com.taggercat.el.ELContext elContext, java.lang.String entityName, java.lang.String extendedPropertyName)
          Returns the extended property on the named entityName.
static java.lang.String extendedProperty(com.taggercat.el.ELContext elContext, java.lang.String entityName, java.lang.String propertyName, java.lang.String extendedPropertyName)
          Returns the extended property on the named entityName and propertyName.
static TCEntity findFirst(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String predicate)
          Finds the first entity in the data source that match the predicate expression.
static com.taggercat.el.ELContext getELContext()
           
static java.lang.Object getSQLValue(com.taggercat.el.ELContext elContext, java.lang.String sql)
          Executes an arbitrary SQL statement and returns the value from the first column of the first result row.
static com.taggercat.metadata.MetaDataReader getTenantMetaData()
           
static java.lang.Object getTenantObject(java.lang.String key)
           
static TCEntity getUniqueResult(com.taggercat.el.ELContext elContext, java.lang.String hql)
          Executes an arbitrary HQL statement and returns the unique entity instance.
static java.lang.Object getUserSetting(java.lang.String name)
           
static java.lang.Object getUserSetting(java.lang.String name, java.lang.Object defaultValue)
           
static java.lang.Boolean hasPermission(com.taggercat.el.ELContext elContext, java.lang.String dataAction, java.lang.String entityName)
          Returns true of the current user has the specified action permission on the named entity.
static java.lang.Boolean hasPermission(com.taggercat.el.ELContext elContext, java.lang.String dataAction, java.lang.String entityName, java.lang.String propertyName)
          Returns true of the current user has the specified action permission on the named entity.
static java.lang.Boolean hasUnsavedChanges(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns true if there are unsaved changes on the specified data source.
static java.lang.Boolean isGroupMember(com.taggercat.el.ELContext elContext, java.lang.String groupNames)
          Returns true if the current user is a member of one of the group names.
static java.lang.Boolean isUserInRole(com.taggercat.el.ELContext elContext, java.lang.String roleNames)
          Returns true if the user is a member of the specified role ( group ) name.
static java.util.List<java.lang.Object> list(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.String predicate)
          Gets a list of properties values from the named DS and property name that match the expression.
static java.lang.Double max(com.taggercat.el.ELContext elContext, java.lang.String dsnPropertyName)
           
static java.lang.Double max(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
          Gets the max of properties from the named DS and property
static java.lang.Double max(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.String predicate)
          Gets the max of property values from the named DS and property name that match the predicate expression.
static java.lang.Double max(java.lang.Number a, java.lang.Number b)
          The max of the two Number values.
static java.lang.Double min(com.taggercat.el.ELContext elContext, java.lang.String dsnPropertyName)
           
static java.lang.Double min(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
          Gets the minimum of properties from the named DS and property
static java.lang.Double min(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.String predicate)
          Gets the min of property values from the named DS and property name that match the predicate expression.
static java.lang.Double min(java.lang.Number a, java.lang.Number b)
          The min of the two Number values.
static TCEntity nextEntity(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns the next TCEntity ( the one after the current TCEntity ) in the named ds.
static double roundDouble(double d, int places)
           
static java.lang.Integer rowCount(com.taggercat.el.ELContext elContext, java.lang.String dsn)
          Returns the number of rows in the data source.
static java.lang.Double sum(com.taggercat.el.ELContext elContext, java.lang.String dsnPropertyName)
           
static java.lang.Double sum(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName)
          Gets the sum of properties from the named DS and property
static java.lang.Double sum(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.String predicate)
          Gets the sum of properties from the named DS and property name that match the predicate expression.
static java.lang.String tenantName()
           
static void updateProperty(com.taggercat.el.ELContext elContext, java.lang.String dsn, java.lang.String propertyName, java.lang.Object newValue)
          Sets a property on the current entity in the data source
static long userId(com.taggercat.el.ELContext elContext)
          Returns the current user id.
static java.lang.String userName(com.taggercat.el.ELContext elContext)
          Returns the current user name.
static java.lang.Boolean validExpression(com.taggercat.el.ELContext elContext, java.lang.String expression)
          This function is used to validate the syntax of the expression string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MILLISECONDS_PER_SECOND

public static final long MILLISECONDS_PER_SECOND
Number of milliseconds for 1 second (1000).

See Also:
Constant Field Values

MILLISECONDS_PER_MINUTE

public static final long MILLISECONDS_PER_MINUTE
Number of milliseconds for 1 minute (60000).

See Also:
Constant Field Values

MILLISECONDS_PER_HOUR

public static final long MILLISECONDS_PER_HOUR
Number of milliseconds for 1 hour.

See Also:
Constant Field Values

MILLISECONDS_PER_DAY

public static final long MILLISECONDS_PER_DAY
Number of milliseconds for 1 day (86400000).

See Also:
Constant Field Values

MILLISECONDS_PER_WEEK

public static final long MILLISECONDS_PER_WEEK
Number of milliseconds for 1 week (604800000).

See Also:
Constant Field Values
Constructor Detail

ELFunctions

public ELFunctions()
Method Detail

ds

public static DataSource ds(com.taggercat.el.ELContext elContext,
                            java.lang.String dsn)
                     throws com.taggercat.el.ParseException
Returns the named data source if it exists; otherwise null.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn - the data source name
Returns:
DataSource instance if it exists

dsQbfValue

public static java.lang.String dsQbfValue(java.lang.String dsnPropertyName)
                                   throws com.taggercat.el.ParseException
Returns the current QBF value for the named data source and property if it exists; otherwise null.

Throws:
com.taggercat.el.ParseException
Parameters:
dsnPropertyName - the dot delimited data source and property name
Returns:
the current QBF value for the specified property

dsQbfValue

public static java.lang.String dsQbfValue(com.taggercat.el.ELContext elContext,
                                          java.lang.String dsnPropertyName)
                                   throws com.taggercat.el.ParseException
Returns the current QBF value for the named data source and property if it exists; otherwise null.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsnPropertyName - the dot delimited data source and property name
Returns:
the current QBF value for the specified property

empty

public static java.lang.Boolean empty(com.taggercat.el.ELContext elContext,
                                      java.lang.String dsn)
                               throws com.taggercat.el.ParseException
Returns true if the named data source is empty ( has no rows ).

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn - the data source name
Returns:
true if the named data source is empty ( has no rows )

dataValue

public static java.lang.Object dataValue(TCEntity entity,
                                         java.lang.String propertyName)
Returns the value of the named property on the specified entity.

Parameters:
entity - the entity instance
propertyName - the property name
Returns:
the value of the named property on the specified entity

dataFieldUID

public static java.lang.String dataFieldUID(com.taggercat.el.ELContext elContext,
                                            java.lang.String dsn,
                                            java.lang.String propertyName)
                                     throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

dataFieldUID

public static java.lang.String dataFieldUID(java.lang.String dsn,
                                            java.lang.String propertyName)
Return the UID of the specified property and datasource; used in JSP EL Functions

Parameters:
dsn -
propertyName -
Returns:
the UID of the specified property and datasource; used in JSP EL Functions

currentEntity

public static TCEntity currentEntity(com.taggercat.el.ELContext elContext,
                                     java.lang.String dsn)
                              throws com.taggercat.el.ParseException
Returns the current TCEntity ( the one after the current TCEntity ) in the named ds.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn - the data source name
Returns:
the current TCEntity in the named ds

nextEntity

public static TCEntity nextEntity(com.taggercat.el.ELContext elContext,
                                  java.lang.String dsn)
                           throws com.taggercat.el.ParseException
Returns the next TCEntity ( the one after the current TCEntity ) in the named ds.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn - the data source name
Returns:
the next TCEntity ( the one after the current TCEntity ) in the named ds

autoFilterValue

public static java.lang.String autoFilterValue(com.taggercat.el.ELContext elContext,
                                               java.lang.String dsn,
                                               java.lang.String propertyName)
                                        throws com.taggercat.el.ParseException
Returns the current auto-filter on the specified DSN and property Name.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn - the ds name
propertyName - the property name
Returns:
the current auto-filter on the specified DSN and property Name

getSQLValue

public static java.lang.Object getSQLValue(com.taggercat.el.ELContext elContext,
                                           java.lang.String sql)
                                    throws com.taggercat.el.ParseException
Executes an arbitrary SQL statement and returns the value from the first column of the first result row. This is typically used to get counts etc.

Security Alert: This EL method opens up a big security hole in your application. You can close this my re-registering the same function name in you context initialization process.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
sql - the SQL statement
Returns:
the value of the first TCEntity and column

getUniqueResult

public static TCEntity getUniqueResult(com.taggercat.el.ELContext elContext,
                                       java.lang.String hql)
                                throws com.taggercat.el.ParseException
Executes an arbitrary HQL statement and returns the unique entity instance. This is typically used to get a unique instance to assign in a default value rule.

Security Alert: This EL method opens up a big security hole in your application. You can close this my re-registering the same function name in you context initialization process.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
hql - the HQL statement
Returns:
the TCEntity

hasPermission

public static java.lang.Boolean hasPermission(com.taggercat.el.ELContext elContext,
                                              java.lang.String dataAction,
                                              java.lang.String entityName)
                                       throws com.taggercat.el.ParseException
Returns true of the current user has the specified action permission on the named entity.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dataAction - action names are one of READ, INSERT, UPDATE, or DELETE
entityName -
Returns:
true of the current user has the specified action permission on the named entity

hasPermission

public static java.lang.Boolean hasPermission(com.taggercat.el.ELContext elContext,
                                              java.lang.String dataAction,
                                              java.lang.String entityName,
                                              java.lang.String propertyName)
                                       throws com.taggercat.el.ParseException
Returns true of the current user has the specified action permission on the named entity.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dataAction - action names are one of READ, INSERT, UPDATE, or DELETE
entityName -
propertyName -
Returns:
rue of the current user has the specified action permission on the named entity.

hasUnsavedChanges

public static java.lang.Boolean hasUnsavedChanges(com.taggercat.el.ELContext elContext,
                                                  java.lang.String dsn)
                                           throws com.taggercat.el.ParseException
Returns true if there are unsaved changes on the specified data source.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext - the EL context
dsn -
Returns:
true if there are unsaved changes on the specified data source

isUserInRole

public static java.lang.Boolean isUserInRole(com.taggercat.el.ELContext elContext,
                                             java.lang.String roleNames)
Returns true if the user is a member of the specified role ( group ) name.

Parameters:
elContext - the EL context
roleNames - a comma separated list of role ( group ) names.
Returns:
true if the user is a member of the specified role ( group ) name

isGroupMember

public static java.lang.Boolean isGroupMember(com.taggercat.el.ELContext elContext,
                                              java.lang.String groupNames)
Returns true if the current user is a member of one of the group names. This function is synonymous with the isUserInRole() function.

Parameters:
elContext -
groupNames - a comma separated list of group names
Returns:
true if the current user is a member of one of the group names

updateProperty

public static void updateProperty(com.taggercat.el.ELContext elContext,
                                  java.lang.String dsn,
                                  java.lang.String propertyName,
                                  java.lang.Object newValue)
                           throws com.taggercat.el.ParseException
Sets a property on the current entity in the data source

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
newValue - the value to set ( not an expression )

userName

public static java.lang.String userName(com.taggercat.el.ELContext elContext)
Returns the current user name.

Parameters:
elContext - the EL context
Returns:
the current user name

userId

public static long userId(com.taggercat.el.ELContext elContext)
Returns the current user id.

Parameters:
elContext - the EL context
Returns:
the current user id

encryptPassword

public static java.lang.String encryptPassword(java.lang.String password)
Returns the encrypted version of the specified password value.

Parameters:
password - the password to encrypt
Returns:
the encrypted password

list

public static java.util.List<java.lang.Object> list(com.taggercat.el.ELContext elContext,
                                                    java.lang.String dsn,
                                                    java.lang.String propertyName,
                                                    java.lang.String predicate)
                                             throws com.taggercat.el.ParseException
Gets a list of properties values from the named DS and property name that match the expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
predicate - the expression to evaluate on each TCEntity
Returns:
the list of properties

findFirst

public static TCEntity findFirst(com.taggercat.el.ELContext elContext,
                                 java.lang.String dsn,
                                 java.lang.String predicate)
                          throws com.taggercat.el.ParseException
Finds the first entity in the data source that match the predicate expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
predicate - the expression to evaluate on each TCEntity
Returns:
the count value of the specified property

count

public static java.lang.Integer count(com.taggercat.el.ELContext elContext,
                                      java.lang.String dsn,
                                      java.lang.String predicate)
                               throws com.taggercat.el.ParseException
Gets a count of records in the data source that match the predicate expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
predicate - the expression to evaluate on each TCEntity
Returns:
the count value of the specified property

rowCount

public static java.lang.Integer rowCount(com.taggercat.el.ELContext elContext,
                                         java.lang.String dsn)
                                  throws com.taggercat.el.ParseException
Returns the number of rows in the data source.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
Returns:
the number of rows

extendedProperty

public static java.lang.String extendedProperty(com.taggercat.el.ELContext elContext,
                                                java.lang.String entityName,
                                                java.lang.String extendedPropertyName)
                                         throws com.taggercat.el.ParseException
Returns the extended property on the named entityName.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
entityName - the entity name
extendedPropertyName - the property name
Returns:
the extended property value, or null if not set

extendedProperty

public static java.lang.String extendedProperty(com.taggercat.el.ELContext elContext,
                                                java.lang.String entityName,
                                                java.lang.String propertyName,
                                                java.lang.String extendedPropertyName)
                                         throws com.taggercat.el.ParseException
Returns the extended property on the named entityName and propertyName.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
entityName - the entity name
propertyName - the property name
extendedPropertyName - the property name
Returns:
the extended property value, or null if not set

avg

public static java.lang.Double avg(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsnPropertyName)
                            throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

avg

public static java.lang.Double avg(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName)
                            throws com.taggercat.el.ParseException
Gets the average of properties from the named DS and property

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
Returns:
the list of properties

avg

public static java.lang.Double avg(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName,
                                   java.lang.String predicate)
                            throws com.taggercat.el.ParseException
Gets the average of properties from the named DS and property name that match the predicate expression. Null values do not contribute to the average values.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
predicate - the expression to evaluate on each TCEntity
Returns:
the average value of the specified property

max

public static java.lang.Double max(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsnPropertyName)
                            throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

max

public static java.lang.Double max(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName)
                            throws com.taggercat.el.ParseException
Gets the max of properties from the named DS and property

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
Returns:
the list of properties

max

public static java.lang.Double max(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName,
                                   java.lang.String predicate)
                            throws com.taggercat.el.ParseException
Gets the max of property values from the named DS and property name that match the predicate expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
predicate - the expression to evaluate on each TCEntity
Returns:
the maximum value of the specified property

min

public static java.lang.Double min(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsnPropertyName)
                            throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

min

public static java.lang.Double min(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName)
                            throws com.taggercat.el.ParseException
Gets the minimum of properties from the named DS and property

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
Returns:
the list of properties

min

public static java.lang.Double min(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName,
                                   java.lang.String predicate)
                            throws com.taggercat.el.ParseException
Gets the min of property values from the named DS and property name that match the predicate expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
predicate - the expression to evaluate on each TCEntity
Returns:
the minimum value of the specified property

sum

public static java.lang.Double sum(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsnPropertyName)
                            throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

sum

public static java.lang.Double sum(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName,
                                   java.lang.String predicate)
                            throws com.taggercat.el.ParseException
Gets the sum of properties from the named DS and property name that match the predicate expression.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
predicate - the expression to evaluate on each TCEntity
Returns:
the list of properties

sum

public static java.lang.Double sum(com.taggercat.el.ELContext elContext,
                                   java.lang.String dsn,
                                   java.lang.String propertyName)
                            throws com.taggercat.el.ParseException
Gets the sum of properties from the named DS and property

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
dsn - the data source name
propertyName - the property name
Returns:
the list of properties

validExpression

public static java.lang.Boolean validExpression(com.taggercat.el.ELContext elContext,
                                                java.lang.String expression)
                                         throws com.taggercat.el.ParseException
This function is used to validate the syntax of the expression string.

Throws:
com.taggercat.el.ParseException
Parameters:
elContext -
expression -
Returns:
true if the expression is syntactically correct.

ageAsString

public static java.lang.String ageAsString(java.util.Date fromDate)
Returns a string representation of the delta time. This function is currently used in reporting the age of ATOM feeds. For example: 3 weeks,6 days ago and 4 days,10 hours ago, and 1 hour,20 minutes ago But, the small stuff is progressively dropped.

Parameters:
fromDate -
Returns:
the age of the date in a string format

roundDouble

public static final double roundDouble(double d,
                                       int places)

getUserSetting

public static java.lang.Object getUserSetting(java.lang.String name)

getUserSetting

public static java.lang.Object getUserSetting(java.lang.String name,
                                              java.lang.Object defaultValue)

getELContext

public static com.taggercat.el.ELContext getELContext()
                                               throws com.taggercat.el.ParseException
Throws:
com.taggercat.el.ParseException

tenantName

public static java.lang.String tenantName()

getTenantMetaData

public static com.taggercat.metadata.MetaDataReader getTenantMetaData()

getTenantObject

public static java.lang.Object getTenantObject(java.lang.String key)

max

public static java.lang.Double max(java.lang.Number a,
                                   java.lang.Number b)
The max of the two Number values. This is duplicated here due to a restriction in the El that all functions of the same name must be declared in one class file.

Parameters:
a - one of the numbers
b - the other number
Returns:
the max of the two values

min

public static java.lang.Double min(java.lang.Number a,
                                   java.lang.Number b)
The min of the two Number values.

Parameters:
a - one of the numbers
b - the other number
Returns:
the min of the two values