Interface DocumentLifecycleStateMetadataResponse
public interface DocumentLifecycleStateMetadataResponse
Holds a
DocumentLifecycleStateMetadata
collection.-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsState
(String stateName) Given the document lifecycle state name, checks to see if aDocumentLifecycleStateMetadata
exists with the name.Given the document lifecycle state name, retrieves theDocumentLifecycleStateMetadata
.Retrieves all the document lifecycle states in this collection as a list ofDocumentLifecycleStateMetadata
.
-
Method Details
-
getState
Given the document lifecycle state name, retrieves theDocumentLifecycleStateMetadata
. This value is never null.- Parameters:
stateName
- name of the document lifecycle state. Cannot be null or empty. Document lifecycle state must exist. For example,draft_state__c
.- Returns:
- a
DocumentLifecycleStateMetadata
with the given name - Throws:
RuntimeException
- if the operation fails to find a document lifecycle state for the given name in this response
-
containsState
Given the document lifecycle state name, checks to see if aDocumentLifecycleStateMetadata
exists with the name.- Parameters:
stateName
- name of the document lifecycle state. Cannot be null or empty. For example,draft_state__c
.- Returns:
- true if a
DocumentLifecycleStateMetadata
exists with the given name, false otherwise
-
getStates
List<DocumentLifecycleStateMetadata> getStates()Retrieves all the document lifecycle states in this collection as a list ofDocumentLifecycleStateMetadata
. The states are sorted in ascending order of theirorder
field values.- Returns:
- a list of all the
DocumentLifecycleStateMetadata
in this collection
-