|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface SubTaskManager
Manages SubTasks - issues that are "part of" other issues.
Field Summary | |
---|---|
static String |
SUB_TASK_ISSUE_TYPE_STYLE
|
static String |
SUB_TASK_LINK_TYPE_INWARD_NAME
|
static String |
SUB_TASK_LINK_TYPE_NAME
|
static String |
SUB_TASK_LINK_TYPE_OUTWARD_NAME
|
static String |
SUB_TASK_LINK_TYPE_STYLE
|
Method Summary | |
---|---|
IssueUpdateBean |
changeParent(org.ofbiz.core.entity.GenericValue subTask,
org.ofbiz.core.entity.GenericValue parentIssue,
com.atlassian.crowd.embedded.api.User currentUser)
Deprecated. Use changeParent(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead. Since v5.0. |
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)
Deprecated. Use createSubTaskIssueLink(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead. Since v5.0. |
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)
Deprecated. Use insertSubTaskIssueType(String, Long, String, String) instead. Since v5.0. |
void |
disableSubTasks()
|
void |
enableSubTasks()
|
Collection<Long> |
getAllSubTaskIssueIds()
|
org.ofbiz.core.entity.GenericValue |
getParentIssue(org.ofbiz.core.entity.GenericValue issue)
Deprecated. Use Issue.getParentObject() instead. Since v5.0. |
Long |
getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
|
SubTaskBean |
getSubTaskBean(org.ofbiz.core.entity.GenericValue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. Use getSubTaskBean(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) instead. Since v5.0. |
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<IssueLink> |
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)
Deprecated. Use getSubTaskIssueType(String) instead. Since v5.0. |
Collection<IssueType> |
getSubTaskIssueTypeObjects()
Retrieves all the sub-task issue types |
Collection<Issue> |
getSubTaskObjects(Issue issue)
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTasks(org.ofbiz.core.entity.GenericValue issue)
Deprecated. Use getSubTaskObjects(com.atlassian.jira.issue.Issue) instead. |
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)
Deprecated. Use moveSubTask(com.atlassian.jira.issue.Issue, Long, Long) instead. Since v5.0. |
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)
|
Field Detail |
---|
static final String SUB_TASK_ISSUE_TYPE_STYLE
static final String SUB_TASK_LINK_TYPE_NAME
static final String SUB_TASK_LINK_TYPE_STYLE
static final String SUB_TASK_LINK_TYPE_INWARD_NAME
static final String SUB_TASK_LINK_TYPE_OUTWARD_NAME
Method Detail |
---|
void enableSubTasks() throws CreateException
CreateException
boolean isSubTasksEnabled()
void disableSubTasks()
boolean isSubTask(org.ofbiz.core.entity.GenericValue issue)
boolean isSubTaskIssueType(org.ofbiz.core.entity.GenericValue issueType)
Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
org.ofbiz.core.entity.GenericValue getParentIssue(org.ofbiz.core.entity.GenericValue issue)
Issue.getParentObject()
instead. Since v5.0.
issue
- subtask
SubTaskBean getSubTaskBean(org.ofbiz.core.entity.GenericValue issue, com.atlassian.crowd.embedded.api.User remoteUser)
getSubTaskBean(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
instead. Since v5.0.
issue
- the IssueremoteUser
- the user
SubTaskBean getSubTaskBean(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
issue
- the IssueremoteUser
- the user
void moveSubTask(org.ofbiz.core.entity.GenericValue issue, Long currentSequence, Long sequence)
moveSubTask(com.atlassian.jira.issue.Issue, Long, Long)
instead. Since v5.0.
issue
- currentSequence
- sequence
- void moveSubTask(Issue issue, Long currentSequence, Long sequence)
void resetSequences(Issue issue)
org.ofbiz.core.entity.GenericValue createSubTaskIssueType(String name, Long sequence, String description, String iconurl) throws CreateException
insertSubTaskIssueType(String, Long, String, String)
instead. Since v5.0.
name
- sequence
- description
- iconurl
-
CreateException
IssueType insertSubTaskIssueType(String name, Long sequence, String description, String iconurl) throws CreateException
CreateException
void updateSubTaskIssueType(String id, String name, Long sequence, String description, String iconurl) throws DataAccessException
DataAccessException
void removeSubTaskIssueType(String name) throws RemoveException
RemoveException
Collection<IssueType> getSubTaskIssueTypeObjects()
IssueType
s.boolean issueTypeExistsById(String id)
boolean issueTypeExistsByName(String name)
void moveSubTaskIssueTypeUp(String id) throws DataAccessException
DataAccessException
void moveSubTaskIssueTypeDown(String id) throws DataAccessException
DataAccessException
org.ofbiz.core.entity.GenericValue getSubTaskIssueTypeById(String id)
getSubTaskIssueType(String)
instead. Since v5.0.
id
- the ID
IssueType getSubTaskIssueType(String id)
id
- the ID
void createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue, org.ofbiz.core.entity.GenericValue subTaskIssue, com.atlassian.crowd.embedded.api.User remoteUser) throws CreateException
createSubTaskIssueLink(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
instead. Since v5.0.
parentIssue
- subTaskIssue
- remoteUser
-
CreateException
void createSubTaskIssueLink(Issue parentIssue, Issue subTaskIssue, com.atlassian.crowd.embedded.api.User remoteUser) throws CreateException
CreateException
Collection<Long> getAllSubTaskIssueIds()
List<IssueLink> getSubTaskIssueLinks(Long issueId)
issueId
- issue id
Collection<org.ofbiz.core.entity.GenericValue> getSubTasks(org.ofbiz.core.entity.GenericValue issue)
getSubTaskObjects(com.atlassian.jira.issue.Issue)
instead.
issue
- the issue
Collection<Issue> getSubTaskObjects(Issue issue)
IssueUpdateBean changeParent(org.ofbiz.core.entity.GenericValue subTask, org.ofbiz.core.entity.GenericValue parentIssue, com.atlassian.crowd.embedded.api.User currentUser) throws RemoveException, CreateException
changeParent(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
instead. Since v5.0.
subTask
- 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.IssueUpdateBean changeParent(Issue subTask, Issue parentIssue, com.atlassian.crowd.embedded.api.User currentUser) throws RemoveException, CreateException
subTask
- 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 |