Class ProjectServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.project.ProjectServiceImpl
- All Implemented Interfaces:
ProjectService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateProject(com.atlassian.jira.user.ApplicationUser user) ServiceOutcome<com.atlassian.jira.project.Project>createProject(com.atlassian.jira.user.ApplicationUser user, String name, String key, String description, String leadUserName, String url, Long assigneeType, Long avatarId, ProjectType projectType) Create a project with all the necessary bells and whistles (schemas of various kinds, all default).deleteProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) validateCreateProject(com.atlassian.jira.user.ApplicationUser user, String name, String key, String leadUserName) Validate the creation of a project with the given parameters.
-
Constructor Details
-
ProjectServiceImpl
public ProjectServiceImpl()
-
-
Method Details
-
createProject
@Nonnull public ServiceOutcome<com.atlassian.jira.project.Project> createProject(com.atlassian.jira.user.ApplicationUser user, String name, String key, String description, String leadUserName, String url, Long assigneeType, Long avatarId, ProjectType projectType) Description copied from interface:ProjectServiceCreate a project with all the necessary bells and whistles (schemas of various kinds, all default). If one of the steps fails, it'll try to delete the previously created data again (pseudo-transactionality).- Specified by:
createProjectin interfaceProjectService- Returns:
- Outcome of the operation (either valid Value or Errors).
-
validateCreateProject
@Nonnull public ServiceResult validateCreateProject(com.atlassian.jira.user.ApplicationUser user, String name, String key, String leadUserName) Description copied from interface:ProjectServiceValidate the creation of a project with the given parameters.- Specified by:
validateCreateProjectin interfaceProjectService- Returns:
- ServiceResult containing Errors if encountered
-
deleteProject
@Nonnull public ServiceResult deleteProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) - Specified by:
deleteProjectin interfaceProjectService
-
canCreateProject
public boolean canCreateProject(com.atlassian.jira.user.ApplicationUser user) - Specified by:
canCreateProjectin interfaceProjectService
-