Interface ObjectLifecycleStateMetadataCollectionResponse
public interface ObjectLifecycleStateMetadataCollectionResponse
Holds an
ObjectLifecycleStateMetadata collection.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsState(String stateName) Given the object lifecycle state name, checks to see if anObjectLifecycleStateMetadataexists 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
ObjectLifecycleStateMetadatawith 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 anObjectLifecycleStateMetadataexists 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
ObjectLifecycleStateMetadataexists 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
ObjectLifecycleStateMetadatain this collection
-