Interface DocumentLifecycleRoleMetadataResponse
public interface DocumentLifecycleRoleMetadataResponse
Holds a
DocumentLifecycleRoleMetadata
collection.-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsRole
(String roleName) Given the document lifecycle role name, checks to see if aDocumentLifecycleRoleMetadata
exists with the name.Given the document lifecycle role name, retrieves theDocumentLifecycleRoleMetadata
.getRoles()
Retrieves all the document lifecycle roles in this collection as a List ofDocumentLifecycleRoleMetadata
.
-
Method Details
-
getRole
Given the document lifecycle role name, retrieves theDocumentLifecycleRoleMetadata
. This value is never null.- Parameters:
roleName
- name of the document lifecycle role. Cannot be null or empty. Document lifecycle role must exist. For example,reviewer__c
.- Returns:
- a
DocumentLifecycleRoleMetadata
with the given name - Throws:
RuntimeException
- if the operation fails to find a document lifecycle role for the given name in this response
-
containsRole
Given the document lifecycle role name, checks to see if aDocumentLifecycleRoleMetadata
exists with the name.- Parameters:
roleName
- name of the document lifecycle role. Cannot be null or empty. Document lifecycle role must exist. For example,reviewer__c
.- Returns:
- true if a
DocumentLifecycleRoleMetadata
exists with the given name, false otherwise
-
getRoles
List<DocumentLifecycleRoleMetadata> getRoles()Retrieves all the document lifecycle roles in this collection as a List ofDocumentLifecycleRoleMetadata
.- Returns:
- List of
DocumentLifecycleRoleMetadata
-