public class V1InstanceCreator extends Object
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributes(Entity entity,
Map<String,Object> attributes)
Fill attributes for specified entity.
|
Attachment |
attachment(String name,
BaseAsset asset,
String filename,
InputStream stream)
Create a new attachment with a name.
|
Attachment |
attachment(String name,
BaseAsset asset,
String filename,
InputStream stream,
Map<String,Object> attributes)
Create a new attachment with a name.
|
BuildProject |
buildProject(String name,
String reference)
Create a new Build Project with a name and reference.
|
BuildProject |
buildProject(String name,
String reference,
Map<String,Object> attributes)
Create a new Build Project with a name and reference.
|
BuildRun |
buildRun(BuildProject buildProject,
String name,
DB.DateTime date)
Create a new Build Run in the given Build Project with a name and date.
|
BuildRun |
buildRun(BuildProject buildProject,
String name,
DB.DateTime date,
Map<String,Object> attributes)
Create a new Build Run in the given Build Project with a name and date.
|
ChangeSet |
changeSet(String name,
String reference)
Create a new ChangeSet with a name and reference.
|
ChangeSet |
changeSet(String name,
String reference,
Map<String,Object> attributes)
Create a new ChangeSet with a name and reference.
|
Conversation |
conversation(Member author,
String content)
Adds new Conversation.
|
Conversation |
conversation(Member author,
String content,
Map<String,Object> attributes)
Adds new Conversation.
|
Conversation |
conversation(String content)
Adds new Conversation with expression with author as current logged user.
|
Defect |
defect(String name,
Project project)
Create a new Defect with a name.
|
Defect |
defect(String name,
Project project,
Map<String,Object> attributes)
Create a new Defect with a name.
|
Effort |
effort(double value,
Workitem item)
Create a new effort record for the currently logged in member.
|
Effort |
effort(double value,
Workitem item,
Map<String,Object> attributes)
Create a new effort record for the currently logged in member.
|
Effort |
effort(double value,
Workitem item,
Member member,
DB.DateTime date)
Create a new effort record with a value and date, assigned to the given
workitem and member.
|
Effort |
effort(double value,
Workitem item,
Member member,
DB.DateTime date,
Map<String,Object> attributes)
Create a new effort record with a value and date, assigned to the given
workitem and member.
|
Environment |
environment(String name,
Project project)
Creates new Environment.
|
Environment |
environment(String name,
Project project,
Map<String,Object> attributes)
Creates new Environment.
|
Epic |
epic(String name,
Project project)
Create a new Epic with a name.
|
Epic |
epic(String name,
Project project,
Map<String,Object> attributes)
Create a new Epic with a name.
|
Expression |
expression(Member author,
String content,
Expression inReplyTo)
Adds new Expression in Reply To an existing Expression.
|
Goal |
goal(String name,
Project project)
Create a new Goal with a name.
|
Goal |
goal(String name,
Project project,
Map<String,Object> attributes)
Create a new Goal with a name.
|
Issue |
issue(String name,
Project project)
Create a new Issue with a name.
|
Issue |
issue(String name,
Project project,
Map<String,Object> attributes)
Create a new Issue with a name.
|
Issue |
issue(String name,
Retrospective retrospective)
Creates an Issue related to a Retrospective.
|
Issue |
issue(String name,
Retrospective retrospective,
Map<String,Object> attributes)
Creates an Issue related to a Retrospective.
|
Iteration |
iteration(Project project)
Create a new iteration using suggested system values.
|
Iteration |
iteration(Project project,
Map<String,Object> attributes)
Create a new iteration using suggested system values.
|
Iteration |
iteration(String name,
Schedule schedule,
DB.DateTime beginDate,
DB.DateTime endDate)
Create a new iteration with a name, begin date, and end date.
|
Iteration |
iteration(String name,
Schedule schedule,
DB.DateTime beginDate,
DB.DateTime endDate,
Map<String,Object> attributes)
Create a new iteration with a name, begin date, and end date.
|
Link |
link(String name,
BaseAsset asset,
String url,
boolean onMenu)
Create a new link with a name.
|
Link |
link(String name,
BaseAsset asset,
String url,
boolean onMenu,
Map<String,Object> attributes)
Create a new link with a name.
|
Member |
member(String name,
String shortName)
Create a new member entity with a name and short name.
|
Member |
member(String name,
String shortName,
Map<String,Object> attributes)
Create a new member entity with a name and short name.
|
Member |
member(String name,
String shortName,
Role defaultRole)
Create a new member entity with a name, short name, and default role.
|
Member |
member(String name,
String shortName,
Role defaultRole,
Map<String,Object> attributes)
Create a new member entity with a name, short name, and default role.
|
Message |
message(String subject,
String messageBody)
Create a new Message with a subject and recipient.
|
Message |
message(String subject,
String messageBody,
Collection<Member> recipients)
Create a new Message with a subject and recipient.
|
Message |
message(String subject,
String messageBody,
Collection<Member> recipients,
Map<String,Object> attributes)
Create a new Message with a subject and recipient.
|
Message |
message(String subject,
String messageBody,
Map<String,Object> attributes)
Create a new Message with a subject and recipient.
|
Message |
message(String subject,
String messageBody,
Member recipient)
Create a new Message with a subject and recipient.
|
Message |
message(String subject,
String messageBody,
Member recipient,
Map<String,Object> attributes)
Create a new Message with a subject and recipient.
|
Note |
note(Note responseTo,
String name,
String content,
boolean personal)
Create a new response to an existing note with a name, content, and 'personal' flag
|
Note |
note(Note responseTo,
String name,
String content,
boolean personal,
Map<String,Object> attributes)
Create a new response to an existing note with a name, content, and 'personal' flag
|
Note |
note(String name,
BaseAsset asset,
String content,
boolean personal)
Create a new note with a name, asset, content, and 'personal' flag.
|
Note |
note(String name,
BaseAsset asset,
String content,
boolean personal,
Map<String,Object> attributes)
Create a new note with a name, asset, content, and 'personal' flag.
|
Project |
project(String name,
AssetID parentProjectID,
DB.DateTime beginDate,
Schedule schedule)
Create a new project entity with a name, parent project, begin date, and
optional schedule.
|
Project |
project(String name,
AssetID parentProjectID,
DB.DateTime beginDate,
Schedule schedule,
Map<String,Object> attributes)
Create a new project entity with a name, parent project, begin date, and
optional schedule.
|
Project |
project(String name,
Project parentProject,
DB.DateTime beginDate,
Schedule schedule)
Create a new project entity with a name, parent project, begin date, and
optional schedule.
|
Project |
project(String name,
Project parentProject,
DB.DateTime beginDate,
Schedule schedule,
Map<String,Object> attributes)
Create a new project entity with a name, parent project, begin date, and
optional schedule with specified attributes.
|
RegressionPlan |
regressionPlan(String name,
Project project)
Creates a new Regression Plan with title and project.
|
RegressionPlan |
regressionPlan(String name,
Project project,
Map<String,Object> attributes)
Creates a new Regression Plan with title and project.
|
RegressionSuite |
regressionSuite(String name,
RegressionPlan regressionPlan)
Creates a new Regression Suite with title assigned with this Regression Plan.
|
RegressionSuite |
regressionSuite(String name,
RegressionPlan regressionPlan,
Map<String,Object> attributes)
Creates a new Regression Suite with title assigned with this Regression Plan.
|
RegressionTest |
regressionTest(String name,
Project project)
Creates new Regression Test.
|
RegressionTest |
regressionTest(String name,
Project project,
Map<String,Object> attributes)
Creates new Regression Test.
|
RegressionTest |
regressionTest(Test test)
Creates new Regression Test based on Test
|
Request |
request(String name,
Project project)
Create a new Request with a name.
|
Request |
request(String name,
Project project,
Map<String,Object> attributes)
Create a new Request with a name.
|
Retrospective |
retrospective(String name,
Project project)
Create a new retrospective with a name.
|
Retrospective |
retrospective(String name,
Project project,
Map<String,Object> attributes)
Create a new retrospective with a name.
|
Schedule |
schedule(String name,
Duration iterationLength,
Duration iterationGap)
Create a new schedule entity with a name, iteration length, and iteration gap
|
Schedule |
schedule(String name,
Duration iterationLength,
Duration iterationGap,
Map<String,Object> attributes)
Create a new schedule entity with a name, iteration length, and iteration gap
|
Story |
story(String name,
Project project)
Create a new Story with a name.
|
Story |
story(String name,
Project project,
Map<String,Object> attributes)
Create a new Story with a name.
|
Story |
story(String name,
Retrospective retrospective)
Create a new story with a name.
|
Story |
story(String name,
Retrospective retrospective,
Map<String,Object> attributes)
Create a new story with a name.
|
Task |
task(String name,
PrimaryWorkitem primaryWorkitem)
Create a new Task with a name.
|
Task |
task(String name,
PrimaryWorkitem primaryWorkitem,
Map<String,Object> attributes)
Create a new Task with a name.
|
Team |
team(String name)
Create a new team entity with a name.
|
Team |
team(String name,
Map<String,Object> attributes)
Create a new team entity with a name.
|
Test |
test(String name,
Workitem workitem)
Create a new Test with a name.
|
Test |
test(String name,
Workitem workitem,
Map<String,Object> attributes)
Create a new Test with a name.
|
TestSet |
testSet(String name,
RegressionSuite suite,
Project project)
Creates a new TestSet with title and project.
|
TestSet |
testSet(String name,
RegressionSuite suite,
Project project,
Map<String,Object> attributes)
Creates a new TestSet with title and project.
|
TestSuite |
testSuite(String name,
String reference)
Create a new TestSuite with a name.
|
TestSuite |
testSuite(String name,
String reference,
Map<String,Object> attributes)
Create a new TestSuite with a name.
|
Theme |
theme(String name,
Project project)
Create a new Theme with a name.
|
Theme |
theme(String name,
Project project,
Map<String,Object> attributes)
Create a new Theme with a name.
|
public Project project(String name, Project parentProject, DB.DateTime beginDate, Schedule schedule)
name - name of project.parentProject - parent project for created project.beginDate - start date of created project.schedule - Schedule that defines how this project's iterations are
spaced.public Project project(String name, Project parentProject, DB.DateTime beginDate, Schedule schedule, Map<String,Object> attributes)
name - name of project.parentProject - parent project for created project.beginDate - start date of created project.schedule - Schedule that defines how this project's iterations are
spaced.attributes - additional attributes for inicialization project.public Project project(String name, AssetID parentProjectID, DB.DateTime beginDate, Schedule schedule)
name - name of project.parentProjectID - id of parent project for created project.beginDate - start date of created project.schedule - Schedule that defines how this project's iterations are
spaced.public Project project(String name, AssetID parentProjectID, DB.DateTime beginDate, Schedule schedule, Map<String,Object> attributes)
name - name of project.parentProjectID - id of parent project for created project.beginDate - start date of created project.schedule - Schedule that defines how this project's iterations are
spaced.attributes - additional attributes for the Project.public Member member(String name, String shortName, Role defaultRole)
name - The full name of the user.shortName - An alias or nickname used throughout the VersionOne user
interface.defaultRole - The new user's default role on projects.public Member member(String name, String shortName, Role defaultRole, Map<String,Object> attributes)
name - The full name of the user.shortName - An alias or nickname used throughout the VersionOne user
interface.defaultRole - The new user's default role on projects.attributes - additional attributes for the Member.public Member member(String name, String shortName)
name - The full name of the user.shortName - An alias or nickname used throughout the VersionOne user
interface.public Member member(String name, String shortName, Map<String,Object> attributes)
name - The full name of the user.shortName - An alias or nickname used throughout the VersionOne user
interface.attributes - additional attributes for the member.public Team team(String name)
name - name of team.public Team team(String name, Map<String,Object> attributes)
name - name of team.attributes - additional attributes for the Team.public Story story(String name, Project project)
name - The initial name of the entity.project - The Project this Story will be in.public Story story(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Story will be in.attributes - additional attributes for the Story.public Story story(String name, Retrospective retrospective)
name - The initial name of the story.retrospective - The retrospective this story was identified in.public Story story(String name, Retrospective retrospective, Map<String,Object> attributes)
name - The initial name of the story.retrospective - The retrospective this story was identified in.attributes - additional attributes for the Story.public Defect defect(String name, Project project)
name - The initial name of the entity.project - The Project this Defect will be in.public Defect defect(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Defect will be in.attributes - additional attributes for the Defect.public Task task(String name, PrimaryWorkitem primaryWorkitem)
name - The initial name of the task.primaryWorkitem - The PrimaryWorkitem this Task will belong to.public Task task(String name, PrimaryWorkitem primaryWorkitem, Map<String,Object> attributes)
name - The initial name of the task.primaryWorkitem - The PrimaryWorkitem this Task will belong to.attributes - additional attributes for the Task.public Test test(String name, Workitem workitem)
name - The initial name of the test.workitem - The Workitem(Epic, Story, Defect) this Test will belong to.public Test test(String name, Workitem workitem, Map<String,Object> attributes)
name - The initial name of the test.workitem - The Workitem(Epic, Story, Defect) this Test will belong to.attributes - additional attributes for the Test.public Theme theme(String name, Project project)
name - The initial name of the entity.project - The Project this Theme will be in.public Theme theme(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Theme will be in.attributes - additional attributes for the Theme.public Goal goal(String name, Project project)
name - The initial name of the entity.project - The Project this Goal will be in.public Goal goal(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Goal will be in.attributes - additional attributes for the Goal.public Issue issue(String name, Project project)
name - The initial name of the entity.project - The Project this Issue will be in.public Issue issue(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Issue will be in.attributes - additional attributes for the Issue.public Issue issue(String name, Retrospective retrospective)
name - The name of the Issue.retrospective - The Retrospective to relate the Issue to.public Issue issue(String name, Retrospective retrospective, Map<String,Object> attributes)
name - The name of the Issue.retrospective - The Retrospective to relate the Issue to.attributes - additional attributes for the Issue.public Request request(String name, Project project)
name - The initial name of the entity.project - The Project this Request will be in.public Request request(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Request will be in.attributes - additional attributes for the Request.public Epic epic(String name, Project project)
name - The initial name of the entity.project - The Project this Epic will be in.public Epic epic(String name, Project project, Map<String,Object> attributes)
name - The initial name of the entity.project - The Project this Epic will be in.attributes - additional attributes for the Epic.public Link link(String name, BaseAsset asset, String url, boolean onMenu)
name - The initial name of the link.asset - The asset this link belongs to.url - The URL of the link.onMenu - True to show on the asset's detail page menu.public Link link(String name, BaseAsset asset, String url, boolean onMenu, Map<String,Object> attributes)
name - The initial name of the link.asset - The asset this link belongs to.url - The URL of the link.onMenu - True to show on the asset's detail page menu.attributes - additional attributes for the Link.public Note note(String name, BaseAsset asset, String content, boolean personal)
name - The initial name of the note.asset - The asset this note belongs to.content - The content of the note.personal - True if this note is only visible to.public Note note(String name, BaseAsset asset, String content, boolean personal, Map<String,Object> attributes)
name - The initial name of the note.asset - The asset this note belongs to.content - The content of the note.personal - True if this note is only visible to.attributes - additional attributes for the Note.public TestSuite testSuite(String name, String reference)
name - The initial name of the TestSuite.reference - A free text field used for reference (perhaps to an
external system).public TestSuite testSuite(String name, String reference, Map<String,Object> attributes)
name - The initial name of the TestSuite.reference - A free text field used for reference (perhaps to an
external system).attributes - additional attributes for the TestSuite.public Attachment attachment(String name, BaseAsset asset, String filename, InputStream stream) throws AttachmentLengthExceededException, ApplicationUnavailableException
name - The name of the attachment.asset - The asset this attachment belongs to.filename - The name of the original attachment file.stream - The read-enabled stream that contains the attachment
content to upload.AttachmentLengthExceededException - if attachment is too long.ApplicationUnavailableException - if appears any problem with
connection to service.public Attachment attachment(String name, BaseAsset asset, String filename, InputStream stream, Map<String,Object> attributes) throws AttachmentLengthExceededException, ApplicationUnavailableException
name - The name of the attachment.asset - The asset this attachment belongs to.filename - The name of the original attachment file.stream - The read-enabled stream that contains the attachment
content to upload.attributes - additional attributes for the Attachment.AttachmentLengthExceededException - if attachment is too long.ApplicationUnavailableException - if appears any problem with
connection to service.public Retrospective retrospective(String name, Project project)
name - The name of the retrospective.project - The project this retrospective belongs to.public Retrospective retrospective(String name, Project project, Map<String,Object> attributes)
name - The name of the retrospective.project - The project this retrospective belongs to.attributes - additional attributes for the Retrospective.public Iteration iteration(Project project)
project - The project is used to determine the schedule this iteration belongs to.public Iteration iteration(Project project, Map<String,Object> attributes)
project - The project is used to determine the schedule this iteration belongs to.attributes - additional attributes for the Iteration.public Iteration iteration(String name, Schedule schedule, DB.DateTime beginDate, DB.DateTime endDate)
name - The name of the iteration.schedule - The schedule this iteration belongs to.beginDate - The begin date or start date of this iteration.endDate - The end date of this iteration.public Iteration iteration(String name, Schedule schedule, DB.DateTime beginDate, DB.DateTime endDate, Map<String,Object> attributes)
name - The name of the iteration.schedule - The schedule this iteration belongs to.beginDate - The begin date or start date of this iteration.endDate - The end date of this iteration.attributes - additional attributes for the Iteration.public Effort effort(double value, Workitem item, Member member, DB.DateTime date) throws IllegalStateException
value - the value of the effort record.item - the workitem to assign the effort record to.member - the member to assign the effort record to. If is null then
member not set.date - the date to log the effort record against. If is null then
date not set.IllegalStateException - if Effort tracking is not enabled.public Effort effort(double value, Workitem item, Member member, DB.DateTime date, Map<String,Object> attributes) throws IllegalStateException
value - the value of the effort record.item - the workitem to assign the effort record to.member - the member to assign the effort record to. If is null then
member not set.date - the date to log the effort record against. If is null then
date not set.attributes - additional attributes for the Effort.IllegalStateException - if Effort tracking is not enabled.public Effort effort(double value, Workitem item) throws IllegalStateException
value - The value of the effort record.item - The workitem to assign the effort record to.IllegalStateException - if Effort tracking is not enabled.public Effort effort(double value, Workitem item, Map<String,Object> attributes) throws IllegalStateException
value - The value of the effort record.item - The workitem to assign the effort record to.attributes - additional attributes for the Effort.IllegalStateException - if Effort tracking is not enabled.public BuildProject buildProject(String name, String reference)
name - Initial name.reference - Reference value.public BuildProject buildProject(String name, String reference, Map<String,Object> attributes)
name - Initial name.reference - Reference value.attributes - additional attributes for the BuildProject.public BuildRun buildRun(BuildProject buildProject, String name, DB.DateTime date)
buildProject - The Build Project this Build Run belongs to.name - Name of the build project.date - The Date this Build Run ran.public BuildRun buildRun(BuildProject buildProject, String name, DB.DateTime date, Map<String,Object> attributes)
buildProject - The Build Project this Build Run belongs to.name - Name of the build project.date - The Date this Build Run ran.attributes - additional attributes for the BuildRun.public ChangeSet changeSet(String name, String reference)
name - Initial name.reference - Reference value.public ChangeSet changeSet(String name, String reference, Map<String,Object> attributes)
name - Initial name.reference - Reference value.attributes - additional attributes for the ChangeSet.public Schedule schedule(String name, Duration iterationLength, Duration iterationGap)
name - Name of the new scheduleiterationLength - The duration an iteration will last in this scheduleiterationGap - The duration between iterations in this schedule.public Schedule schedule(String name, Duration iterationLength, Duration iterationGap, Map<String,Object> attributes)
name - Name of the new scheduleiterationLength - The duration an iteration will last in this scheduleiterationGap - The duration between iterations in this schedule.attributes - additional attributes for the Schedule.public Note note(Note responseTo, String name, String content, boolean personal)
responseTo - The Note to respond toname - The initial name of the notecontent - The content of the notepersonal - True if this note is only visible topublic Note note(Note responseTo, String name, String content, boolean personal, Map<String,Object> attributes)
responseTo - The Note to respond to.name - The initial name of the note.content - The content of the note.personal - True if this note is only visible to.attributes - additional attributes for the note.public Message message(String subject, String messageBody)
subject - Message subject.messageBody - Message body.public Message message(String subject, String messageBody, Map<String,Object> attributes)
subject - Message subject.messageBody - Message body.attributes - additional attributes for the Message.public Message message(String subject, String messageBody, Member recipient)
subject - Message subject.messageBody - Message body.recipient - Who this message will go to.public Message message(String subject, String messageBody, Member recipient, Map<String,Object> attributes)
subject - Message subject.messageBody - Message body.recipient - Who this message will go to.attributes - additional attributes for the Message.public Message message(String subject, String messageBody, Collection<Member> recipients)
subject - Message subject.messageBody - Message body.recipients - Who this message will go to. May be null.public Message message(String subject, String messageBody, Collection<Member> recipients, Map<String,Object> attributes)
subject - Message subject.messageBody - Message body.recipients - Who this message will go to. May be null.attributes - additional attributes for the Message.public RegressionSuite regressionSuite(String name, RegressionPlan regressionPlan)
name - Title of the suite.regressionPlan - Regression Plan to assign.public RegressionSuite regressionSuite(String name, RegressionPlan regressionPlan, Map<String,Object> attributes)
name - Title of the suite.regressionPlan - Regression Plan to assign.attributes - additional attributes for the RegressionSuite.public RegressionPlan regressionPlan(String name, Project project)
name - Title of the plan.project - Project to assign.public RegressionPlan regressionPlan(String name, Project project, Map<String,Object> attributes)
name - Title of the plan.project - Project to assign.attributes - Additional attributes for initialization Regression Plan.public TestSet testSet(String name, RegressionSuite suite, Project project)
name - Title of the testSet.suite - Parent RegressionSuite.project - Project to assign.public TestSet testSet(String name, RegressionSuite suite, Project project, Map<String,Object> attributes)
name - Title of the testSet.suite - Parent RegressionSuite.project - Project to assign.attributes - Additional attributes for initialization TestSet.public Environment environment(String name, Project project)
name - Environment name.project - Parent Project.public Environment environment(String name, Project project, Map<String,Object> attributes)
name - Environment name.project - Parent Project.attributes - Additional attributes that should be set for Environment.public RegressionTest regressionTest(String name, Project project)
name - Regression Test nameproject - Regression Test project.public RegressionTest regressionTest(String name, Project project, Map<String,Object> attributes)
name - Regression Test nameproject - Regression Test project.attributes - Additional attributes that should be set for RegressionTest.public RegressionTest regressionTest(Test test)
test - Test which we will be used to create Regression Test.public Conversation conversation(String content)
content - Content of Expression in Conversation.public Conversation conversation(Member author, String content)
author - Author of Expression in Conversation.content - Content of Expression in Conversation.public Conversation conversation(Member author, String content, Map<String,Object> attributes)
author - Author of Expression in Conversation.content - Content of Expression in Conversation.attributes - Additional attributes that should be set for Conversation Expression.protected void addAttributes(Entity entity, Map<String,Object> attributes)
entity - entity to fill.attributes - Map of attributes on filling to entity.public Expression expression(Member author, String content, Expression inReplyTo)
author - Author of Expression.content - Content of Expression.inReplyTo - Expression being replied to.Copyright © 2013 Version One, Inc.. All rights reserved.