com.jurismarches.vradi
Class VradiHelper
java.lang.Object
com.jurismarches.vradi.VradiHelper
public class VradiHelper
- extends Object
- Author:
- letellier
|
Method Summary |
static void |
addRequestToProperties(String request)
|
protected static void |
addToUserListProperties(String propertyName,
String value)
|
protected static void |
addToUserListProperties(String propertyName,
String value,
boolean replace)
|
protected static void |
addToUserListProperties(String propertyName,
String value,
boolean replace,
boolean inverse,
boolean uniqueValues)
|
static void |
addVradiListColumns(String value)
|
static void |
addVradiListCriteria(org.sharengo.wikitty.TreeNode value)
|
static void |
addVradiListThesaurus(org.sharengo.wikitty.TreeNode value)
|
static void |
executeQuery(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] thesaurus,
VradiFormPageDTO formPageDTO)
|
static Date |
getBeginMonthDate()
|
static String |
getEntityName(Object o)
|
static String |
getFieldTypeDescription(org.sharengo.wikitty.FieldType fieldType)
|
static FieldTypeEnum |
getFieldTypeEnum(org.sharengo.wikitty.FieldType type)
|
static Object[] |
getFormTypes()
|
static ComboBoxModel |
getFormTypesModel()
|
static Date |
getLastDayDate()
|
static String |
getLastItemOfXmlStream(String xmlStreamName)
|
static String |
getLastVersion()
Get the most recent version of Vradi already run by the user |
protected static Properties |
getProperties(File propertyFile)
|
static Status |
getStatus(String statusId)
|
static ListCellRenderer |
getStatusesRenderer()
|
protected static List<String> |
getUserListOfStringFromProperties(String propertyName)
|
protected static Properties |
getUserProperties()
|
static VradiConfig |
getVradiConfig()
|
static List<String> |
getVradiListColumns()
|
static List<String> |
getVradiListCriteria()
|
static List<String> |
getVradiListThesaurus()
|
static boolean |
isVersionNewer(String version)
|
static List<String> |
loadRequests()
|
protected static List<String> |
removeToUserListProperties(String propertyName,
String value)
|
static void |
removeVradiListColumns(String value)
|
static void |
removeVradiListCriteria(org.sharengo.wikitty.TreeNode value)
|
static void |
removeVradiListThesaurus(org.sharengo.wikitty.TreeNode value)
|
static void |
setLastItemOfXmlStream(String xmlStreamName,
String value)
|
static void |
setLastVersion(String lastVersion)
|
protected static Properties |
store(Properties property,
File file)
|
protected static void |
storeUserListProperties(String propertyName,
List<String> values)
|
protected static void |
storeUserProperties(Properties properties)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERIES
public static final String QUERIES
- See Also:
- Constant Field Values
XML_STREAMS
public static final String XML_STREAMS
- See Also:
- Constant Field Values
CRITERIAS
public static final String CRITERIAS
- See Also:
- Constant Field Values
THESAURUS
public static final String THESAURUS
- See Also:
- Constant Field Values
COLUMNS
public static final String COLUMNS
- See Also:
- Constant Field Values
LAST_VERSION
public static final String LAST_VERSION
- See Also:
- Constant Field Values
TYPE_DESCRIPTION
public static final String TYPE_DESCRIPTION
- See Also:
- Constant Field Values
TYPE_LAST_MODIFIED_DATE
public static final String TYPE_LAST_MODIFIED_DATE
- See Also:
- Constant Field Values
TYPE_LAST_MODIFIED_TIME
public static final String TYPE_LAST_MODIFIED_TIME
- See Also:
- Constant Field Values
TYPE_LAST_MODIFIED_BY
public static final String TYPE_LAST_MODIFIED_BY
- See Also:
- Constant Field Values
userProperties
public static Properties userProperties
querryProperties
public static Properties querryProperties
VradiHelper
public VradiHelper()
getVradiConfig
public static VradiConfig getVradiConfig()
getUserProperties
protected static Properties getUserProperties()
getProperties
protected static Properties getProperties(File propertyFile)
store
protected static Properties store(Properties property,
File file)
storeUserProperties
protected static void storeUserProperties(Properties properties)
getUserListOfStringFromProperties
protected static List<String> getUserListOfStringFromProperties(String propertyName)
storeUserListProperties
protected static void storeUserListProperties(String propertyName,
List<String> values)
addToUserListProperties
protected static void addToUserListProperties(String propertyName,
String value)
addToUserListProperties
protected static void addToUserListProperties(String propertyName,
String value,
boolean replace)
addToUserListProperties
protected static void addToUserListProperties(String propertyName,
String value,
boolean replace,
boolean inverse,
boolean uniqueValues)
removeToUserListProperties
protected static List<String> removeToUserListProperties(String propertyName,
String value)
addRequestToProperties
public static void addRequestToProperties(String request)
loadRequests
public static List<String> loadRequests()
setLastItemOfXmlStream
public static void setLastItemOfXmlStream(String xmlStreamName,
String value)
getLastItemOfXmlStream
public static String getLastItemOfXmlStream(String xmlStreamName)
getVradiListCriteria
public static List<String> getVradiListCriteria()
removeVradiListCriteria
public static void removeVradiListCriteria(org.sharengo.wikitty.TreeNode value)
addVradiListCriteria
public static void addVradiListCriteria(org.sharengo.wikitty.TreeNode value)
getVradiListThesaurus
public static List<String> getVradiListThesaurus()
removeVradiListThesaurus
public static void removeVradiListThesaurus(org.sharengo.wikitty.TreeNode value)
addVradiListThesaurus
public static void addVradiListThesaurus(org.sharengo.wikitty.TreeNode value)
getVradiListColumns
public static List<String> getVradiListColumns()
removeVradiListColumns
public static void removeVradiListColumns(String value)
addVradiListColumns
public static void addVradiListColumns(String value)
getEntityName
public static String getEntityName(Object o)
getFieldTypeEnum
public static FieldTypeEnum getFieldTypeEnum(org.sharengo.wikitty.FieldType type)
getFormTypesModel
public static ComboBoxModel getFormTypesModel()
getFormTypes
public static Object[] getFormTypes()
getStatus
public static Status getStatus(String statusId)
getStatusesRenderer
public static ListCellRenderer getStatusesRenderer()
getLastDayDate
public static Date getLastDayDate()
getBeginMonthDate
public static Date getBeginMonthDate()
executeQuery
public static void executeQuery(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] thesaurus,
VradiFormPageDTO formPageDTO)
getFieldTypeDescription
public static String getFieldTypeDescription(org.sharengo.wikitty.FieldType fieldType)
getLastVersion
public static String getLastVersion()
- Get the most recent version of Vradi already run by the user
- Returns:
- the most recent version that the user has ever launched
setLastVersion
public static void setLastVersion(String lastVersion)
isVersionNewer
public static boolean isVersionNewer(String version)
Copyright © 2009-2010 JurisMarches. All Rights Reserved.