Class DocumentSearchCriteriaConfiguration.Builder
java.lang.Object
org.kuali.rice.kew.framework.document.search.DocumentSearchCriteriaConfiguration.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,DocumentSearchCriteriaConfigurationContract
- Enclosing class:
DocumentSearchCriteriaConfiguration
public static final class DocumentSearchCriteriaConfiguration.Builder
extends Object
implements Serializable, ModelBuilder, DocumentSearchCriteriaConfigurationContract
A builder which can be used to construct
DocumentSearchCriteriaConfiguration instances. Enforces the
constraints of the DocumentSearchCriteriaConfigurationContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Creates new empty builder instance.Creates a new builder instance initialized with copies of the properties from the given contract.Returns the additional attribute fields that should be included as part of the document search criteria on the document search user interface.voidsetSearchAttributeFields(List<AttributeFields> searchAttributeFields) Sets the search attribute fields on this builder to the given list of attribute fields.
-
Method Details
-
create
Creates new empty builder instance. The list of search attributes on this builder is intialized to an empty list.- Returns:
- a new empty builder instance
-
create
public static DocumentSearchCriteriaConfiguration.Builder create(DocumentSearchCriteriaConfigurationContract contract) Creates a new builder instance initialized with copies of the properties from the given contract.- Parameters:
contract- the contract from which to copy properties- Returns:
- a builder instance initialized with properties from the given contract
- Throws:
IllegalArgumentException- if the given contract is null
-
build
- Specified by:
buildin interfaceModelBuilder
-
getSearchAttributeFields
Description copied from interface:DocumentSearchCriteriaConfigurationContractReturns the additional attribute fields that should be included as part of the document search criteria on the document search user interface.- Specified by:
getSearchAttributeFieldsin interfaceDocumentSearchCriteriaConfigurationContract- Returns:
- the search attribute fields that are part of this configuration
-
setSearchAttributeFields
Sets the search attribute fields on this builder to the given list of attribute fields.- Parameters:
searchAttributeFields- the list of search attribute fields to set
-