@ProviderType
public interface WorkflowPackageManager
| Modifier and Type | Method and Description |
|---|---|
com.day.cq.wcm.api.Page |
create(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String name,
String... paths)
Creates a Workflow Package for the provided paths.
|
com.day.cq.wcm.api.Page |
create(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String bucketSegment,
String name,
String... paths)
Creates a Workflow Package for the provided paths.
|
void |
delete(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String workflowPackagePath)
Deletes the specified Workflow Package.
|
List<String> |
getPaths(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String workflowPackagePath)
Gets the payload paths in the Workflow Package.
|
List<String> |
getPaths(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String workflowPackagePath,
String[] nodeTypes)
Gets the payload paths in the Workflow Package.
|
boolean |
isWorkflowPackage(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
Checks if the resource at the specified path is a Workflow Package Page.
|
com.day.cq.wcm.api.Page create(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String bucketSegment,
String name,
String... paths)
throws com.day.cq.wcm.api.WCMException,
javax.jcr.RepositoryException
resourceResolver - the resource resolver used to create the packagebucketSegment - a path segment used to organize workflow packagesname - the name of the packagepaths - the paths to includecom.day.cq.wcm.api.WCMExceptionjavax.jcr.RepositoryExceptioncom.day.cq.wcm.api.Page create(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String name,
String... paths)
throws com.day.cq.wcm.api.WCMException,
javax.jcr.RepositoryException
resourceResolver - the resource resolver used to create the packagename - the name of the packagepaths - the paths to includecom.day.cq.wcm.api.WCMExceptionjavax.jcr.RepositoryExceptionList<String> getPaths(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workflowPackagePath) throws javax.jcr.RepositoryException
resourceResolver - The resource resolver to access the Workflow PackageworkflowPackagePath - the absolute path to the Workflow Packagejavax.jcr.RepositoryExceptionList<String> getPaths(org.apache.sling.api.resource.ResourceResolver resourceResolver, String workflowPackagePath, String[] nodeTypes) throws javax.jcr.RepositoryException
resourceResolver - The resource resolver to access the Workflow PackageworkflowPackagePath - the absolute path to the Workflow PackagenodeTypes - the allowed node types to include in the Workflow Packagejavax.jcr.RepositoryExceptionvoid delete(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String workflowPackagePath)
throws javax.jcr.RepositoryException
resourceResolver - The resource resolver to access the Workflow PackageworkflowPackagePath - the absolute path to the Workflow Package to deletejavax.jcr.RepositoryExceptionboolean isWorkflowPackage(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path)
resourceResolver - The resource resolver to access the Workflow Package candidatepath - The path to the candidate Workflow PackageCopyright © 2013–2020 Adobe. All rights reserved.