@Deprecated public class DataDictionaryDocumentSearchCustomizer extends Object implements SearchableAttribute, DocumentSearchCustomizer
| Constructor and Description | 
|---|
| DataDictionaryDocumentSearchCustomizer()Deprecated.  | 
| DataDictionaryDocumentSearchCustomizer(SearchableAttribute searchableAttribute,
                                                                            DocumentSearchCustomizer documentSearchCustomizer)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| DocumentSearchCriteria | customizeClearCriteria(DocumentSearchCriteria documentSearchCriteria)Deprecated.  Performs a customized "clear" of the given document search criteria. | 
| DocumentSearchCriteria | customizeCriteria(DocumentSearchCriteria documentSearchCriteria)Deprecated.  Performs customization on the given document search criteria. | 
| DocumentSearchResultValues | customizeResults(DocumentSearchCriteria documentSearchCriteria,
                                List<DocumentSearchResult> defaultResults)Deprecated.  Performs customization of the given list of document search results. | 
| DocumentSearchResultSetConfiguration | customizeResultSetConfiguration(DocumentSearchCriteria documentSearchCriteria)Deprecated.  Performs customization of what result fields should be displayed in the result set. | 
| List<DocumentAttribute> | extractDocumentAttributes(ExtensionDefinition extensionDefinition,
                                                  DocumentWithContent documentWithContent)Deprecated.  Extracts and returns document attributes for the given document in order to allow indexing of those values for
 association with the document and use in document searches. | 
| String | generateSearchContent(ExtensionDefinition extensionDefinition,
                                          String documentTypeName,
                                          WorkflowAttributeDefinition attributeDefinition)Deprecated.  Allows for generation of custom XML for this searchable attribute. | 
| protected DocumentSearchCustomizer | getDocumentSearchCustomizer()Deprecated.  | 
| protected SearchableAttribute | getSearchableAttribute()Deprecated.  | 
| List<RemotableAttributeField> | getSearchFields(ExtensionDefinition extensionDefinition,
                              String documentTypeName)Deprecated.  Returns a list of  RemotableAttributeFieldobjects which define which searchable attribute criteria fields
 should be included in the criteria section of the document search user interface for this searchable attribute. | 
| boolean | isCustomizeClearCriteriaEnabled(String documentTypeName)Deprecated.  Indicates if the  DocumentSearchCustomizer.customizeClearCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria)on this customizer should be invoked for the document type with the given name. | 
| boolean | isCustomizeCriteriaEnabled(String documentTypeName)Deprecated.  Indicates if the  DocumentSearchCustomizer.customizeCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria)on
 this customizer should be invoked for the document type with the given name. | 
| boolean | isCustomizeResultsEnabled(String documentTypeName)Deprecated.  Indicates if the  DocumentSearchCustomizer.customizeResults(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria, java.util.List)on this customizer should be invoked for the document type with the given name. | 
| boolean | isCustomizeResultSetFieldsEnabled(String documentTypeName)Deprecated.  Indicates if the  DocumentSearchCustomizer.customizeResultSetConfiguration(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria)on this customizer should be invoked for the document type with the given name. | 
| void | setDocumentSearchCustomizer(DocumentSearchCustomizer documentSearchCustomizer)Deprecated.  | 
| void | setSearchableAttribute(SearchableAttribute searchableAttribute)Deprecated.  | 
| List<RemotableAttributeError> | validateDocumentAttributeCriteria(ExtensionDefinition extensionDefinition,
                                                                  DocumentSearchCriteria documentSearchCriteria)Deprecated.  Performs custom validation of document attribute values that come from this searchable attribute whenever a
 document search is performed against a document type which uses this searchable attribute. | 
public DataDictionaryDocumentSearchCustomizer()
public DataDictionaryDocumentSearchCustomizer(SearchableAttribute searchableAttribute, DocumentSearchCustomizer documentSearchCustomizer)
public final String generateSearchContent(ExtensionDefinition extensionDefinition, String documentTypeName, WorkflowAttributeDefinition attributeDefinition)
SearchableAttributeDocumentContentUpdate).  This XML is ultimately included as part of the
 document's content.
 It is intended that this XML can be used by the extractDocumentAttributes method in order to pull
 values out for indexing, though this method is free to use any source available to it for extracting data for
 indexing alongside a document.
A null or blank value may be returned from this method to indicate that no XML was generated.
generateSearchContent in interface SearchableAttributeextensionDefinition - the extension definition which was used to locate and load this searchable attribute
 implementationdocumentTypeName - the name of the document type for which this method is being invokedattributeDefinition - contains parameters and properties that can be used to inform generation of the XML,
 these are supplied by the user of the workflow API when the document's searchable XML content is requested to be
 updatedpublic final List<DocumentAttribute> extractDocumentAttributes(ExtensionDefinition extensionDefinition, DocumentWithContent documentWithContent)
SearchableAttributeThere are a finite set of DocumentAttribute implementations which can be returned and interpreted
 correctly.  Client application's should not create custom extensions of the
 DocumentAttribute abstract class but should preferably use the
 DocumentAttributeFactory to construct strongly-typed document
 attribute instances for indexing.
extractDocumentAttributes in interface SearchableAttributeextensionDefinition - the extension definition which was used to locate and load this searchable attribute
 implementationdocumentWithContent - the workflow document and it's XML contentDocumentAttributeFactorypublic final List<RemotableAttributeField> getSearchFields(ExtensionDefinition extensionDefinition, String documentTypeName)
