com.atlassian.jira.config
Class DisabledSubTaskManager

java.lang.Object
  extended by com.atlassian.jira.config.DisabledSubTaskManager
All Implemented Interfaces:
SubTaskManager

public class DisabledSubTaskManager
extends Object
implements SubTaskManager


Field Summary
static org.apache.log4j.Logger log
           
 
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
DisabledSubTaskManager()
           
 
Method Summary
 IssueUpdateBean changeParent(org.ofbiz.core.entity.GenericValue subTask, org.ofbiz.core.entity.GenericValue parentIssue, 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, User remoteUser)
           
 void createSubTaskIssueLink(Issue parentIssue, Issue subTaskIssue, User remoteUser)
           
 org.ofbiz.core.entity.GenericValue createSubTaskIssueType(String name, Long sequence, String description, String iconurl)
           
 void disableSubTasks()
           
 void enableSubTasks()
           
 Collection getAllSubTaskIssueIds()
           
 org.ofbiz.core.entity.GenericValue getParentIssue(org.ofbiz.core.entity.GenericValue issue)
           
 Long getParentIssueId(org.ofbiz.core.entity.GenericValue issue)
           
 SubTaskBean getSubTaskBean(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
           
 List getSubTaskIssueLinks(Long issueId)
          Returns an empty list.
 org.ofbiz.core.entity.GenericValue getSubTaskIssueTypeById(String id)
           
 Collection getSubTaskObjects(Issue issue)
           
 Collection getSubTasks(org.ofbiz.core.entity.GenericValue issue)
           
 Collection getSubTasksIssueTypes()
           
 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)
           
 void moveSubTaskIssueTypeDown(String id)
           
 void moveSubTaskIssueTypeUp(String id)
           
 void removeSubTaskIssueType(String name)
           
 void resetSequences(org.ofbiz.core.entity.GenericValue issue)
           
 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
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

DisabledSubTaskManager

public DisabledSubTaskManager()
Method Detail

enableSubTasks

public void enableSubTasks()
                    throws CreateException
Specified by:
enableSubTasks in interface SubTaskManager
Throws:
CreateException

isSubTasksEnabled

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

disableSubTasks

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

isSubTask

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

isSubTaskIssueType

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

getParentIssueId

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

getParentIssue

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

getSubTaskBean

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

moveSubTask

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

resetSequences

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

resetSequences

public void resetSequences(Issue issue)
Specified by:
resetSequences in interface SubTaskManager

createSubTaskIssueType

public org.ofbiz.core.entity.GenericValue createSubTaskIssueType(String name,
                                                                 Long sequence,
                                                                 String description,
                                                                 String iconurl)
Specified by:
createSubTaskIssueType in interface SubTaskManager

updateSubTaskIssueType

public void updateSubTaskIssueType(String id,
                                   String name,
                                   Long sequence,
                                   String description,
                                   String iconurl)
Specified by:
updateSubTaskIssueType in interface SubTaskManager

removeSubTaskIssueType

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

getSubTasksIssueTypes

public Collection getSubTasksIssueTypes()
Specified by:
getSubTasksIssueTypes in interface SubTaskManager

issueTypeExistsById

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

issueTypeExistsByName

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

moveSubTaskIssueTypeUp

public void moveSubTaskIssueTypeUp(String id)
Specified by:
moveSubTaskIssueTypeUp in interface SubTaskManager

moveSubTaskIssueTypeDown

public void moveSubTaskIssueTypeDown(String id)
Specified by:
moveSubTaskIssueTypeDown in interface SubTaskManager

getSubTaskIssueTypeById

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

createSubTaskIssueLink

public void createSubTaskIssueLink(org.ofbiz.core.entity.GenericValue parentIssue,
                                   org.ofbiz.core.entity.GenericValue subTaskIssue,
                                   User remoteUser)
Specified by:
createSubTaskIssueLink in interface SubTaskManager

createSubTaskIssueLink

public void createSubTaskIssueLink(Issue parentIssue,
                                   Issue subTaskIssue,
                                   User remoteUser)
                            throws CreateException
Specified by:
createSubTaskIssueLink in interface SubTaskManager
Throws:
CreateException

getAllSubTaskIssueIds

public Collection getAllSubTaskIssueIds()
Specified by:
getAllSubTaskIssueIds in interface SubTaskManager

getSubTaskIssueLinks

public List getSubTaskIssueLinks(Long issueId)
Returns an empty list.

Specified by:
getSubTaskIssueLinks in interface SubTaskManager
Parameters:
issueId - ignored
Returns:
an empty list

getSubTasks

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

getSubTaskObjects

public Collection getSubTaskObjects(Issue issue)
Specified by:
getSubTaskObjects in interface SubTaskManager

changeParent

public IssueUpdateBean changeParent(org.ofbiz.core.entity.GenericValue subTask,
                                    org.ofbiz.core.entity.GenericValue parentIssue,
                                    User currentUser)
Description copied from interface: SubTaskManager
Change the parent of the given subtask to the given new parent on behalf of the given user.

Specified by:
changeParent in interface SubTaskManager
Returns:
an IssueUpdateBean representing the change action.


Copyright © 2002-2008 Atlassian. All Rights Reserved.