|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.jtimer.entities.TimerTaskHelper
public class TimerTaskHelper
Helper to remove process code from entity
| Constructor Summary | |
|---|---|
protected |
TimerTaskHelper()
Constructor. |
| Method Summary | |
|---|---|
static long |
getAllTotalTime(TimerTask task)
Get total task time including subtasks total time. |
static List<String> |
getAnnotation(TimerTask task,
Date date)
Get all annotations of the day. |
static Map<Date,String> |
getAnnotationMap(TimerTask task,
Date date)
Get all annotations of the day. |
static List<TimerTask> |
getSubTasksOrderedByName(TimerTask task)
Deprecated. Remove when tree ordering is implemented |
static Date |
getTaskFirstDateOfTiming(TimerTask task)
Get first date of timing for a task. |
static Date |
getTaskLastDateOfTiming(TimerTask task)
Get last date of timing for a task. |
static List<String> |
getTaskPath(TimerTask task)
Build task path. |
static TimerProject |
getTaskProject(TimerTask task)
Return project associated to a task. |
static long |
getTaskTime(TimerTask task)
Get total task time without subtasks time. |
static long |
getTotalTime(TimerTask task,
Date date)
Get time for specified date including subtasks time. |
static void |
removeAnnotation(TimerTask task,
Date date)
Remove all annotations of the day. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TimerTaskHelper()
| Method Detail |
|---|
public static List<TimerTask> getSubTasksOrderedByName(TimerTask task)
task - task
public static long getTaskTime(TimerTask task)
task - task to get time
public static long getAllTotalTime(TimerTask task)
task - task to get time
public static long getTotalTime(TimerTask task,
Date date)
task - taskdate - date for day
public static Date getTaskFirstDateOfTiming(TimerTask task)
task - task to find time
public static Date getTaskLastDateOfTiming(TimerTask task)
task - task to find time
public static TimerProject getTaskProject(TimerTask task)
task - task
public static List<String> getTaskPath(TimerTask task)
task - task
public static Map<Date,String> getAnnotationMap(TimerTask task,
Date date)
date - datetask - the task
public static List<String> getAnnotation(TimerTask task,
Date date)
date - datetask - the task
public static void removeAnnotation(TimerTask task,
Date date)
task - the taskdate - date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||