|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 DaysAllocation
public org.joda.time.DateMidnight getEndDate()
DaysAllocation
getEndDate
in interface DaysAllocation
public boolean hasWorkingDays()
DaysAllocation
hasWorkingDays
in interface DaysAllocation
public int getWorkingDaysCount()
DaysAllocation
getWorkingDaysCount
in interface DaysAllocation
public boolean isWorkingDay(org.joda.time.DateMidnight day)
DaysAllocation
isWorkingDay
in interface DaysAllocation
public java.util.List<org.joda.time.DateMidnight> getWorkingDays()
DaysAllocation
getWorkingDays
in interface DaysAllocation
public long getTotalTime()
TimeAllocation
getTotalTime
in interface TimeAllocation
public java.util.Map<org.joda.time.DateMidnight,java.lang.Long> getTimePerDay()
TimeAllocation
getTimePerDay
in interface TimeAllocation
public long getTime(org.joda.time.DateMidnight day)
TimeAllocation
getTime
in interface TimeAllocation
day
- the day to fetch the total for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |