|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.docsearch.DocSearchUtils
public class DocSearchUtils
Various static utility methods for helping with Searcha.
| Nested Class Summary | |
|---|---|
static class |
DocSearchUtils.DateComponent
|
| Field Summary | |
|---|---|
static List |
DOCUMENT_SEARCH_DATE_VALIDATION_REGEX_EXPRESSIONS
|
| Constructor Summary | |
|---|---|
DocSearchUtils()
|
|
| Method Summary | |
|---|---|
static void |
addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
boolean setAttributesStrictly)
This method takes the given propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object.This is identical to calling addSearchableAttributesToCriteria(DocSearchCriteriaDTO, List, String, boolean)
with a null value for the searchAttributesString parameter. |
static void |
addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
String searchAttributesString)
This method takes the given propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object.This is identical to calling addSearchableAttributesToCriteria(DocSearchCriteriaDTO, List, String, boolean)
with a boolean value of false for the setAttributesStrictly parameter. |
static void |
addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
String searchAttributesString,
boolean setAttributesStrictly)
This method takes the given propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object. |
static List<SearchAttributeCriteriaComponent> |
buildSearchableAttributesFromString(String searchableAttributeString,
String documentTypeName)
Build List of searchable attributes from saved searchable attributes string |
static Timestamp |
convertStringDateToTimestamp(String dateWithoutTime)
|
static String |
getDisplayValueWithDateOnly(Timestamp value)
|
static String |
getDisplayValueWithDateTime(Timestamp value)
|
static DocumentSearchContext |
getDocumentSearchContext(String documentId,
String documentTypeName,
String documentContent)
|
static String |
getEntryFormattedDate(String date)
A method to format any variety of date strings into a common format |
static SearchAttributeFormContainer |
getPropertyField(String key,
List propertyFields)
|
static SearchableAttributeValue |
getSearchableAttributeValueByDataTypeString(String dataType)
|
static List<SearchableAttributeValue> |
getSearchableAttributeValueObjectTypes()
|
static String |
getSqlFormattedDate(String date)
A method to format any variety of date strings into a common format |
static void |
setupPropertyField(SearchAttributeCriteriaComponent searchableAttribute,
List propertyFields)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final List DOCUMENT_SEARCH_DATE_VALIDATION_REGEX_EXPRESSIONS
| Constructor Detail |
|---|
public DocSearchUtils()
| Method Detail |
|---|
public static List<SearchableAttributeValue> getSearchableAttributeValueObjectTypes()
public static SearchableAttributeValue getSearchableAttributeValueByDataTypeString(String dataType)
public static String getSqlFormattedDate(String date)
date - A string date in one of a few different formats
public static String getEntryFormattedDate(String date)
date - A string date in one of a few different formats
public static String getDisplayValueWithDateOnly(Timestamp value)
public static String getDisplayValueWithDateTime(Timestamp value)
public static Timestamp convertStringDateToTimestamp(String dateWithoutTime)
public static List<SearchAttributeCriteriaComponent> buildSearchableAttributesFromString(String searchableAttributeString,
String documentTypeName)
searchableAttributeString - String representation of searchable attributesdocumentTypeName - document type name
public static void addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
String searchAttributesString)
propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object.addSearchableAttributesToCriteria(DocSearchCriteriaDTO, List, String, boolean)
with a boolean value of false for the setAttributesStrictly parameter.
criteria - -
The object that needs a list of SearchAttributeCriteriaComponent objects set up based on the
document type name and propertyFields parameterpropertyFields - -
The list of SearchAttributeFormContainer objects that need to be converted to
SearchAttributeCriteriaComponent objects and set on the criteria parametersearchAttributesString - -
A potential string that must be parsed to use to set attributes on the criteria object
public static void addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
boolean setAttributesStrictly)
propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object.addSearchableAttributesToCriteria(DocSearchCriteriaDTO, List, String, boolean)
with a null value for the searchAttributesString parameter.
criteria - -
The object that needs a list of SearchAttributeCriteriaComponent objects set up based on the
document type name and propertyFields parameterpropertyFields - -
The list of SearchAttributeFormContainer objects that need to be converted to
SearchAttributeCriteriaComponent objects and set on the criteria parametersetAttributesStrictly - -
A boolean to specify whether to explicitly throw an error when a given value from
propertyFields does not match a search attribute on the specified document type. If set to
true an error with be thrown. If set to false the mismatch will be ignored.
public static void addSearchableAttributesToCriteria(DocSearchCriteriaDTO criteria,
List propertyFields,
String searchAttributesString,
boolean setAttributesStrictly)
propertyFields parameter and populates the DocSearchCriteriaDTO
object search attributes based on the document type name set on the criteria object.
criteria - -
The object that needs a list of SearchAttributeCriteriaComponent objects set up based on the
document type name and propertyFields parameterpropertyFields - -
The list of SearchAttributeFormContainer objects that need to be converted to
SearchAttributeCriteriaComponent objects and set on the criteria parametersearchAttributesString - -
A potential string that must be parsed to use to set attributes on the criteria objectsetAttributesStrictly - -
A boolean to specify whether to explicitly throw an error when a given value from
propertyFields does not match a search attribute on the specified document type. If set to
true an error with be thrown. If set to false the mismatch will be ignored.
public static void setupPropertyField(SearchAttributeCriteriaComponent searchableAttribute,
List propertyFields)
public static SearchAttributeFormContainer getPropertyField(String key,
List propertyFields)
public static DocumentSearchContext getDocumentSearchContext(String documentId,
String documentTypeName,
String documentContent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||