@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
RemotableAttributeField 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. |
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)
SearchableAttribute
DocumentContentUpdate
). 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 SearchableAttribute
extensionDefinition
- 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)
SearchableAttribute
There 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 SearchableAttribute
extensionDefinition
- the extension definition which was used to locate and load this searchable attribute
implementationdocumentWithContent
- the workflow document and it's XML contentDocumentAttributeFactory
public final List<RemotableAttributeField> getSearchFields(ExtensionDefinition extensionDefinition, String documentTypeName)
SearchableAttribute
RemotableAttributeField
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 SearchableAttribute
extensionDefinition
- 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)
SearchableAttribute
The 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 SearchableAttribute
extensionDefinition
- 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)
DocumentSearchCustomizer
It 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 DocumentSearchCustomizer
documentSearchCriteria
- the original criteria against which to perform customization, will never be nullpublic final DocumentSearchCriteria customizeClearCriteria(DocumentSearchCriteria documentSearchCriteria)
DocumentSearchCustomizer
A 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 DocumentSearchCustomizer
documentSearchCriteria
- the criteria to clearpublic final DocumentSearchResultValues customizeResults(DocumentSearchCriteria documentSearchCriteria, List<DocumentSearchResult> defaultResults)
DocumentSearchCustomizer
This 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 DocumentSearchCustomizer
documentSearchCriteria
- 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)
DocumentSearchCustomizer
This 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 DocumentSearchCustomizer
documentSearchCriteria
- the criteria against which the document search was executedpublic final boolean isCustomizeCriteriaEnabled(String documentTypeName)
DocumentSearchCustomizer
DocumentSearchCustomizer.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 DocumentSearchCustomizer
documentTypeName
- the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeClearCriteriaEnabled(String documentTypeName)
DocumentSearchCustomizer
DocumentSearchCustomizer.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 DocumentSearchCustomizer
documentTypeName
- the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeResultsEnabled(String documentTypeName)
DocumentSearchCustomizer
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. The caller of this method is
permitted to cache the return value for a length of time of their choosing.isCustomizeResultsEnabled
in interface DocumentSearchCustomizer
documentTypeName
- the name of the document type against which this customizer is being appliedpublic final boolean isCustomizeResultSetFieldsEnabled(String documentTypeName)
DocumentSearchCustomizer
DocumentSearchCustomizer.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 DocumentSearchCustomizer
documentTypeName
- 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–2016 The Kuali Foundation. All rights reserved.