Class SampleDataGeneratorImpl

java.lang.Object
com.atlassian.greenhopper.sampledata.SampleDataGeneratorImpl
All Implemented Interfaces:
SampleDataGenerator

@Service public class SampleDataGeneratorImpl extends Object implements SampleDataGenerator
  • Constructor Details

  • Method Details

    • createSampleKanbanData

      public ServiceOutcome<com.atlassian.jira.project.Project> createSampleKanbanData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName)
      Description copied from interface: SampleDataGenerator
      Creates a kanban project and fills it with sample data
      Specified by:
      createSampleKanbanData in interface SampleDataGenerator
      projectLeadUserName - an Option which can contain the user name of the lead for the project to be created
      Returns:
      an outcome which will either have the project or errors
    • createSampleScrumData

      public ServiceOutcome<com.atlassian.jira.project.Project> createSampleScrumData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName)
      Description copied from interface: SampleDataGenerator
      Creates a scrum project and fills it with sample data
      Specified by:
      createSampleScrumData in interface SampleDataGenerator
      Parameters:
      projectKey - the key for the project to be created
      projectName - the name for the project to be created
      projectLeadUserName - an Option which can contain the user name of the lead for the project to be created
      Returns:
      an outcome which will either have the project or errors
    • importSampleDataFromUrl

      public ServiceOutcome<com.atlassian.jira.project.Project> importSampleDataFromUrl(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName, SimplifiedWorkflowPresets projectWorkflow, URL sampleDataUrl, ProjectType projectType)
      Description copied from interface: SampleDataGenerator
      Creates a project from data contained in a JSON file
      Specified by:
      importSampleDataFromUrl in interface SampleDataGenerator
      Parameters:
      projectKey - the key for the project to be created
      projectName - the name for the project to be created
      projectLeadUserName - an Option which can contain the user name of the lead for the project to be created
      projectWorkflow - the simplified workflow preset to use for the project to be created
      sampleDataUrl - the URL to the JSON file containing the sample data to import
      projectType - the project type
      Returns:
      an outcome which will either have the project or errors
    • createRapidViewWithProjects

      public ServiceOutcome<RapidView> createRapidViewWithProjects(String rapidViewName, RapidViewPreset rapidViewPreset, List<com.atlassian.jira.project.Project> projects)
      Description copied from interface: SampleDataGenerator
      Creates a rapid view for a list of projects
      Specified by:
      createRapidViewWithProjects in interface SampleDataGenerator
      Parameters:
      rapidViewName - the name of the rapid view to be created
      rapidViewPreset - the column preset for the rapid view to be created
      projects - the projects to be shown on the rapid view