|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.greenhopper.model.team.DefaultTimeAllocation
public class DefaultTimeAllocation
Default implementation of TimeAllocation Note: this object is incomplete and won't properly return data for a given user
| Constructor Summary | |
|---|---|
DefaultTimeAllocation(org.joda.time.DateMidnight startDay,
org.joda.time.DateMidnight endDay,
java.util.List<org.joda.time.DateMidnight> workingDays,
long secondsPerDay)
|
|
| Method Summary | |
|---|---|
org.joda.time.DateMidnight |
getEndDate()
Contains the end day of the date range provide by this team allocation object |
org.joda.time.DateMidnight |
getStartDate()
Contains the start date of the date range provided by this team allocation object |
long |
getTime(org.joda.time.DateMidnight day)
Get the total time for a single day. |
java.util.Map<org.joda.time.DateMidnight,java.lang.Long> |
getTimePerDay()
Get the time on a per-day basis. |
long |
getTotalTime()
Get the total time for the whole allocation period. |
java.util.List<org.joda.time.DateMidnight> |
getWorkingDays()
Get all days where at least one team member is working |
int |
getWorkingDaysCount()
Get the number of working days |
boolean |
hasWorkingDays()
Returns whether this allocation object contains any working days |
boolean |
isWorkingDay(org.joda.time.DateMidnight day)
Does the provided DateMidnight object represent a working day? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTimeAllocation(org.joda.time.DateMidnight startDay,
org.joda.time.DateMidnight endDay,
java.util.List<org.joda.time.DateMidnight> workingDays,
long secondsPerDay)
| Method Detail |
|---|
public org.joda.time.DateMidnight getStartDate()
DaysAllocation
getStartDate in interface DaysAllocationpublic org.joda.time.DateMidnight getEndDate()
DaysAllocation
getEndDate in interface DaysAllocationpublic boolean hasWorkingDays()
DaysAllocation
hasWorkingDays in interface DaysAllocationpublic int getWorkingDaysCount()
DaysAllocation
getWorkingDaysCount in interface DaysAllocationpublic boolean isWorkingDay(org.joda.time.DateMidnight day)
DaysAllocation
isWorkingDay in interface DaysAllocationpublic java.util.List<org.joda.time.DateMidnight> getWorkingDays()
DaysAllocation
getWorkingDays in interface DaysAllocationpublic long getTotalTime()
TimeAllocation
getTotalTime in interface TimeAllocationpublic java.util.Map<org.joda.time.DateMidnight,java.lang.Long> getTimePerDay()
TimeAllocation
getTimePerDay in interface TimeAllocationpublic long getTime(org.joda.time.DateMidnight day)
TimeAllocation
getTime in interface TimeAllocationday - the day to fetch the total for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||