Interface ProjectService

All Known Implementing Classes:
ProjectServiceImpl

public interface ProjectService
Wrapper for JIRA's ProjectService, since it's not that trivial to actually create a usable project. JIRA's service does only half the job.
Author:
ahennecke
  • Method Details

    • createProject

      @Nonnull 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). If one of the steps fails, it'll try to delete the previously created data again (pseudo-transactionality).
      Returns:
      Outcome of the operation (either valid Value or Errors).
    • validateCreateProject

      @Nonnull ServiceResult validateCreateProject(com.atlassian.jira.user.ApplicationUser user, String name, String key, String leadUserName)
      Validate the creation of a project with the given parameters.
      Returns:
      ServiceResult containing Errors if encountered
    • deleteProject

      @Nonnull ServiceResult deleteProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project)
    • canCreateProject

      @Nonnull boolean canCreateProject(com.atlassian.jira.user.ApplicationUser user)