com.liferay.portlet.webform.util
Class WebFormUtil

java.lang.Object
  extended by com.liferay.portlet.webform.util.WebFormUtil

public class WebFormUtil
extends java.lang.Object

View Source

Author:
Daniel Weisser, Jorge Ferrer, Alberto Montero, Julio Camarero

Constructor Summary
WebFormUtil()
           
 
Method Summary
static com.liferay.portlet.expando.model.ExpandoTable addTable(java.lang.String tableName)
           
static com.liferay.portlet.expando.model.ExpandoTable checkTable(java.lang.String tableName, javax.portlet.PortletPreferences preferences)
           
static java.lang.String getNewDatabaseTableName(java.lang.String portletId)
           
static int getTableRowsCount(java.lang.String tableName)
           
static java.lang.String[] split(java.lang.String s)
           
static java.lang.String[] split(java.lang.String s, java.lang.String delimiter)
           
static boolean validate(java.lang.String currentFieldValue, java.util.Map<java.lang.String,java.lang.String> fieldsMap, java.lang.String validationScript)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebFormUtil

public WebFormUtil()
Method Detail

addTable

public static com.liferay.portlet.expando.model.ExpandoTable addTable(java.lang.String tableName)
                                                               throws com.liferay.portal.PortalException,
                                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

checkTable

public static com.liferay.portlet.expando.model.ExpandoTable checkTable(java.lang.String tableName,
                                                                        javax.portlet.PortletPreferences preferences)
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

getNewDatabaseTableName

public static java.lang.String getNewDatabaseTableName(java.lang.String portletId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTableRowsCount

public static int getTableRowsCount(java.lang.String tableName)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

split

public static java.lang.String[] split(java.lang.String s)

split

public static java.lang.String[] split(java.lang.String s,
                                       java.lang.String delimiter)

validate

public static boolean validate(java.lang.String currentFieldValue,
                               java.util.Map<java.lang.String,java.lang.String> fieldsMap,
                               java.lang.String validationScript)
                        throws java.lang.Exception
Throws:
java.lang.Exception