public class

MockSubTaskManager

extends Object
implements SubTaskManager
java.lang.Object
   ↳ com.atlassian.jira.config.MockSubTaskManager

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.config.SubTaskManager
Public Constructors
MockSubTaskManager()
Public Methods
IssueUpdateBean changeParent(Issue subTask, Issue parentIssue, User currentUser)
Change the parent of the given subtask to the given new parent on behalf of the given user.
IssueUpdateBean changeParent(GenericValue subTask, GenericValue parentIssue, User currentUser)
Change the parent of the given subtask to the given new parent on behalf of the given user.
void createSubTaskIssueLink(Issue parentIssue, Issue subTaskIssue, User remoteUser)
void createSubTaskIssueLink(GenericValue parentIssue, GenericValue subTaskIssue, User remoteUser)
create SubTask IssueLink
GenericValue createSubTaskIssueType(String name, Long sequence, String description, String iconurl)
create SubTask IssueType@return
void disableSubTasks()
void enableSubTasks()
Collection getAllSubTaskIssueIds()
GenericValue getParentIssue(GenericValue issue)
Get the parent issue from a subtask
Long getParentIssueId(GenericValue issue)
SubTaskBean getSubTaskBean(GenericValue issue, User remoteUser)
Returns the SubTaskBean for the given parent issue in the context of the given user.
SubTaskBean getSubTaskBean(Issue issue, User remoteUser)
Returns the SubTaskBean for the given parent issue in the context of the given user.
List getSubTaskIssueLinks(Long issueId)
Returns a list of issue links associated with the issue
IssueType getSubTaskIssueType(String id)
Returns the SubTask IssueType with the given ID.
GenericValue getSubTaskIssueTypeById(String id)
Returns the SubTask IssueType with the given ID.
Collection<IssueType> getSubTaskIssueTypeObjects()
Retrieves all the sub-task issue types
Collection getSubTaskObjects(Issue issue)
Collection getSubTasks(GenericValue issue)
IssueType insertSubTaskIssueType(String name, Long sequence, String description, String iconurl)
Create new issue type and adds it to default scheme.
IssueType insertSubTaskIssueType(String name, Long sequence, String description, Long avatarId)
Create new issue type and adds it to default scheme.
boolean isSubTask(GenericValue issue)
boolean isSubTaskIssueType(GenericValue issueType)
boolean isSubTasksEnabled()
boolean issueTypeExistsById(String id)
boolean issueTypeExistsByName(String name)
void moveSubTask(GenericValue issue, Long currentSequence, Long sequence)
move SubTask
void moveSubTask(Issue issue, Long currentSequence, Long sequence)
void moveSubTaskIssueTypeDown(String id)
void moveSubTaskIssueTypeUp(String id)
void removeSubTaskIssueType(String name)
void resetSequences(Issue issue)
void updateSubTaskIssueType(String id, String name, Long sequence, String description, Long avatarId)
Update existing sub-task issue type.
void updateSubTaskIssueType(String id, String name, Long sequence, String description, String iconurl)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.SubTaskManager

Public Constructors

public MockSubTaskManager ()

Public Methods

public IssueUpdateBean changeParent (Issue subTask, Issue parentIssue, User currentUser)

Change the parent of the given subtask to the given new parent on behalf of the given user.

Parameters
subTask The SubTask
parentIssue The parent Issue
currentUser The user
Returns
  • an IssueUpdateBean representing the change action.

public IssueUpdateBean changeParent (GenericValue subTask, GenericValue parentIssue, User currentUser)

Change the parent of the given subtask to the given new parent on behalf of the given user.

Parameters
subTask The SubTask
parentIssue The parent Issue
currentUser The user
Returns
  • an IssueUpdateBean representing the change action.

public void createSubTaskIssueLink (Issue parentIssue, Issue subTaskIssue, User remoteUser)

public void createSubTaskIssueLink (GenericValue parentIssue, GenericValue subTaskIssue, User remoteUser)

create SubTask IssueLink

public GenericValue createSubTaskIssueType (String name, Long sequence, String description, String iconurl)

create SubTask IssueType@return

public void disableSubTasks ()

public void enableSubTasks ()

public Collection getAllSubTaskIssueIds ()

public GenericValue getParentIssue (GenericValue issue)

Get the parent issue from a subtask

Parameters
issue subtask
Returns
  • the parent issue form a subtask

public Long getParentIssueId (GenericValue issue)

public SubTaskBean getSubTaskBean (GenericValue issue, User remoteUser)

Returns the SubTaskBean for the given parent issue in the context of the given user.

Parameters
issue the Issue
remoteUser the user
Returns
  • the SubTaskBean for the given parent issue in the context of the given user.

public SubTaskBean getSubTaskBean (Issue issue, User remoteUser)

Returns the SubTaskBean for the given parent issue in the context of the given user.

Parameters
issue the Issue
remoteUser the user
Returns
  • the SubTaskBean for the given parent issue in the context of the given user.

public List getSubTaskIssueLinks (Long issueId)

Returns a list of issue links associated with the issue

Parameters
issueId issue id
Returns
  • a list of issue links

public IssueType getSubTaskIssueType (String id)

Returns the SubTask IssueType with the given ID.

Parameters
id the ID
Returns
  • SubTask IssueType with the given ID.

public GenericValue getSubTaskIssueTypeById (String id)

Returns the SubTask IssueType with the given ID.

Parameters
id the ID
Returns
  • SubTask IssueType with the given ID.

public Collection<IssueType> getSubTaskIssueTypeObjects ()

Retrieves all the sub-task issue types

Returns

public Collection getSubTaskObjects (Issue issue)

public Collection getSubTasks (GenericValue issue)

public IssueType insertSubTaskIssueType (String name, Long sequence, String description, String iconurl)

Create new issue type and adds it to default scheme.

public IssueType insertSubTaskIssueType (String name, Long sequence, String description, Long avatarId)

Create new issue type and adds it to default scheme.

public boolean isSubTask (GenericValue issue)

public boolean isSubTaskIssueType (GenericValue issueType)

public boolean isSubTasksEnabled ()

public boolean issueTypeExistsById (String id)

public boolean issueTypeExistsByName (String name)

public void moveSubTask (GenericValue issue, Long currentSequence, Long sequence)

move SubTask

public void moveSubTask (Issue issue, Long currentSequence, Long sequence)

public void moveSubTaskIssueTypeDown (String id)

public void moveSubTaskIssueTypeUp (String id)

public void removeSubTaskIssueType (String name)

public void resetSequences (Issue issue)

public void updateSubTaskIssueType (String id, String name, Long sequence, String description, Long avatarId)

Update existing sub-task issue type.

public void updateSubTaskIssueType (String id, String name, Long sequence, String description, String iconurl)