Class SampleDataGeneratorImpl
java.lang.Object
com.atlassian.greenhopper.sampledata.SampleDataGeneratorImpl
- All Implemented Interfaces:
SampleDataGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionSampleDataGeneratorImpl(com.atlassian.jira.plugins.importer.sample.SampleDataImporter importer, AgileProjectConfigurator agileProjectConfigurator, com.atlassian.jira.config.properties.ApplicationProperties applicationProperties, com.atlassian.jira.util.I18nHelper.BeanFactory i18nBeanFactory, com.atlassian.plugin.PluginAccessor pluginAccessor, SprintManager sprintManager, WorkflowService workflowService, com.atlassian.jira.issue.CustomFieldManager customFieldManager, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, SimplifiedWorkflowService simplifiedWorkflowService, LexoRankCustomFieldService rankCustomFieldService, com.atlassian.jira.project.ProjectManager projectManager, com.atlassian.jira.issue.IssueManager issueManager, LexoRankManager lexoRankManager, RapidViewHelper rapidViewHelper, RapidViewPresetService rapidViewPresetService, ColumnService columnService, com.atlassian.jira.issue.IssueFactory issueFactory, IssueTypeService issueTypeService, ProjectService projectService, EpicCustomFieldService epicCustomFieldService, VersionService versionService, OrderedPriorityHelper orderedPriorityHelper, IssueIndexService issueIndexService) -
Method Summary
Modifier and TypeMethodDescriptioncreateRapidViewWithProjects(String rapidViewName, RapidViewPreset rapidViewPreset, List<com.atlassian.jira.project.Project> projects) Creates a rapid view for a list of projectsServiceOutcome<com.atlassian.jira.project.Project>createSampleKanbanData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a kanban project and fills it with sample dataServiceOutcome<com.atlassian.jira.project.Project>createSampleScrumData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a scrum project and fills it with sample dataServiceOutcome<com.atlassian.jira.project.Project>importSampleDataFromUrl(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName, SimplifiedWorkflowPresets projectWorkflow, URL sampleDataUrl, ProjectType projectType) Creates a project from data contained in a JSON file
-
Constructor Details
-
SampleDataGeneratorImpl
@Autowired public SampleDataGeneratorImpl(com.atlassian.jira.plugins.importer.sample.SampleDataImporter importer, AgileProjectConfigurator agileProjectConfigurator, com.atlassian.jira.config.properties.ApplicationProperties applicationProperties, com.atlassian.jira.util.I18nHelper.BeanFactory i18nBeanFactory, com.atlassian.plugin.PluginAccessor pluginAccessor, SprintManager sprintManager, WorkflowService workflowService, com.atlassian.jira.issue.CustomFieldManager customFieldManager, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, SimplifiedWorkflowService simplifiedWorkflowService, LexoRankCustomFieldService rankCustomFieldService, com.atlassian.jira.project.ProjectManager projectManager, com.atlassian.jira.issue.IssueManager issueManager, LexoRankManager lexoRankManager, RapidViewHelper rapidViewHelper, RapidViewPresetService rapidViewPresetService, ColumnService columnService, com.atlassian.jira.issue.IssueFactory issueFactory, IssueTypeService issueTypeService, ProjectService projectService, EpicCustomFieldService epicCustomFieldService, VersionService versionService, OrderedPriorityHelper orderedPriorityHelper, IssueIndexService issueIndexService)
-
-
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:SampleDataGeneratorCreates a kanban project and fills it with sample data- Specified by:
createSampleKanbanDatain interfaceSampleDataGeneratorprojectLeadUserName- anOptionwhich 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:SampleDataGeneratorCreates a scrum project and fills it with sample data- Specified by:
createSampleScrumDatain interfaceSampleDataGenerator- Parameters:
projectKey- the key for the project to be createdprojectName- the name for the project to be createdprojectLeadUserName- anOptionwhich 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:SampleDataGeneratorCreates a project from data contained in a JSON file- Specified by:
importSampleDataFromUrlin interfaceSampleDataGenerator- Parameters:
projectKey- the key for the project to be createdprojectName- the name for the project to be createdprojectLeadUserName- anOptionwhich can contain the user name of the lead for the project to be createdprojectWorkflow- the simplified workflow preset to use for the project to be createdsampleDataUrl- the URL to the JSON file containing the sample data to importprojectType- 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:SampleDataGeneratorCreates a rapid view for a list of projects- Specified by:
createRapidViewWithProjectsin interfaceSampleDataGenerator- Parameters:
rapidViewName- the name of the rapid view to be createdrapidViewPreset- the column preset for the rapid view to be createdprojects- the projects to be shown on the rapid view
-