Interface ObjectLifecycleStateMetadataCollectionResponse
public interface ObjectLifecycleStateMetadataCollectionResponse
Holds an
ObjectLifecycleStateMetadata
collection.-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsState
(String stateName) Given the object lifecycle state name, checks to see if anObjectLifecycleStateMetadata
exists with the name.Given the object lifecycle state name, retrieves theObjectLifecycleStateMetadata
.Retrieves all the object lifecycle states in this collection as a list ofObjectLifecycleStateMetadata
.
-
Method Details
-
getState
Given the object lifecycle state name, retrieves theObjectLifecycleStateMetadata
. This value is never null.- Parameters:
stateName
- name of the object lifecycle state. Cannot be null or empty. Object lifecycle state must exist. For example,initiated_state__c
- Returns:
- an
ObjectLifecycleStateMetadata
with the given name - Throws:
RuntimeException
- if the operation fails to find an object lifecycle state for the given name in this response
-
containsState
Given the object lifecycle state name, checks to see if anObjectLifecycleStateMetadata
exists with the name.- Parameters:
stateName
- name of the object lifecycle state. Cannot be null or empty. For example,initiated_state__c
- Returns:
- true if an
ObjectLifecycleStateMetadata
exists with the given name, false otherwise
-
getStates
List<ObjectLifecycleStateMetadata> getStates()Retrieves all the object lifecycle states in this collection as a list ofObjectLifecycleStateMetadata
.- Returns:
- a list of all the
ObjectLifecycleStateMetadata
in this collection
-