public class DataDictionarySearchableAttribute extends Object implements org.kuali.rice.kew.framework.document.attribute.SearchableAttribute
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_TYPE_BOOLEAN |
| Constructor and Description |
|---|
DataDictionarySearchableAttribute() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Row> |
createFieldRowsForBusinessObject(Class<? extends BusinessObject> businessObjectClass)
Creates a list of search fields, one for each primary key of the maintained business object
|
protected List<Row> |
createFieldRowsForWorkflowAttributes(WorkflowAttributes attrs) |
List<DocumentAttribute> |
extractDocumentAttributes(ExtensionDefinition extensionDefinition,
DocumentWithContent documentWithContent) |
protected List<DocumentAttribute> |
findAllDocumentAttributesForGlobalBusinessObject(GlobalBusinessObject globalBO) |
protected DocumentAttribute |
generateSearchableAttributeFromChange(PersistableBusinessObject changeToPersist) |
String |
generateSearchContent(ExtensionDefinition extensionDefinition,
String documentTypeName,
WorkflowAttributeDefinition attributeDefinition) |
protected Class<? extends 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
|
List<RemotableAttributeField> |
getSearchFields(ExtensionDefinition extensionDefinition,
String documentTypeName) |
protected List<Row> |
getSearchingRows(String documentTypeName)
Produces legacy KNS rows to use for search attributes.
|
protected List<DocumentAttribute> |
parsePrimaryKeyValuesFromDocument(Class<? extends BusinessObject> businessObjectClass,
MaintenanceDocument document) |
protected DocumentAttribute |
parseSearchableAttributeValueForPrimaryKey(String propertyName,
Class<? extends 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 BusinessObject> businessObjectClass) |
protected MaintenanceDocumentEntry |
retrieveMaintenanceDocumentEntry(String documentTypeName)
Retrieves the maintenance document entry for the given document type name
|
protected void |
retrieveValidationErrorsFromGlobalVariables(List<RemotableAttributeError> validationErrors)
Retrieves validation errors from GlobalVariables MessageMap and appends to the given list of RemotableAttributeError
|
List<RemotableAttributeError> |
validateDocumentAttributeCriteria(ExtensionDefinition extensionDefinition,
DocumentSearchCriteria documentSearchCriteria) |
public static final String DATA_TYPE_BOOLEAN
public DataDictionarySearchableAttribute()
public String generateSearchContent(ExtensionDefinition extensionDefinition, String documentTypeName, WorkflowAttributeDefinition attributeDefinition)
generateSearchContent in interface org.kuali.rice.kew.framework.document.attribute.SearchableAttributepublic List<DocumentAttribute> extractDocumentAttributes(ExtensionDefinition extensionDefinition, DocumentWithContent documentWithContent)
extractDocumentAttributes in interface org.kuali.rice.kew.framework.document.attribute.SearchableAttributepublic List<RemotableAttributeField> getSearchFields(ExtensionDefinition extensionDefinition, String documentTypeName)
getSearchFields in interface org.kuali.rice.kew.framework.document.attribute.SearchableAttributeprotected List<Row> getSearchingRows(String documentTypeName)
public List<RemotableAttributeError> validateDocumentAttributeCriteria(ExtensionDefinition extensionDefinition, DocumentSearchCriteria documentSearchCriteria)
validateDocumentAttributeCriteria in interface org.kuali.rice.kew.framework.document.attribute.SearchableAttributeprotected void retrieveValidationErrorsFromGlobalVariables(List<RemotableAttributeError> validationErrors)
validationErrors - list to append validation errorsprotected List<Row> createFieldRowsForWorkflowAttributes(WorkflowAttributes attrs)
protected List<DocumentAttribute> parsePrimaryKeyValuesFromDocument(Class<? extends BusinessObject> businessObjectClass, MaintenanceDocument document)
protected DocumentAttribute parseSearchableAttributeValueForPrimaryKey(String propertyName, Class<? extends BusinessObject> businessObjectClass, MaintenanceDocument document)
propertyName - the name of the property to returnbusinessObjectClass - the class of the business object maintaineddocument - the document XMLprotected Class<? extends BusinessObject> getBusinessObjectClass(String documentTypeName)
documentTypeName - the name of the document type to look up the maintained business object forprotected Class<? extends Maintainable> getMaintainableClass(String documentTypeName)
documentTypeName - the name of the document type to look up the maintained business object forprotected MaintenanceDocumentEntry retrieveMaintenanceDocumentEntry(String documentTypeName)
documentTypeName - the document type name to look up the data dictionary document entry forprotected GlobalBusinessObject retrieveGlobalBusinessObject(String documentNumber, Class<? extends BusinessObject> businessObjectClass)
protected List<DocumentAttribute> findAllDocumentAttributesForGlobalBusinessObject(GlobalBusinessObject globalBO)
protected DocumentAttribute generateSearchableAttributeFromChange(PersistableBusinessObject changeToPersist)
protected List<Row> createFieldRowsForBusinessObject(Class<? extends BusinessObject> businessObjectClass)
businessObjectClass - the class of the maintained business objectCopyright © 2005–2016 The Kuali Foundation. All rights reserved.