Class DocumentSearchResultSetConfiguration
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kew.framework.document.search.DocumentSearchResultSetConfiguration
- All Implemented Interfaces:
Serializable,ModelObjectBasic,ModelObjectComplete,DocumentSearchResultSetConfigurationContract
public final class DocumentSearchResultSetConfiguration
extends AbstractDataTransferObject
implements DocumentSearchResultSetConfigurationContract
An immutable data transfer object implementation of the
DocumentSearchResultSetConfigurationContract.
Instances of this class should be constructed using the nested DocumentSearchResultSetConfiguration.Builder class.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder which can be used to constructDocumentSearchResultSetConfigurationinstances. -
Method Summary
Modifier and TypeMethodDescriptionGets attribute field definitions for additional attributes that may be displayed in the result set.Returns a list of field names of custom fields representing document attributes which should be added to the result set.Returns a list of the standard (built-in) document search result fields which should not be displayed in the result set.booleanReturns true if the custom field names returned byDocumentSearchResultSetConfigurationContract.getCustomFieldNamesToAdd()should be used to define the order of searchable attributes as well as additional custom additional fields.Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
isOverrideSearchableAttributes
public boolean isOverrideSearchableAttributes()Description copied from interface:DocumentSearchResultSetConfigurationContractReturns true if the custom field names returned byDocumentSearchResultSetConfigurationContract.getCustomFieldNamesToAdd()should be used to define the order of searchable attributes as well as additional custom additional fields. Returns false if any searchable attribute values should be included in the result set according to their existing configuration.- Specified by:
isOverrideSearchableAttributesin interfaceDocumentSearchResultSetConfigurationContract- Returns:
- true if custom field names defined by this object should override any default searchable attribute result field display behavior, flase if searchable attribute fields should still be displayed in the result set according to their own configuration
-
getCustomFieldNamesToAdd
Description copied from interface:DocumentSearchResultSetConfigurationContractReturns a list of field names of custom fields representing document attributes which should be added to the result set. This may contains fields that are defined inDocumentSearchResultSetConfigurationContract.getAdditionalAttributeFields()or also fields defined as part of aSearchableAttribute(seeisOverrideSearchableAttributes()).- Specified by:
getCustomFieldNamesToAddin interfaceDocumentSearchResultSetConfigurationContract- Returns:
- a list of field names of custom document attributes which should be added to the result set, can be an empty or null list in which case no fields will be added
-
getStandardResultFieldsToRemove
Description copied from interface:DocumentSearchResultSetConfigurationContractReturns a list of the standard (built-in) document search result fields which should not be displayed in the result set. The document search implementation should do it's best to honor the request to remove standard fields from the result set, but it is free to ignore such requests if needed. An example of this would be a preference for the implementation of document search that requires certain result set fields to remain (such as the document id and route log which is usually recommended to display).- Specified by:
getStandardResultFieldsToRemovein interfaceDocumentSearchResultSetConfigurationContract- Returns:
- a list of standard result fields to remove from inclusion in the result set, may be an empty or null list if no standard result fields should be removed
-
getAdditionalAttributeFields
Description copied from interface:DocumentSearchResultSetConfigurationContractGets attribute field definitions for additional attributes that may be displayed in the result set. This simply defines the attribute field definition for each of these fields, their inclusion here does not necessarily mean they will be visible in the result set. This is controlled primarily byDocumentSearchResultSetConfigurationContract.getCustomFieldNamesToAdd().- Specified by:
getAdditionalAttributeFieldsin interfaceDocumentSearchResultSetConfigurationContract- Returns:
- a list containing additional attribute fields to define for use when constructing the result set, this method can return a null or empty list if there are no additional attribute fields to define
-