Interface DocumentLifecycleRoleMetadataResponse
public interface DocumentLifecycleRoleMetadataResponse
Holds a
DocumentLifecycleRoleMetadata collection.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsRole(String roleName) Given the document lifecycle role name, checks to see if aDocumentLifecycleRoleMetadataexists 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
DocumentLifecycleRoleMetadatawith 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 aDocumentLifecycleRoleMetadataexists 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
DocumentLifecycleRoleMetadataexists 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
-