com.atlassian.jira.config
Class DefaultSubTaskManager

java.lang.Object
  extended bycom.atlassian.jira.config.DefaultSubTaskManager
All Implemented Interfaces:
SubTaskManager

public class DefaultSubTaskManager
extends java.lang.Object
implements SubTaskManager


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
DefaultSubTaskManager(ConstantsManager constantsManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkManager issueLinkManager, PermissionManager permissionManager, ApplicationProperties applicationProperties, CollectionReorderer collectionReorderer)
           
 
Method Summary
 void createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue, org.ofbiz.core.entity.GenericValue subTaskIssue, com.opensymphony.user.User remoteUser)
           
 void createSubTaskIssueType(java.lang.String name, java.lang.Long sequence, java.lang.String description, java.lang.String iconurl)
           
 void disableSubTasks()
           
 void enableSubTasks()
          Turn on sub-tasks by creating a sub-task issue link type and a default sub-task issue type
 java.util.Collection getAllSubTaskIssueIds()
          Retrieves ids of all sub-task issues in the system.
 java.lang.Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
           
 SubTaskBean getSubTaskBean(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
           
 java.util.List getSubTaskIssueLinks(org.ofbiz.core.entity.GenericValue issue)
           
 org.ofbiz.core.entity.GenericValue getSubTaskIssueTypeById(java.lang.String id)
           
 java.util.Collection getSubTasks(org.ofbiz.core.entity.GenericValue issue)
           
 java.util.Collection getSubTasksIssueTypes()
           
 boolean isSubTask(org.ofbiz.core.entity.GenericValue issue)
           
 boolean isSubTasksEnabled()
           
 boolean issueTypeExistsById(java.lang.String id)
           
 boolean issueTypeExistsByName(java.lang.String name)
           
 void moveSubTask(org.ofbiz.core.entity.GenericValue parentIssue, java.lang.Long currentSequence, java.lang.Long sequence)
           
 void moveSubTaskIssueTypeDown(java.lang.String id)
           
 void moveSubTaskIssueTypeUp(java.lang.String id)
           
 void removeSubTaskIssueType(java.lang.String name)
           
 void resetSequences(org.ofbiz.core.entity.GenericValue issue)
           
 void updateSubTaskIssueType(java.lang.String id, java.lang.String name, java.lang.Long sequence, java.lang.String description, java.lang.String iconurl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSubTaskManager

public DefaultSubTaskManager(ConstantsManager constantsManager,
                             IssueLinkTypeManager issueLinkTypeManager,
                             IssueLinkManager issueLinkManager,
                             PermissionManager permissionManager,
                             ApplicationProperties applicationProperties,
                             CollectionReorderer collectionReorderer)
Method Detail

enableSubTasks

public void enableSubTasks()
                    throws CreateException
Turn on sub-tasks by creating a sub-task issue link type and a default sub-task issue type

Specified by:
enableSubTasks in interface SubTaskManager
Throws:
CreateException

disableSubTasks

public void disableSubTasks()
Specified by:
disableSubTasks in interface SubTaskManager

getSubTasksIssueTypes

public java.util.Collection getSubTasksIssueTypes()
Specified by:
getSubTasksIssueTypes in interface SubTaskManager

isSubTasksEnabled

public boolean isSubTasksEnabled()
Specified by:
isSubTasksEnabled in interface SubTaskManager

createSubTaskIssueType

public void createSubTaskIssueType(java.lang.String name,
                                   java.lang.Long sequence,
                                   java.lang.String description,
                                   java.lang.String iconurl)
                            throws CreateException
Specified by:
createSubTaskIssueType in interface SubTaskManager
Throws:
CreateException

updateSubTaskIssueType

public void updateSubTaskIssueType(java.lang.String id,
                                   java.lang.String name,
                                   java.lang.Long sequence,
                                   java.lang.String description,
                                   java.lang.String iconurl)
                            throws StoreException
Specified by:
updateSubTaskIssueType in interface SubTaskManager
Throws:
StoreException

issueTypeExistsByName

public boolean issueTypeExistsByName(java.lang.String name)
Specified by:
issueTypeExistsByName in interface SubTaskManager

moveSubTaskIssueTypeUp

public void moveSubTaskIssueTypeUp(java.lang.String id)
                            throws StoreException
Specified by:
moveSubTaskIssueTypeUp in interface SubTaskManager
Throws:
StoreException

moveSubTaskIssueTypeDown

public void moveSubTaskIssueTypeDown(java.lang.String id)
                              throws StoreException
Specified by:
moveSubTaskIssueTypeDown in interface SubTaskManager
Throws:
StoreException

getSubTaskIssueTypeById

public org.ofbiz.core.entity.GenericValue getSubTaskIssueTypeById(java.lang.String id)
Specified by:
getSubTaskIssueTypeById in interface SubTaskManager

removeSubTaskIssueType

public void removeSubTaskIssueType(java.lang.String name)
                            throws RemoveException
Specified by:
removeSubTaskIssueType in interface SubTaskManager
Throws:
RemoveException

issueTypeExistsById

public boolean issueTypeExistsById(java.lang.String id)
Specified by:
issueTypeExistsById in interface SubTaskManager

isSubTask

public boolean isSubTask(org.ofbiz.core.entity.GenericValue issue)
Specified by:
isSubTask in interface SubTaskManager

getParentIssueId

public java.lang.Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
Specified by:
getParentIssueId in interface SubTaskManager

getSubTaskBean

public SubTaskBean getSubTaskBean(org.ofbiz.core.entity.GenericValue issue,
                                  com.opensymphony.user.User remoteUser)
Specified by:
getSubTaskBean in interface SubTaskManager

moveSubTask

public void moveSubTask(org.ofbiz.core.entity.GenericValue parentIssue,
                        java.lang.Long currentSequence,
                        java.lang.Long sequence)
Specified by:
moveSubTask in interface SubTaskManager

resetSequences

public void resetSequences(org.ofbiz.core.entity.GenericValue issue)
Specified by:
resetSequences in interface SubTaskManager

getAllSubTaskIssueIds

public java.util.Collection getAllSubTaskIssueIds()
Retrieves ids of all sub-task issues in the system.

Specified by:
getAllSubTaskIssueIds in interface SubTaskManager
Returns:

getSubTaskIssueLinks

public java.util.List getSubTaskIssueLinks(org.ofbiz.core.entity.GenericValue issue)
Specified by:
getSubTaskIssueLinks in interface SubTaskManager

getSubTasks

public java.util.Collection getSubTasks(org.ofbiz.core.entity.GenericValue issue)
Specified by:
getSubTasks in interface SubTaskManager

createSubTaskIssueLink

public void createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue,
                                   org.ofbiz.core.entity.GenericValue subTaskIssue,
                                   com.opensymphony.user.User remoteUser)
                            throws CreateException
Specified by:
createSubTaskIssueLink in interface SubTaskManager
Throws:
CreateException


Copyright © 2002-2005 Atlassian. All Rights Reserved.