public interface ProjectManager
ProjectManager
provides the ability to retrieve projects,
delete projects, and create projects.
ProjectManager
instances are adapted from ResourceResolver
.
Note that Projects can also be adapted from a Resource
if that resource represents a Project.
Note that all changes are transient and need to be committed by the caller. For example:
ResourceResolver resourceResolver = ... ProjectManager pm = resourceResolver.adaptTo(ProjectManager.class); Project project = pm.createProject("Test 1"); project.setDescription("This is a test project"); resourceResolver.commit();
ResourceResolver
,
Resource
Modifier and Type | Method and Description |
---|---|
Project |
createProject(String title,
String templatePath)
Creates a new project with the specified title.
|
Project |
createProject(String nodeName,
String title,
String templatePath)
Creates a new project with the specified title.
|
void |
deleteProject(Project project)
Deletes the specified project.
|
Iterator<Project> |
getProjects(ProjectFilter filter,
int startIndex,
int limit)
Retrieves an iterator over projects that are accessible by the current user.
|
List<WorkflowModel> |
getWorkflows(Project project)
Return the list of workflows that are available for the project.
|
Iterator<Project> getProjects(ProjectFilter filter, int startIndex, int limit)
filter
- used to filter the list of returned projectsstartIndex
- the index of the first project to retrievelimit
- the maximum number of projects to retrieveProjectException
- if the loading of the projects fails.void deleteProject(Project project)
project
- the project to delete.ProjectException
- if the project can not be deleted, for example due to access restrictions.Project createProject(String title, String templatePath)
title
- the title of the new projecttemplatePath
- the path of the template to create
the project with.ProjectException
- in case an error occurred.Project createProject(String nodeName, String title, String templatePath)
nodeName
- the name of the node that will be created. If a node
exists with the current name a unique name will be generated
with the nodeName as the prefix.title
- the title of the new projecttemplatePath
- the path of the template to create
the project with.ProjectException
- in case an error occurred."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"