|
||||||||||
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(String key,
String name)
Creates a new Project Note that this method will not save the project |
Project |
createProject(String key,
String name,
String description)
Creates a new Project |
void |
deleteProject(Project project)
Removes the project from the system |
Set<Project> |
getAllProjects()
Returns a collection of Project objects |
Collection<Project> |
getAllProjectsMarkedForDeletion()
|
Project |
getProjectById(long id)
Returns the build given the id |
Project |
getProjectByKey(String key)
Returns the project given a project key |
Project |
getProjectByName(String projectName)
Returns project by name |
Number |
getProjectCount()
|
Set<Project> |
getProjects()
Returns a collection of Project objects |
List<Project> |
getSortedProjects()
Returns a sorted by name list of projects. |
boolean |
isExistingProjectKey(String projectKey)
Returns true if the project name already exists |
boolean |
isExistingProjectName(String projectName)
Returns true if the project name already exists |
void |
saveProject(Project project)
Saves the project |
Method Detail |
---|
@NotNull Project createProject(@NotNull String key, @NotNull String name)
key
- name
-
@NotNull Project createProject(@NotNull String key, @NotNull String name, @NotNull String description)
key
- name
- description
-
@NotNull Set<Project> getProjects()
Project
objects
@NotNull List<Project> getSortedProjects()
@NotNull Set<Project> getAllProjects()
Project
objects
Number getProjectCount()
@Nullable Project getProjectByKey(@NotNull 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 String projectName)
projectName
-
boolean isExistingProjectKey(@NotNull String projectKey)
projectKey
- to check
boolean isExistingProjectName(@NotNull String projectName)
projectName
- to check
void saveProject(@NotNull Project project)
project
- void deleteProject(@NotNull Project project)
project
- project@NotNull 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 |