|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.migration.plan.ProjectManagerDecorator
public class ProjectManagerDecorator
Pass-through decorator for ProjectManager
Constructor Summary | |
---|---|
ProjectManagerDecorator(ProjectManager projectManager)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectManagerDecorator(ProjectManager projectManager)
Method Detail |
---|
@NotNull public Project createProject(@NotNull java.lang.String key, @NotNull java.lang.String name)
ProjectManager
createProject
in interface ProjectManager
@NotNull public Project createProject(@NotNull java.lang.String key, @NotNull java.lang.String name, @NotNull java.lang.String description)
ProjectManager
createProject
in interface ProjectManager
@NotNull public java.util.Set<Project> getProjects()
ProjectManager
Project
objects
getProjects
in interface ProjectManager
@NotNull public java.util.List<Project> getSortedProjects()
ProjectManager
getSortedProjects
in interface ProjectManager
@NotNull public java.util.Set<Project> getAllProjects()
ProjectManager
Project
objects
getAllProjects
in interface ProjectManager
public Project getProjectByKey(@NotNull java.lang.String key)
ProjectManager
getProjectByKey
in interface ProjectManager
key
- - the project key e.g. BAMBOO (not BAMBOO-TRUNK)
Project
if the key matches. Otherwise null@Nullable public Project getProjectById(long id)
ProjectManager
getProjectById
in interface ProjectManager
Project
. null if not found.public Project getProjectByName(@NotNull java.lang.String projectName)
ProjectManager
getProjectByName
in interface ProjectManager
public boolean isExistingProjectKey(@NotNull java.lang.String projectKey)
ProjectManager
isExistingProjectKey
in interface ProjectManager
projectKey
- to check
public boolean isExistingProjectName(@NotNull java.lang.String projectName)
ProjectManager
isExistingProjectName
in interface ProjectManager
projectName
- to check
public void saveProject(@NotNull Project project)
ProjectManager
saveProject
in interface ProjectManager
public void deleteProject(@NotNull Project project)
ProjectManager
deleteProject
in interface ProjectManager
project
- project@NotNull public java.util.Collection<Project> getAllProjectsMarkedForDeletion()
getAllProjectsMarkedForDeletion
in interface ProjectManager
Project
s that are marked for deletion..
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |