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.TreeNodeImpl value)
|
static void |
addVradiListThesaurus(org.sharengo.wikitty.TreeNodeImpl value)
|
static VradiFormPageDTO |
executeQuery(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] thesaurus,
String[] statusIds,
VradiFormPageDTO formPageDTO)
|
static List<String> |
extractDTOIds(List<? extends VradiDTO<?>> dtos)
|
static List<String> |
extractIds(List<? extends org.sharengo.wikitty.BusinessEntity> beans)
|
static
<O extends org.sharengo.wikitty.BusinessEntity>
List<O> |
|
findAllEntityInRef(jaxx.runtime.context.JAXXContextEntryDef<List<O>> ref,
List<String> wikittyIds)
|
static
<O extends org.sharengo.wikitty.BusinessEntity>
O |
|
findEntityInRef(jaxx.runtime.context.JAXXContextEntryDef<List<O>> ref,
String wikittyId)
|
static File |
generatePDF(VradiStorageService storageService,
Form form)
|
static List<File> |
generatePDF(VradiStorageService storageService,
List<Form> forms)
|
protected static String |
getColorRegex(String key)
|
static Map<Integer,Color> |
getColorsFromProperties(String key)
|
static Map<Integer,Color> |
getColorsStatusFromProperties()
|
static Map<Integer,Color> |
getColorsThesaurusFromProperties()
|
static String |
getEntityName(Object o)
|
static String |
getFieldTypeDescription(org.sharengo.wikitty.FieldType fieldType)
|
static FieldTypeEnum |
getFieldTypeEnum(org.sharengo.wikitty.FieldType type)
|
static int |
getFieldTypeRank(org.sharengo.wikitty.FieldType fieldType)
|
static String |
getFormTypeTemplate(org.sharengo.wikitty.WikittyExtension extension)
|
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)
|
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 |
isExpandSelected()
|
static boolean |
isVersionNewer(String version)
|
protected static Map<Integer,Color> |
loadDefaultColors(String key)
|
static List<String> |
loadRequests()
|
protected static List<String> |
removeToUserListProperties(String propertyName,
String value)
|
static void |
removeVradiListColumns(String value)
|
static void |
removeVradiListCriteria(org.sharengo.wikitty.TreeNodeImpl value)
|
static void |
removeVradiListThesaurus(org.sharengo.wikitty.TreeNodeImpl value)
|
static void |
setLastItemOfXmlStream(String xmlStreamName,
String value)
|
static void |
setLastVersion(String lastVersion)
|
protected static Properties |
store(Properties property,
File file)
|
protected static void |
storeColorToProperties(String key,
int i,
Color toStore)
|
static void |
storeExpandSelected(boolean expendSelected)
|
static void |
storeStatusColorToProperties(int i,
Color toStore)
|
static void |
storeThesaurusColorToProperties(int i,
Color toStore)
|
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
THESAURUS_COLORS
public static final String THESAURUS_COLORS
- See Also:
- Constant Field Values
STATUS_COLOR
public static final String STATUS_COLOR
- See Also:
- Constant Field Values
COLOR_REGEX
public static final String COLOR_REGEX
- See Also:
- Constant Field Values
TYPE_DESCRIPTION
public static final String TYPE_DESCRIPTION
- See Also:
- Constant Field Values
TYPE_RANK
public static final String TYPE_RANK
- 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
TYPE_TEMPLATE
public static final String TYPE_TEMPLATE
- See Also:
- Constant Field Values
EXPEND_SELECTED
public static final String EXPEND_SELECTED
- See Also:
- Constant Field Values
userProperties
public static Properties userProperties
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.TreeNodeImpl value)
addVradiListCriteria
public static void addVradiListCriteria(org.sharengo.wikitty.TreeNodeImpl value)
getVradiListThesaurus
public static List<String> getVradiListThesaurus()
removeVradiListThesaurus
public static void removeVradiListThesaurus(org.sharengo.wikitty.TreeNodeImpl value)
addVradiListThesaurus
public static void addVradiListThesaurus(org.sharengo.wikitty.TreeNodeImpl value)
getVradiListColumns
public static List<String> getVradiListColumns()
removeVradiListColumns
public static void removeVradiListColumns(String value)
addVradiListColumns
public static void addVradiListColumns(String value)
getColorsStatusFromProperties
public static Map<Integer,Color> getColorsStatusFromProperties()
storeStatusColorToProperties
public static void storeStatusColorToProperties(int i,
Color toStore)
getColorsThesaurusFromProperties
public static Map<Integer,Color> getColorsThesaurusFromProperties()
storeThesaurusColorToProperties
public static void storeThesaurusColorToProperties(int i,
Color toStore)
getColorRegex
protected static String getColorRegex(String key)
getColorsFromProperties
public static Map<Integer,Color> getColorsFromProperties(String key)
loadDefaultColors
protected static Map<Integer,Color> loadDefaultColors(String key)
storeColorToProperties
protected static void storeColorToProperties(String key,
int i,
Color toStore)
isExpandSelected
public static boolean isExpandSelected()
storeExpandSelected
public static void storeExpandSelected(boolean expendSelected)
getEntityName
public static String getEntityName(Object o)
getFieldTypeEnum
public static FieldTypeEnum getFieldTypeEnum(org.sharengo.wikitty.FieldType type)
getFormTypeTemplate
public static String getFormTypeTemplate(org.sharengo.wikitty.WikittyExtension extension)
getStatus
public static Status getStatus(String statusId)
executeQuery
public static VradiFormPageDTO executeQuery(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] thesaurus,
String[] statusIds,
VradiFormPageDTO formPageDTO)
getFieldTypeDescription
public static String getFieldTypeDescription(org.sharengo.wikitty.FieldType fieldType)
getFieldTypeRank
public static int getFieldTypeRank(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)
findAllEntityInRef
public static <O extends org.sharengo.wikitty.BusinessEntity> List<O> findAllEntityInRef(jaxx.runtime.context.JAXXContextEntryDef<List<O>> ref,
List<String> wikittyIds)
findEntityInRef
public static <O extends org.sharengo.wikitty.BusinessEntity> O findEntityInRef(jaxx.runtime.context.JAXXContextEntryDef<List<O>> ref,
String wikittyId)
generatePDF
public static File generatePDF(VradiStorageService storageService,
Form form)
throws Exception
- Throws:
Exception
generatePDF
public static List<File> generatePDF(VradiStorageService storageService,
List<Form> forms)
throws VradiException
- Throws:
VradiException
extractDTOIds
public static List<String> extractDTOIds(List<? extends VradiDTO<?>> dtos)
extractIds
public static List<String> extractIds(List<? extends org.sharengo.wikitty.BusinessEntity> beans)
Copyright © 2009-2010 JurisMarches. All Rights Reserved.