SearchableAttributeRemotableAttributeField objects which define which searchable attribute criteria fields
 should be included in the criteria section of the document search user interface for this searchable attribute.getSearchFields in interface SearchableAttributeextensionDefinition - the extension definition which was used to locate and load this searchable attribute
 implementationdocumentTypeName - the name of the document type for which this method is being invokedpublic final List<RemotableAttributeError> validateDocumentAttributeCriteria(ExtensionDefinition extensionDefinition, DocumentSearchCriteria documentSearchCriteria)
SearchableAttributeThe entire DocumentSearchCriteria is passed to this method, though it's intended that implementing
 code will pull out the document attribute values on the criteria which are managed by this searchable attribute
 and perform any desired validation.  However, there are certainly no restrictions on this method that would
 prevent it from performing validations outside of this scope and in relation to other portions of the criteria,
 though this is certainly not the intent of this validation hook.
Note that this method is invoked when performing a document search from the user interface as well as via
 the WorkflowDocumentService api.
validateDocumentAttributeCriteria in interface SearchableAttributeextensionDefinition - the extension definition which was used to locate and load this searchable attribute
 implementationdocumentSearchCriteria - the criteria that was submitted to the document search and against which validation
 is requestedpublic final DocumentSearchCriteria customizeCriteria(DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizerIt is guaranteed that the document type name on the given criteria will never be null and will always represent a valid document type.
customizeCriteria in interface DocumentSearchCustomizerdocumentSearchCriteria - the original criteria against which to perform customization, will never be nullpublic final DocumentSearchCriteria customizeClearCriteria(DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizerA common use of this feature is to preserve the document type that has been selected when clearing criteria for a customized document search.
It is guaranteed that the document type name on the given criteria will never be null and will always represent a valid document type.
customizeClearCriteria in interface DocumentSearchCustomizerdocumentSearchCriteria - the criteria to clearpublic final DocumentSearchResultValues customizeResults(DocumentSearchCriteria documentSearchCriteria, List<DocumentSearchResult> defaultResults)
DocumentSearchCustomizerThis method returns a DocumentSearchResultValues object which contains a list of
 DocumentSearchResultValue objects.  Each of these result values maps to a specific document id and
 contains a list of DocumentAttribute values which can be used
 to modify existing document attributes or create new ones that are included as part of the search results.  It
 is important to note that in order for these custom attribute values to be displayed in the result set in the
 document search user interface, there must be a corresponding entry in the
 DocumentSearchResultSetConfiguration returned by the
 DocumentSearchCustomizer.customizeResultSetConfiguration(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria) method
 on this customizer implementation.
It is permissible that implementations of this method may not return result values for all of the document provided in the given list of document search results. It is important to note however that ommision from the returned result values does not filter or remove the result from the search results. Generally speaking, this method cannot be used to remove results from the result set.
It is guaranteed that the document type name on the given criteria will never be null and will always represent a valid document type.
customizeResults in interface DocumentSearchCustomizerdocumentSearchCriteria - the criteria against which the document search was executeddefaultResults - the results that were returned by the execution of the document searchpublic DocumentSearchResultSetConfiguration customizeResultSetConfiguration(DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizerThis method is only invoked by the document search user interface whenever it is rendering document search results. It is not invoked when invoking document search using only the api.
It is guaranteed that the document type name on the given criteria will never be null and will always represent a valid document type.
customizeResultSetConfiguration in interface DocumentSearchCustomizerdocumentSearchCriteria - the criteria against which the document search was executedpublic final boolean isCustomizeCriteriaEnabled(String documentTypeName)
DocumentSearchCustomizerDocumentSearchCustomizer.customizeCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria) on
 this customizer should be invoked for the document type with the given name.  The caller of this method is
 permitted to cache the return value for a length of time of their choosing.isCustomizeCriteriaEnabled in interface DocumentSearchCustomizerdocumentTypeName - the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeClearCriteriaEnabled(String documentTypeName)
DocumentSearchCustomizerDocumentSearchCustomizer.customizeClearCriteria(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria)
 on this customizer should be invoked for the document type with the given name.  The caller of this method is
 permitted to cache the return value for a length of time of their choosing.isCustomizeClearCriteriaEnabled in interface DocumentSearchCustomizerdocumentTypeName - the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeResultsEnabled(String documentTypeName)
DocumentSearchCustomizerDocumentSearchCustomizer.customizeResults(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria, java.util.List)
 on this customizer should be invoked for the document type with the given name.  The caller of this method is
 permitted to cache the return value for a length of time of their choosing.isCustomizeResultsEnabled in interface DocumentSearchCustomizerdocumentTypeName - the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeResultSetFieldsEnabled(String documentTypeName)
DocumentSearchCustomizerDocumentSearchCustomizer.customizeResultSetConfiguration(org.kuali.rice.kew.api.document.search.DocumentSearchCriteria)
 on this customizer should be invoked for the document type with the given name.  The caller of this method is
 permitted to cache the return value for a length of time of their choosing.isCustomizeResultSetFieldsEnabled in interface DocumentSearchCustomizerdocumentTypeName - the name of the document type against which this customizer is being appliedprotected SearchableAttribute getSearchableAttribute()
public void setSearchableAttribute(SearchableAttribute searchableAttribute)
protected DocumentSearchCustomizer getDocumentSearchCustomizer()
public void setDocumentSearchCustomizer(DocumentSearchCustomizer documentSearchCustomizer)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.