Interface ObjectLifecycleRoleMetadataCollectionResponse
public interface ObjectLifecycleRoleMetadataCollectionResponse
Holds an
ObjectLifecycleRoleMetadata
collection.-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsRole
(String roleName) Given the object lifecycle role name, checks to see if anObjectLifecycleRoleMetadata
exists 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
ObjectLifecycleRoleMetadata
with 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 anObjectLifecycleRoleMetadata
exists 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
ObjectLifecycleRoleMetadata
exists 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
ObjectLifecycleRoleMetadata
in this collection
-