Interface ObjectLifecycleMetadataCollectionResponse


public interface ObjectLifecycleMetadataCollectionResponse
Holds an ObjectLifecycleMetadata collection.
  • Method Details

    • getLifecycle

      ObjectLifecycleMetadata getLifecycle(String lifecycleName)
      Given the object lifecycle name, retrieves the ObjectLifecycleMetadata. 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 ObjectLifecycleMetadata with the given name
      Throws:
      RuntimeException - if the operation fails to find an object lifecycle for the given name in this response
    • containsLifecycle

      boolean containsLifecycle(String lifecycleName)
      Given the object lifecycle name, checks to see if an ObjectLifecycleMetadata exists with the name.
      Parameters:
      lifecycleName - name of the object lifecycle. Cannot be null or empty. For example, checklist_lifecycle__sys
      Returns:
      true if an ObjectLifecycleMetadata exists with the given lifecycle name, false otherwise
    • getLifecycles

      List<ObjectLifecycleMetadata> getLifecycles()
      Retrieves all the object lifecycles in this collection as a list of ObjectLifecycleMetadata.
      Returns:
      a list of all the ObjectLifecycleMetadata in this collection