public TaskFluent setCreatedOn(Date createdOn){ ((TaskDataImpl)task.getTaskData()).setCreatedOn(createdOn); return this; }
public Task getTask() { if(((TaskDataImpl)task.getTaskData()).getCreatedOn() == null){ ((TaskDataImpl)task.getTaskData()).setCreatedOn(new Date()); } return task; }
/** * Initializes the state of the TaskData, i.e. sets the <field>createdOn</field>, <field>activationTime</field> * and sets the state to <code>Status.Created</code>. * * @return returns the current state of the TaskData */ public Status initialize() { Date createdOn = getCreatedOn(); // set the CreatedOn date if it's not already set if (createdOn == null) { createdOn = new Date(); setCreatedOn(createdOn); } //@FIXME for now we activate on creation, unless date is supplied if (getActivationTime() == null) { setActivationTime(createdOn); } setStatus(Status.Created); return Status.Created; }
public TaskFluent setCreatedOn(Date createdOn){ ((TaskDataImpl)task.getTaskData()).setCreatedOn(createdOn); return this; }
public Task getTask() { if(((TaskDataImpl)task.getTaskData()).getCreatedOn() == null){ ((TaskDataImpl)task.getTaskData()).setCreatedOn(new Date()); } return task; }
/** * Initializes the state of the TaskData, i.e. sets the <field>createdOn</field>, <field>activationTime</field> * and sets the state to <code>Status.Created</code>. * * @return returns the current state of the TaskData */ public Status initialize() { Date createdOn = getCreatedOn(); // set the CreatedOn date if it's not already set if (createdOn == null) { createdOn = new Date(); setCreatedOn(createdOn); } //@FIXME for now we activate on creation, unless date is supplied if (getActivationTime() == null) { setActivationTime(createdOn); } setStatus(Status.Created); return Status.Created; }