Interface ObjectLifecycleRoleMetadataCollectionResponse
public interface ObjectLifecycleRoleMetadataCollectionResponse
Holds an
ObjectLifecycleRoleMetadata collection.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsRole(String roleName) Given the object lifecycle role name, checks to see if anObjectLifecycleRoleMetadataexists with the name.Given the object lifecycle role name, retrieves theObjectLifecycleRoleMetadata.getRoles()Retrieves all the object lifecycle roles in this collection as a list ofObjectLifecycleRoleMetadata.
-
Method Details
-
getRole
Given the object lifecycle role name, retrieves theObjectLifecycleRoleMetadata. This value is never null.- Parameters:
roleName- name of the object lifecycle role. Cannot be null or empty. Object lifecycle role must exist. For example,reviewer__c- Returns:
- an
ObjectLifecycleRoleMetadatawith the given name - Throws:
RuntimeException- if the operation fails to find an object lifecycle role for the given name in this response
-
containsRole
Given the object lifecycle role name, checks to see if anObjectLifecycleRoleMetadataexists with the name.- Parameters:
roleName- name of the object lifecycle role. Cannot be null or empty. Object lifecycle role must exist. For example,reviewer__c- Returns:
- true if an
ObjectLifecycleRoleMetadataexists with the given name, false otherwise
-
getRoles
List<ObjectLifecycleRoleMetadata> getRoles()Retrieves all the object lifecycle roles in this collection as a list ofObjectLifecycleRoleMetadata.- Returns:
- a list of all the
ObjectLifecycleRoleMetadatain this collection
-