Interface DocumentLifecycleStateMetadataResponse
public interface DocumentLifecycleStateMetadataResponse
Holds a
DocumentLifecycleStateMetadata collection.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsState(String stateName) Given the document lifecycle state name, checks to see if aDocumentLifecycleStateMetadataexists 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
DocumentLifecycleStateMetadatawith 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 aDocumentLifecycleStateMetadataexists 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
DocumentLifecycleStateMetadataexists 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 theirorderfield values.- Returns:
- a list of all the
DocumentLifecycleStateMetadatain this collection
-