Commit e57ef3e5 authored by Mathieu Gicquel's avatar Mathieu Gicquel
Browse files

Task extends AbstractTask - fix #33

parent 77e7d636
......@@ -6,7 +6,7 @@ import fr.alma.gtd.server.core.reference.*;
import java.util.Date;
import java.util.List;
public class Task implements ITask {
public class Task extends AbstractTask implements ITask {
private String task;
private int priority;
......@@ -36,191 +36,86 @@ public class Task implements ITask {
return null;
}
@Override
public void setServerIdentifier(String idServer) {
}
@Override
public Date getLastModificationDate() {
return null;
}
@Override
public void setLastModificationDate(Date lastModificationDate) {
}
@Override
public void archive() {
}
@Override
public void putInTrash() {
}
@Override
public void restore() {
}
@Override
public String getName() {
return task;
}
@Override
public void setName(String n) {
task = n;
}
@Override
public int getPriority() {
return priority;
}
@Override
public void setPriority(int p) {
priority = p;
}
@Override
public int getEffortRate() {
return effortRate;
}
@Override
public void setEffortRate(int effort) {
effortRate = effort;
}
@Override
public Progress getProgress() {
return progress;
}
@Override
public void setProgress(Progress p) {
progress = p;
}
@Override
public Frequency getFrequency() {
return frequency;
}
@Override
public void setFrequency(Frequency f) {
frequency = f;
}
@Override
public Date getBeginningDate() {
return beginningDate;
}
@Override
public void setBeginningDate(Date beginningDate) {
this.beginningDate = beginningDate;
}
@Override
public Date getEndingDate() {
return endingDate;
}
@Override
public void setEndingDate(Date endingDate) {
this.endingDate = endingDate;
}
@Override
public boolean isTrash() {
return false;
}
@Override
public void setTrash(boolean isTrash) {
}
@Override
public boolean isArchived() {
return false;
}
@Override
public void setArchived(boolean archived) {
}
@Override
public IParticipant getCreator() {
return this.creator.get();
}
@Override
public void setCreator(IParticipant c) {
this.creator.set(c);
}
@Override
public IParticipant getParticipant() {
return null;
}
@Override
public void setParticipant(IParticipant p) {
}
@Override
public IContext getContext() {
return this.context.get();
}
@Override
public void setContext(IContext c) throws ClassCastException{
this.context.set((Context) c);
}
@Override
public List<ITag> getTagsList() {
return this.tags.get();
}
@Override
public void setTagsList(List<ITag> tagsList) {
this.tags.set(tagsList);
}
@Override
public List<String> getURLsList() {
return null;
}
@Override
public void setURLsList(List<String> URLsList) {
}
@Override
public IProject getProjectContainer() {
return this.getProjectReference().get();
}
@Override
public void setProjectContainer(IProject project) {
this.getProjectReference().set(project);
}
@Override
public SingleReference<IContext> getContextReference() {
return this.context;
......@@ -231,21 +126,11 @@ public class Task implements ITask {
return null;
}
@Override
public void setPreviousTasksList(List<ITask> previousTasksList) {
}
@Override
public List<IContact> getListeContacts() {
return null;
}
@Override
public void setContactsList(List<IContact> contacts) {
}
@Override
public MultipleReference<ITag> getTagReference() {
return this.tags;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment