Interface ObjectLifecycleMetadataCollectionResponse
public interface ObjectLifecycleMetadataCollectionResponse
Holds an
ObjectLifecycleMetadata collection.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLifecycle(String lifecycleName) Given the object lifecycle name, checks to see if anObjectLifecycleMetadataexists with the name.getLifecycle(String lifecycleName) Given the object lifecycle name, retrieves theObjectLifecycleMetadata.Retrieves all the object lifecycles in this collection as a list ofObjectLifecycleMetadata.
-
Method Details
-
getLifecycle
Given the object lifecycle name, retrieves theObjectLifecycleMetadata. This value is never null.- Parameters:
lifecycleName- name of the object lifecycle. Cannot be null or empty. Object lifecycle must exist. For example,checklist_lifecycle__sys- Returns:
- an
ObjectLifecycleMetadatawith the given name - Throws:
RuntimeException- if the operation fails to find an object lifecycle for the given name in this response
-
containsLifecycle
Given the object lifecycle name, checks to see if anObjectLifecycleMetadataexists with the name.- Parameters:
lifecycleName- name of the object lifecycle. Cannot be null or empty. For example,checklist_lifecycle__sys- Returns:
- true if an
ObjectLifecycleMetadataexists with the given lifecycle name, false otherwise
-
getLifecycles
List<ObjectLifecycleMetadata> getLifecycles()Retrieves all the object lifecycles in this collection as a list ofObjectLifecycleMetadata.- Returns:
- a list of all the
ObjectLifecycleMetadatain this collection
-