ItEr33S14CUCreacionUnidadesPlanificacion: Exposing deadline property
This commit is contained in:
parent
3094db9989
commit
cfd94f2af8
4 changed files with 25 additions and 0 deletions
|
|
@ -142,4 +142,9 @@ public class DefaultFundamentalProperties implements ITaskFundamentalProperties
|
|||
setBeginDate(date);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getDeadline() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ public interface ITaskFundamentalProperties {
|
|||
|
||||
public Date getBeginDate();
|
||||
|
||||
/**
|
||||
* The deadline associated to the task. It can return null if has no
|
||||
* deadline associated
|
||||
*/
|
||||
public Date getDeadline();
|
||||
|
||||
public void setLengthMilliseconds(long lengthMilliseconds);
|
||||
|
||||
public long getLengthMilliseconds();
|
||||
|
|
|
|||
|
|
@ -224,4 +224,9 @@ public abstract class Task implements ITaskFundamentalProperties {
|
|||
fireChangesForPreviousValues(previousStart, previousLength);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getDeadline() {
|
||||
return fundamentalProperties.getDeadline();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -351,6 +351,15 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
task.explicityMoved(date);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getDeadline() {
|
||||
LocalDate deadline = taskElement.getDeadline();
|
||||
if (deadline == null) {
|
||||
return null;
|
||||
}
|
||||
return deadline.toDateTimeAtStartOfDay().toDate();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue