|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProjectManager
| Method Summary | |
|---|---|
SProject |
createProject(SProject originalProject,
java.lang.String newProjectName,
boolean changeScopeOfLocalVcsRoots)
Deprecated. see createProject(SProject, String, CopyOptions) |
SProject |
createProject(SProject originalProject,
java.lang.String newProjectName,
CopyOptions options)
Creates new project by copying all settings from original project. |
SProject |
createProject(java.lang.String projectName)
Creates new project with specified name (name is case insensitive). |
SBuildType |
findBuildTypeById(java.lang.String buildTypeId)
Searches for a build configuration with specified id. |
SBuildType |
findBuildTypeIncludeRemote(java.lang.String buildTypeId)
Searches for a build configuration with specified id. |
java.util.Collection<SBuildType> |
findBuildTypes(java.util.Collection<java.lang.String> buildTypeIds)
Returns collection of build types corresponding to the specified collection of build type ids. |
SProject |
findProjectById(java.lang.String projectId)
Searches for a project with specified id. |
SProject |
findProjectByName(java.lang.String projectName)
Searches for a project with specified name (case insensitive). |
java.lang.String |
findProjectId(java.lang.String buildTypeId)
Searches for a project which contains a build type with the specified build type id. |
java.util.Collection<SProject> |
findProjects(java.util.Collection<java.lang.String> projectsIds)
Returns collection of projects corresponding to the specified ids. |
java.util.List<SBuildType> |
getAllBuildTypes()
Returns list of all build configurations sorted by project and build configuration name. |
java.util.List<SBuildType> |
getAllBuildTypes(User user)
Returns list of all build configurations sorted by project according to the order specified by user and then by build configuration name. |
java.util.SortedMap<SProject,java.util.List<SBuildType>> |
getFilteredBuildTypes(User user,
BuildTypeFilter filter)
Returns sorted map of build configurations per project. |
int |
getNumberOfBuildTypes()
Returns total number of build configurations currently loaded in the server |
int |
getNumberOfProjects()
Returns total number of projects currently loaded in the server |
java.util.List<java.lang.String> |
getProjectIds()
A helper method which returns the list of all projectID configured on the server. |
java.util.List<SProject> |
getProjects()
Returns list of all projects. |
java.util.List<SProject> |
getProjects(User user)
Returns list of all projects sorted according to the order specified by user |
void |
removeProject(java.lang.String projectId)
Removes project from the current list of projects. |
| Method Detail |
|---|
@NotNull java.util.List<SProject> getProjects()
int getNumberOfProjects()
@NotNull
java.util.List<SProject> getProjects(@NotNull
User user)
user - the user
@NotNull
SProject createProject(@NotNull
java.lang.String projectName)
throws DuplicateProjectNameException
projectName - name of the new project
DuplicateProjectNameException - if project with specified name already exists
@NotNull
SProject createProject(@NotNull
SProject originalProject,
@NotNull
java.lang.String newProjectName,
@NotNull
CopyOptions options)
throws MaxNumberOfBuildTypesReachedException
originalProject - original projectnewProjectName - name for new project. If there exists project with same name
then " (1)", " (2)", ... suffix will be added to the specified name.options - additional options
MaxNumberOfBuildTypesReachedException - if original project build configurations cannot be copied
because maximum number of build configurations is reached or will be exceeded if project will be copied
@NotNull
SProject createProject(@NotNull
SProject originalProject,
@NotNull
java.lang.String newProjectName,
boolean changeScopeOfLocalVcsRoots)
throws MaxNumberOfBuildTypesReachedException
createProject(SProject, String, CopyOptions)
MaxNumberOfBuildTypesReachedException
@Nullable
SProject findProjectByName(@NotNull
java.lang.String projectName)
projectName - name of the project to search for
@Nullable
SProject findProjectById(@Nullable
java.lang.String projectId)
throws AccessDeniedException
projectId - id of the project to search for
AccessDeniedException - no access rights for the current user@NotNull java.util.Collection<SProject> findProjects(java.util.Collection<java.lang.String> projectsIds)
projectsIds - collection of project identifiers to be searched for
@Nullable
SBuildType findBuildTypeById(@Nullable
java.lang.String buildTypeId)
throws AccessDeniedException
buildTypeId - id of the build configuration to search for
AccessDeniedException - if current authority holder doesn't have access to build configuration with given IDfindBuildTypeIncludeRemote(String)
@NotNull
java.util.Collection<SBuildType> findBuildTypes(@NotNull
java.util.Collection<java.lang.String> buildTypeIds)
buildTypeIds - collection of build type ids
@Nullable SBuildType findBuildTypeIncludeRemote(java.lang.String buildTypeId)
buildTypeId - id of the build configuration to search for
findBuildTypeById(String)@NotNull java.util.List<SBuildType> getAllBuildTypes()
int getNumberOfBuildTypes()
@NotNull
java.util.List<SBuildType> getAllBuildTypes(@NotNull
User user)
user - user whose settings to use to sort build types
void removeProject(@NotNull
java.lang.String projectId)
throws ProjectRemoveFailedException
projectId - id of project to remove
ProjectRemoveFailedException - if remove failedjava.util.List<java.lang.String> getProjectIds()
java.util.SortedMap<SProject,java.util.List<SBuildType>> getFilteredBuildTypes(@NotNull
User user,
@Nullable
BuildTypeFilter filter)
user - the userfilter - filter of build configurations, can be null
@Nullable
java.lang.String findProjectId(@NotNull
java.lang.String buildTypeId)
buildTypeId - id of a build type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||