Class ProjectServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.project.ProjectServiceImpl
All Implemented Interfaces:
ProjectService

@Service public class ProjectServiceImpl extends Object implements ProjectService
  • 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: ProjectService
      Create 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:
      createProject in interface ProjectService
      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: ProjectService
      Validate the creation of a project with the given parameters.
      Specified by:
      validateCreateProject in interface ProjectService
      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:
      deleteProject in interface ProjectService
    • canCreateProject

      public boolean canCreateProject(com.atlassian.jira.user.ApplicationUser user)
      Specified by:
      canCreateProject in interface ProjectService