|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProjectManager
This manager provides methods to load tasks by ID and to retrieve lists of projects. Once a handle on a project is obtained one can use the methods in this interface to update or delete a project or otherwise modify the project.
Project| Method Summary | |
|---|---|
Project |
create(JiveContainer container,
String name,
String description,
User user,
List<CheckPoint> checkPoints,
Date dueDate)
Creates a new project as a child of the parent container |
com.jivesoftware.community.project.ProjectStatus |
createStatus(Project project,
User user,
com.jivesoftware.community.project.ProjectStatus.Type type,
String description)
Creates a project status for the given project. |
void |
createTrackedProject(User user,
Project project)
Creates a new tracked project. |
void |
delete(Project project)
Deletes a project and all of its content. |
Project |
getProject(long projectID)
Returns the project with the given projectID |
int |
getProjectCount()
Returns a count of all the projects in the system |
int |
getProjectCount(com.jivesoftware.community.project.ProjectResultFilter resultFilter)
Returns a count of all the projects in the system, according to the work space result filter |
int |
getProjectCountFromTaskList(User owner)
Returns the count of unique projects that the user is assigned one or more tasks |
JiveIterator<Project> |
getProjects()
Returns an Iterable for all the projects in the container |
JiveIterator<Project> |
getProjects(com.jivesoftware.community.project.ProjectResultFilter resultFilter)
Returns an Iterable for all the visible projects in the system, according to the work space result filter |
JiveIterator<Project> |
getProjectsFromTaskList(User owner)
Returns an iterator of unique projects that the user is assigned one or more tasks |
com.jivesoftware.community.project.ProjectStatus |
getStatus(long statusID)
Returns the project status for the given status ID. |
com.jivesoftware.community.project.ProjectStatus |
getStatus(Project project)
Returns the current project status for the given project. |
int |
getTrackedProjectCount(User user)
Returns the number of projects the user is tracking. |
List<Project> |
getTrackedProjects(User user)
Returns all tracked projects for the given user. |
int |
getUserCount(Project project)
Returns the count of unique users that own tasks in the specified project |
JiveIterator<User> |
getUsers(Project project)
Returns an iterator of unique users that own tasks in the specified project |
boolean |
isProjectsEnabled()
Returns true if Projects is enabled and false if it is not. |
boolean |
isTrackedProject(User user,
Project project)
Returns if the project is currently tracked by the user. |
void |
removeTrackedProject(User user,
Project project)
Removes a tracked project for the user. |
void |
setProjectsEnabled(boolean isProjectsEnabled)
Enables or disables Projects. |
void |
update(Project project)
Persists project changes, and broadcasts changes across the cluster. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isProjectsEnabled()
void setProjectsEnabled(boolean isProjectsEnabled)
isProjectsEnabled - true to enabled Projects and false to disable it.
Project create(JiveContainer container,
String name,
String description,
User user,
List<CheckPoint> checkPoints,
Date dueDate)
throws UnauthorizedException
container - the container to create the project withinname - the name for the new projectdescription - the description for the new projectcheckPoints - a list of checkpoints for the new projectdueDate - the due date for the new project
UnauthorizedException - if not authorized to create a project in the given container
NameAlreadyExistsException - if the project name already exists in the parent container
Project getProject(long projectID)
throws NotFoundException,
UnauthorizedException
projectID - the id of the project to return
NotFoundException - if no project exists for that ID
UnauthorizedException - if not allowed to view the projectint getProjectCount()
int getProjectCount(com.jivesoftware.community.project.ProjectResultFilter resultFilter)
resultFilter - the work space result filter
JiveIterator<Project> getProjects()
JiveIterator<Project> getProjects(com.jivesoftware.community.project.ProjectResultFilter resultFilter)
resultFilter - the work space result filter
int getProjectCountFromTaskList(User owner)
owner - the specified user
JiveIterator<Project> getProjectsFromTaskList(User owner)
owner - the specified user
int getUserCount(Project project)
project - the specified project
JiveIterator<User> getUsers(Project project)
project - the specified project
void update(Project project)
throws UnauthorizedException
RequiresUpdate annotation change this method should be called to save the
changes.
project - The project to save updates for.
UnauthorizedException - if not allowed to modify the project
void delete(Project project)
throws UnauthorizedException
project - the thread to delete.
UnauthorizedException - if not allowed to delete the project
com.jivesoftware.community.project.ProjectStatus createStatus(Project project,
User user,
com.jivesoftware.community.project.ProjectStatus.Type type,
String description)
project - the project to create the status for.user - the user creating the status.type - the type of status.description - the description describing the status.
com.jivesoftware.community.project.ProjectStatus getStatus(Project project)
project - the project for obtaining the status.
com.jivesoftware.community.project.ProjectStatus getStatus(long statusID)
statusID - the ID of the project status.
void createTrackedProject(User user,
Project project)
user - the user tracking the project.project - the project to track.
boolean isTrackedProject(User user,
Project project)
user - the user tracking the project.project - the project being tracked.List<Project> getTrackedProjects(User user)
user - the user tracking projects
void removeTrackedProject(User user,
Project project)
user - the user removing the tracked project.project - the project to remove from tracking.int getTrackedProjectCount(User user)
user - the user tracking projects
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||