|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.framework.document.search.DocumentSearchResultSetConfiguration.Builder
public static final class DocumentSearchResultSetConfiguration.Builder
A builder which can be used to construct DocumentSearchResultSetConfiguration
instances. Enforces the
constraints of the DocumentSearchResultSetConfigurationContract
.
Method Summary | |
---|---|
DocumentSearchResultSetConfiguration |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static DocumentSearchResultSetConfiguration.Builder |
create()
Creates new empty builder instance. |
static DocumentSearchResultSetConfiguration.Builder |
create(DocumentSearchResultSetConfigurationContract contract)
Creates a new builder instance initialized with copies of the properties from the given contract. |
List<RemotableAttributeField.Builder> |
getAdditionalAttributeFields()
Gets attribute field definitions for additional attributes that may be displayed in the result set. |
List<String> |
getCustomFieldNamesToAdd()
Returns a list of field names of custom fields representing document attributes which should be added to the result set. |
List<StandardResultField> |
getStandardResultFieldsToRemove()
Returns a list of the standard (built-in) document search result fields which should not be displayed in the result set. |
boolean |
isOverrideSearchableAttributes()
Returns true if the custom field names returned by DocumentSearchResultSetConfigurationContract.getCustomFieldNamesToAdd() should be used to define
the order of searchable attributes as well as additional custom additional fields. |
void |
setAdditionalAttributeFields(List<RemotableAttributeField.Builder> additionalAttributeFields)
|
void |
setCustomFieldNamesToAdd(List<String> customFieldNamesToAdd)
|
void |
setOverrideSearchableAttributes(boolean overrideSearchableAttributes)
|
void |
setStandardResultFieldsToRemove(List<StandardResultField> standardResultFieldsToRemove)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentSearchResultSetConfiguration.Builder create()
overrideSearchableAttribute
boolean property is initialized to "false".
public static DocumentSearchResultSetConfiguration.Builder create(DocumentSearchResultSetConfigurationContract contract)
contract
- the contract from which to copy properties
IllegalArgumentException
- if the given contract is nullpublic DocumentSearchResultSetConfiguration build()
ModelBuilder
build
in interface ModelBuilder
public boolean isOverrideSearchableAttributes()
DocumentSearchResultSetConfigurationContract
DocumentSearchResultSetConfigurationContract.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.
isOverrideSearchableAttributes
in interface DocumentSearchResultSetConfigurationContract
public List<String> getCustomFieldNamesToAdd()
DocumentSearchResultSetConfigurationContract
DocumentSearchResultSetConfigurationContract.getAdditionalAttributeFields()
or also fields
defined as part of a SearchableAttribute
(see isOverrideSearchableAttributes()
).
getCustomFieldNamesToAdd
in interface DocumentSearchResultSetConfigurationContract
public List<StandardResultField> getStandardResultFieldsToRemove()
DocumentSearchResultSetConfigurationContract
getStandardResultFieldsToRemove
in interface DocumentSearchResultSetConfigurationContract
public List<RemotableAttributeField.Builder> getAdditionalAttributeFields()
DocumentSearchResultSetConfigurationContract
DocumentSearchResultSetConfigurationContract.getCustomFieldNamesToAdd()
.
getAdditionalAttributeFields
in interface DocumentSearchResultSetConfigurationContract
public void setOverrideSearchableAttributes(boolean overrideSearchableAttributes)
public void setCustomFieldNamesToAdd(List<String> customFieldNamesToAdd)
public void setStandardResultFieldsToRemove(List<StandardResultField> standardResultFieldsToRemove)
public void setAdditionalAttributeFields(List<RemotableAttributeField.Builder> additionalAttributeFields)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |