|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectManager
Manager for Project
Method Summary | |
---|---|
Project |
createProject(java.lang.String key,
java.lang.String name)
Creates a new Project Note that this method will not save the project |
Project |
createProject(java.lang.String key,
java.lang.String name,
java.lang.String description)
Creates a new Project |
void |
deleteProject(Project project)
Removes the project from the system |
java.util.Set<Project> |
getAllProjects()
Returns a collection of Project objects |
java.util.Collection<Project> |
getAllProjectsMarkedForDeletion()
|
Project |
getProjectById(long id)
Returns the build given the id |
Project |
getProjectByKey(java.lang.String key)
Returns the prokect given a project key |
Project |
getProjectByName(java.lang.String projectName)
Returns project by name |
java.util.Set<Project> |
getProjects()
Returns a collection of Project objects |
java.util.List<Project> |
getSortedProjects()
Returns a sorted by name list of projects. |
boolean |
isExistingProjectKey(java.lang.String projectKey)
Returns true if the project name already exists |
boolean |
isExistingProjectName(java.lang.String projectName)
Returns true if the project name already exists |
void |
saveProject(Project project)
Saves the project |
Method Detail |
---|
@NotNull Project createProject(@NotNull java.lang.String key, @NotNull java.lang.String name)
key
- name
-
@NotNull Project createProject(@NotNull java.lang.String key, @NotNull java.lang.String name, @NotNull java.lang.String description)
key
- name
- description
-
@NotNull java.util.Set<Project> getProjects()
Project
objects
@NotNull java.util.List<Project> getSortedProjects()
@NotNull java.util.Set<Project> getAllProjects()
Project
objects
@Nullable Project getProjectByKey(@NotNull java.lang.String key)
key
- - the project key e.g. BAMBOO (not BAMBOO-TRUNK)
Project
if the key matches. Otherwise null@Nullable Project getProjectById(long id)
id
-
Project
. null if not found.Project getProjectByName(@NotNull java.lang.String projectName)
projectName
-
boolean isExistingProjectKey(@NotNull java.lang.String projectKey)
projectKey
- to check
boolean isExistingProjectName(@NotNull java.lang.String projectName)
projectName
- to check
void saveProject(@NotNull Project project)
project
- void deleteProject(@NotNull Project project)
project
- project@NotNull java.util.Collection<Project> getAllProjectsMarkedForDeletion()
Project
s that are marked for deletion..
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |