|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.workflow.attribute.DataDictionarySearchableAttribute
public class DataDictionarySearchableAttribute
This class...
Field Summary | |
---|---|
static String |
DATA_TYPE_BOOLEAN
|
Constructor Summary | |
---|---|
DataDictionarySearchableAttribute()
|
Method Summary | |
---|---|
protected List<Row> |
createFieldRowsForBusinessObject(Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass)
Creates a list of search fields, one for each primary key of the maintained business object |
protected List<Row> |
createFieldRowsForWorkflowAttributes(WorkflowAttributes attrs)
Creates a list of search fields, one for each primary key of the maintained business object |
protected List<SearchableAttributeValue> |
findAllSearchableAttributesForGlobalBusinessObject(GlobalBusinessObject globalBO)
|
protected SearchableAttributeValue |
generateSearchableAttributeFromChange(PersistableBusinessObject changeToPersist)
|
protected Class<? extends org.kuali.rice.kns.bo.BusinessObject> |
getBusinessObjectClass(String documentTypeName)
Returns the class of the object being maintained by the given maintenance document type name |
protected Class<? extends Maintainable> |
getMaintainableClass(String documentTypeName)
Returns the maintainable of the object being maintained by the given maintenance document type name |
String |
getSearchContent(DocumentSearchContext documentSearchContext)
this gives the xml representation of the attribute; returning a standard java xml object might be a better approach here |
List<Row> |
getSearchingRows(DocumentSearchContext documentSearchContext)
this will return a list of field objects to be rendered in the docsearch interface |
List<SearchableAttributeValue> |
getSearchStorageValues(DocumentSearchContext documentSearchContext)
this will return the loaded data objects for storage in workflow�s database to be related to the document the attributes xml content was loaded with |
protected List<SearchableAttributeValue> |
parsePrimaryKeyValuesFromDocument(Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass,
MaintenanceDocument document)
|
protected SearchableAttributeValue |
parseSearchableAttributeValueForPrimaryKey(String propertyName,
Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass,
MaintenanceDocument document)
Creates a searchable attribute value for the given property name out of the document XML |
protected GlobalBusinessObject |
retrieveGlobalBusinessObject(String documentNumber,
Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass)
|
protected MaintenanceDocumentEntry |
retrieveMaintenanceDocumentEntry(String documentTypeName)
Retrieves the maintenance document entry for the given document type name |
List<WorkflowAttributeValidationError> |
validateUserSearchInputs(Map<Object,Object> paramMap,
DocumentSearchContext searchContext)
this will return a list of error objects if the user has made an input error |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATA_TYPE_BOOLEAN
Constructor Detail |
---|
public DataDictionarySearchableAttribute()
Method Detail |
---|
public String getSearchContent(DocumentSearchContext documentSearchContext)
SearchableAttribute
getSearchContent
in interface SearchableAttribute
SearchableAttribute.getSearchContent(org.kuali.rice.kew.docsearch.DocumentSearchContext)
public List<SearchableAttributeValue> getSearchStorageValues(DocumentSearchContext documentSearchContext)
SearchableAttribute
getSearchStorageValues
in interface SearchableAttribute
SearchableAttribute.getSearchStorageValues(org.kuali.rice.kew.docsearch.DocumentSearchContext)
public List<Row> getSearchingRows(DocumentSearchContext documentSearchContext)
SearchableAttribute
getSearchingRows
in interface SearchableAttribute
SearchableAttribute.getSearchingRows(org.kuali.rice.kew.docsearch.DocumentSearchContext)
public List<WorkflowAttributeValidationError> validateUserSearchInputs(Map<Object,Object> paramMap, DocumentSearchContext searchContext)
SearchableAttribute
validateUserSearchInputs
in interface SearchableAttribute
paramMap
- mapsearchContext
- document search context
protected List<Row> createFieldRowsForWorkflowAttributes(WorkflowAttributes attrs)
businessObjectClass
- the class of the maintained business object
protected List<SearchableAttributeValue> parsePrimaryKeyValuesFromDocument(Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass, MaintenanceDocument document)
businessObjectClass
- documentContent
-
protected SearchableAttributeValue parseSearchableAttributeValueForPrimaryKey(String propertyName, Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass, MaintenanceDocument document)
propertyName
- the name of the property to returnbusinessObjectClass
- the class of the business object maintaineddocument
- the document XML
protected Class<? extends org.kuali.rice.kns.bo.BusinessObject> getBusinessObjectClass(String documentTypeName)
documentTypeName
- the name of the document type to look up the maintained business object for
protected Class<? extends Maintainable> getMaintainableClass(String documentTypeName)
documentTypeName
- the name of the document type to look up the maintained business object for
protected MaintenanceDocumentEntry retrieveMaintenanceDocumentEntry(String documentTypeName)
documentTypeName
- the document type name to look up the data dictionary document entry for
protected GlobalBusinessObject retrieveGlobalBusinessObject(String documentNumber, Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass)
documentNumber
- businessObjectClass
- document
-
protected List<SearchableAttributeValue> findAllSearchableAttributesForGlobalBusinessObject(GlobalBusinessObject globalBO)
globalBO
-
protected SearchableAttributeValue generateSearchableAttributeFromChange(PersistableBusinessObject changeToPersist)
changeToPersist
-
protected List<Row> createFieldRowsForBusinessObject(Class<? extends org.kuali.rice.kns.bo.BusinessObject> businessObjectClass)
businessObjectClass
- the class of the maintained business object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |