|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.MockSubTaskManager
public class MockSubTaskManager
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.jira.config.SubTaskManager |
|---|
SUB_TASK_ISSUE_TYPE_STYLE, SUB_TASK_LINK_TYPE_INWARD_NAME, SUB_TASK_LINK_TYPE_NAME, SUB_TASK_LINK_TYPE_OUTWARD_NAME, SUB_TASK_LINK_TYPE_STYLE |
| Constructor Summary | |
|---|---|
MockSubTaskManager()
|
|
| Method Summary | |
|---|---|
IssueUpdateBean |
changeParent(org.ofbiz.core.entity.GenericValue subTask,
org.ofbiz.core.entity.GenericValue parentIssue,
com.atlassian.crowd.embedded.api.User currentUser)
Change the parent of the given subtask to the given new parent on behalf of the given user. |
IssueUpdateBean |
changeParent(Issue subTask,
Issue parentIssue,
com.atlassian.crowd.embedded.api.User currentUser)
Change the parent of the given subtask to the given new parent on behalf of the given user. |
void |
createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue,
org.ofbiz.core.entity.GenericValue subTaskIssue,
com.atlassian.crowd.embedded.api.User remoteUser)
create SubTask IssueLink |
void |
createSubTaskIssueLink(Issue parentIssue,
Issue subTaskIssue,
com.atlassian.crowd.embedded.api.User remoteUser)
|
org.ofbiz.core.entity.GenericValue |
createSubTaskIssueType(String name,
Long sequence,
String description,
String iconurl)
create SubTask IssueType |
void |
disableSubTasks()
|
void |
enableSubTasks()
|
Collection |
getAllSubTaskIssueIds()
|
org.ofbiz.core.entity.GenericValue |
getParentIssue(org.ofbiz.core.entity.GenericValue issue)
Get the parent issue from a subtask |
Long |
getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
|
SubTaskBean |
getSubTaskBean(org.ofbiz.core.entity.GenericValue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Returns the SubTaskBean for the given parent issue in the context of the given user. |
SubTaskBean |
getSubTaskBean(Issue issue,
com.atlassian.crowd.embedded.api.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. |
org.ofbiz.core.entity.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(org.ofbiz.core.entity.GenericValue issue)
|
IssueType |
insertSubTaskIssueType(String name,
Long sequence,
String description,
String iconurl)
|
boolean |
isSubTask(org.ofbiz.core.entity.GenericValue issue)
|
boolean |
isSubTaskIssueType(org.ofbiz.core.entity.GenericValue issueType)
|
boolean |
isSubTasksEnabled()
|
boolean |
issueTypeExistsById(String id)
|
boolean |
issueTypeExistsByName(String name)
|
void |
moveSubTask(org.ofbiz.core.entity.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,
String iconurl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockSubTaskManager()
| Method Detail |
|---|
public void enableSubTasks()
throws CreateException
enableSubTasks in interface SubTaskManagerCreateExceptionpublic boolean isSubTasksEnabled()
isSubTasksEnabled in interface SubTaskManagerpublic void disableSubTasks()
disableSubTasks in interface SubTaskManagerpublic boolean isSubTask(org.ofbiz.core.entity.GenericValue issue)
isSubTask in interface SubTaskManagerpublic boolean isSubTaskIssueType(org.ofbiz.core.entity.GenericValue issueType)
isSubTaskIssueType in interface SubTaskManagerpublic Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
getParentIssueId in interface SubTaskManagerpublic org.ofbiz.core.entity.GenericValue getParentIssue(org.ofbiz.core.entity.GenericValue issue)
SubTaskManager
getParentIssue in interface SubTaskManagerissue - subtask
public SubTaskBean getSubTaskBean(org.ofbiz.core.entity.GenericValue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
SubTaskManager
getSubTaskBean in interface SubTaskManagerissue - the IssueremoteUser - the user
public SubTaskBean getSubTaskBean(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
SubTaskManager
getSubTaskBean in interface SubTaskManagerissue - the IssueremoteUser - the user
public void moveSubTask(org.ofbiz.core.entity.GenericValue issue,
Long currentSequence,
Long sequence)
SubTaskManager
moveSubTask in interface SubTaskManager
public void moveSubTask(Issue issue,
Long currentSequence,
Long sequence)
moveSubTask in interface SubTaskManagerpublic void resetSequences(Issue issue)
resetSequences in interface SubTaskManager
public org.ofbiz.core.entity.GenericValue createSubTaskIssueType(String name,
Long sequence,
String description,
String iconurl)
throws CreateException
SubTaskManager
createSubTaskIssueType in interface SubTaskManagerCreateException
public IssueType insertSubTaskIssueType(String name,
Long sequence,
String description,
String iconurl)
throws CreateException
insertSubTaskIssueType in interface SubTaskManagerCreateException
public void updateSubTaskIssueType(String id,
String name,
Long sequence,
String description,
String iconurl)
updateSubTaskIssueType in interface SubTaskManager
public void removeSubTaskIssueType(String name)
throws RemoveException
removeSubTaskIssueType in interface SubTaskManagerRemoveExceptionpublic Collection<IssueType> getSubTaskIssueTypeObjects()
SubTaskManager
getSubTaskIssueTypeObjects in interface SubTaskManagerIssueTypes.public boolean issueTypeExistsById(String id)
issueTypeExistsById in interface SubTaskManagerpublic boolean issueTypeExistsByName(String name)
issueTypeExistsByName in interface SubTaskManagerpublic void moveSubTaskIssueTypeUp(String id)
moveSubTaskIssueTypeUp in interface SubTaskManagerpublic void moveSubTaskIssueTypeDown(String id)
moveSubTaskIssueTypeDown in interface SubTaskManagerpublic org.ofbiz.core.entity.GenericValue getSubTaskIssueTypeById(String id)
SubTaskManager
getSubTaskIssueTypeById in interface SubTaskManagerid - the ID
public IssueType getSubTaskIssueType(String id)
SubTaskManager
getSubTaskIssueType in interface SubTaskManagerid - the ID
public void createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue,
org.ofbiz.core.entity.GenericValue subTaskIssue,
com.atlassian.crowd.embedded.api.User remoteUser)
throws CreateException
SubTaskManager
createSubTaskIssueLink in interface SubTaskManagerCreateException
public void createSubTaskIssueLink(Issue parentIssue,
Issue subTaskIssue,
com.atlassian.crowd.embedded.api.User remoteUser)
throws CreateException
createSubTaskIssueLink in interface SubTaskManagerCreateExceptionpublic Collection getAllSubTaskIssueIds()
getAllSubTaskIssueIds in interface SubTaskManagerpublic List getSubTaskIssueLinks(Long issueId)
SubTaskManager
getSubTaskIssueLinks in interface SubTaskManagerissueId - issue id
public Collection getSubTasks(org.ofbiz.core.entity.GenericValue issue)
getSubTasks in interface SubTaskManagerissue - the issue
public Collection getSubTaskObjects(Issue issue)
getSubTaskObjects in interface SubTaskManager
public IssueUpdateBean changeParent(org.ofbiz.core.entity.GenericValue subTask,
org.ofbiz.core.entity.GenericValue parentIssue,
com.atlassian.crowd.embedded.api.User currentUser)
throws RemoveException,
CreateException
SubTaskManager
changeParent in interface SubTaskManagersubTask - The SubTaskparentIssue - The parent IssuecurrentUser - The user
RemoveException - if there's a problem unlinking original parent.
CreateException - if there's a problem linking new parent.
public IssueUpdateBean changeParent(Issue subTask,
Issue parentIssue,
com.atlassian.crowd.embedded.api.User currentUser)
throws RemoveException,
CreateException
SubTaskManager
changeParent in interface SubTaskManagersubTask - The SubTaskparentIssue - The parent IssuecurrentUser - The user
RemoveException - if there's a problem unlinking original parent.
CreateException - if there's a problem linking new parent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||