org.kuali.rice.kew.docsearch
Class DocumentSearchInternalUtils

java.lang.Object
  extended by org.kuali.rice.kew.docsearch.DocumentSearchInternalUtils

public class DocumentSearchInternalUtils
extends Object

Defines various utilities for internal use in the reference implementation of the document search functionality.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class DocumentSearchInternalUtils.SearchableAttributeConfiguration
           
 
Field Summary
static List<Class<? extends SearchableAttributeValue>> SEARCHABLE_ATTRIBUTE_BASE_CLASS_LIST
           
 
Constructor Summary
DocumentSearchInternalUtils()
           
 
Method Summary
static String getAttributeTableName(RemotableAttributeField attributeField)
           
static Class<?> getDataTypeClass(RemotableAttributeField attributeField)
           
static String getDisplayValueWithDateOnly(org.joda.time.DateTime value)
           
static String getDisplayValueWithDateOnly(Timestamp value)
           
static org.joda.time.DateTime getLowerDateTimeBound(String dateRange)
           
static SearchableAttributeValue getSearchableAttributeValueByDataTypeString(String dataType)
           
static List<SearchableAttributeValue> getSearchableAttributeValueObjectTypes()
           
static org.joda.time.DateTime getUpperDateTimeBound(String dateRange)
           
static boolean isLookupCaseSensitive(RemotableAttributeField remotableAttributeField)
           
static String marshalDocumentSearchCriteria(DocumentSearchCriteria criteria)
          Marshals a DocumentSearchCriteria to JSON string
static Range parseRange(String rangeString)
           
static DocumentSearchCriteria unmarshalDocumentSearchCriteria(String string)
          Unmarshals a DocumentSearchCriteria from JSON string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCHABLE_ATTRIBUTE_BASE_CLASS_LIST

public static final List<Class<? extends SearchableAttributeValue>> SEARCHABLE_ATTRIBUTE_BASE_CLASS_LIST
Constructor Detail

DocumentSearchInternalUtils

public DocumentSearchInternalUtils()
Method Detail

isLookupCaseSensitive

public static boolean isLookupCaseSensitive(RemotableAttributeField remotableAttributeField)

getAttributeTableName

public static String getAttributeTableName(RemotableAttributeField attributeField)

getDataTypeClass

public static Class<?> getDataTypeClass(RemotableAttributeField attributeField)

getSearchableAttributeValueObjectTypes

public static List<SearchableAttributeValue> getSearchableAttributeValueObjectTypes()

getSearchableAttributeValueByDataTypeString

public static SearchableAttributeValue getSearchableAttributeValueByDataTypeString(String dataType)

getDisplayValueWithDateOnly

public static String getDisplayValueWithDateOnly(org.joda.time.DateTime value)

getDisplayValueWithDateOnly

public static String getDisplayValueWithDateOnly(Timestamp value)

getLowerDateTimeBound

public static org.joda.time.DateTime getLowerDateTimeBound(String dateRange)
                                                    throws ParseException
Throws:
ParseException

getUpperDateTimeBound

public static org.joda.time.DateTime getUpperDateTimeBound(String dateRange)
                                                    throws ParseException
Throws:
ParseException

parseRange

public static Range parseRange(String rangeString)

unmarshalDocumentSearchCriteria

public static DocumentSearchCriteria unmarshalDocumentSearchCriteria(String string)
                                                              throws IOException
Unmarshals a DocumentSearchCriteria from JSON string

Parameters:
string - the JSON
Returns:
unmarshalled DocumentSearchCriteria
Throws:
IOException

marshalDocumentSearchCriteria

public static String marshalDocumentSearchCriteria(DocumentSearchCriteria criteria)
                                            throws IOException
Marshals a DocumentSearchCriteria to JSON string

Parameters:
criteria - the criteria
Returns:
a JSON string
Throws:
IOException


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.