Package com.veeva.vault.sdk.api.document
Interface DocumentFieldMetadataRequest.Builder
- Enclosing interface:
- DocumentFieldMetadataRequest
public static interface DocumentFieldMetadataRequest.Builder
Creates an instance of
DocumentFieldMetadataRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedDocumentFieldMetadataRequest.Optional: Sets a filter to retrieve active field attributes only.withDocumentType(DocumentType documentType) Optional: Sets theDocumentTypeto use as a filter for theDocumentFieldMetadataRequest.Optional: Sets a filter to only retrieve fields which the authenticated user has permission to edit.Optional: Sets a filter to retrieve facetable field attributes only.withFieldNames(List<String> fieldNames) Optional: Sets the field names to use as filters for theDocumentFieldMetadataRequest.Optional: Sets a filter to retrieve required field attributes only.Optional: Sets a filter to retrieve shared field attributes only.Optional: Sets a filter to only retrieve fields which the authenticated user has permission to view.
-
Method Details
-
withDocumentType
Optional: Sets theDocumentTypeto use as a filter for theDocumentFieldMetadataRequest. When aDocumentTypeis passed in to aDocumentFieldMetadataRequest, only fields which are associated with the specifiedDocumentTypeare retrieved.When omitted, retrieves fields from all available
DocumentTypes.- Parameters:
documentType- theDocumentTypeto filter on. Document Type must exist.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withFieldNames
Optional: Sets the field names to use as filters for theDocumentFieldMetadataRequest.When omitted, retrieves all available fields.
- Parameters:
fieldNames- the list of names of the fields. Cannot be null, empty, or contains duplicates. Fields must exist. For example, name__v.- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withActiveOnly
DocumentFieldMetadataRequest.Builder withActiveOnly()Optional: Sets a filter to retrieve active field attributes only.When omitted, retrieves active and inactive fields.
- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withEditableOnly
DocumentFieldMetadataRequest.Builder withEditableOnly()Optional: Sets a filter to only retrieve fields which the authenticated user has permission to edit.When omitted, retrieves fields the authenticated user can and cannot edit.
- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withVisibleOnly
DocumentFieldMetadataRequest.Builder withVisibleOnly()Optional: Sets a filter to only retrieve fields which the authenticated user has permission to view.When omitted, retrieves both fields the authenticated user has permission to view and fields hidden with field-level security>.
- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withRequiredOnly
DocumentFieldMetadataRequest.Builder withRequiredOnly()Optional: Sets a filter to retrieve required field attributes only.When omitted, retrieves both required and optional fields.
- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
withFacetableOnly
DocumentFieldMetadataRequest.Builder withFacetableOnly()Optional: Sets a filter to retrieve facetable field attributes only.When omitted, retrieves both facetable and non-facetable fields.
- Returns:
- this
DocumentFieldMetadataRequest.Builder
-
build
DocumentFieldMetadataRequest build()Validates and retrieves a completedDocumentFieldMetadataRequest.- Returns:
- the completed
DocumentFieldMetadataRequest
-