Ejemplo n.º 1
0
 public void updateProperties(Map<String, String> properties) {
   super.updateProperties(properties);
   for (Map.Entry<String, String> entry : properties.entrySet()) {
     String property = entry.getKey();
     if (property.equals("id")) continue;
     String value = entry.getValue();
     if (property.equals("projectId"))
       updateProjectId(ilarkesto.core.persistance.Persistence.parsePropertyReference(value));
     if (property.equals("label"))
       updateLabel(ilarkesto.core.persistance.Persistence.parsePropertyString(value));
     if (property.equals("number"))
       updateNumber(ilarkesto.core.persistance.Persistence.parsePropertyint(value));
     if (property.equals("date"))
       updateDate(ilarkesto.core.persistance.Persistence.parsePropertyDate(value));
     if (property.equals("time"))
       updateTime(ilarkesto.core.persistance.Persistence.parsePropertyTime(value));
     if (property.equals("location"))
       updateLocation(ilarkesto.core.persistance.Persistence.parsePropertyString(value));
     if (property.equals("duration"))
       updateDuration(ilarkesto.core.persistance.Persistence.parsePropertyInteger(value));
     if (property.equals("agenda"))
       updateAgenda(ilarkesto.core.persistance.Persistence.parsePropertyString(value));
     if (property.equals("note"))
       updateNote(ilarkesto.core.persistance.Persistence.parsePropertyString(value));
   }
 }
Ejemplo n.º 2
0
 @Override
 public void storeProperties(Map<String, String> properties) {
   super.storeProperties(properties);
   properties.put(
       "sprintId", ilarkesto.core.persistance.Persistence.propertyAsString(this.sprintId));
   properties.put(
       "remainingWork",
       ilarkesto.core.persistance.Persistence.propertyAsString(this.remainingWork));
   properties.put(
       "burnedWork", ilarkesto.core.persistance.Persistence.propertyAsString(this.burnedWork));
 }
Ejemplo n.º 3
0
 public void updateProperties(Map<String, String> properties) {
   super.updateProperties(properties);
   for (Map.Entry<String, String> entry : properties.entrySet()) {
     String property = entry.getKey();
     if (property.equals("id")) continue;
     String value = entry.getValue();
     if (property.equals("sprintId"))
       updateSprintId(ilarkesto.core.persistance.Persistence.parsePropertyReference(value));
     if (property.equals("remainingWork"))
       updateRemainingWork(ilarkesto.core.persistance.Persistence.parsePropertyint(value));
     if (property.equals("burnedWork"))
       updateBurnedWork(ilarkesto.core.persistance.Persistence.parsePropertyint(value));
   }
 }
Ejemplo n.º 4
0
 public final void setDate(ilarkesto.core.time.Date date) {
   date = prepareDate(date);
   if (isDate(date)) return;
   this.date = date;
   updateLastModified();
   fireModified("date", ilarkesto.core.persistance.Persistence.propertyAsString(this.date));
 }
Ejemplo n.º 5
0
 public final void setTime(ilarkesto.core.time.Time time) {
   time = prepareTime(time);
   if (isTime(time)) return;
   this.time = time;
   updateLastModified();
   fireModified("time", ilarkesto.core.persistance.Persistence.propertyAsString(this.time));
 }
Ejemplo n.º 6
0
 public final void setNote(java.lang.String note) {
   note = prepareNote(note);
   if (isNote(note)) return;
   this.note = note;
   updateLastModified();
   fireModified("note", ilarkesto.core.persistance.Persistence.propertyAsString(this.note));
 }
Ejemplo n.º 7
0
 private final void updateBurnedWork(int burnedWork) {
   if (isBurnedWork(burnedWork)) return;
   this.burnedWork = burnedWork;
   updateLastModified();
   fireModified(
       "burnedWork", ilarkesto.core.persistance.Persistence.propertyAsString(this.burnedWork));
 }
Ejemplo n.º 8
0
 public final void setSprintId(String id) {
   if (Utl.equals(sprintId, id)) return;
   this.sprintId = id;
   updateLastModified();
   fireModified(
       "sprintId", ilarkesto.core.persistance.Persistence.propertyAsString(this.sprintId));
 }
Ejemplo n.º 9
0
 public final void setNumber(int number) {
   number = prepareNumber(number);
   if (isNumber(number)) return;
   this.number = number;
   updateLastModified();
   fireModified("number", ilarkesto.core.persistance.Persistence.propertyAsString(this.number));
 }
Ejemplo n.º 10
0
 public final void setAgenda(java.lang.String agenda) {
   agenda = prepareAgenda(agenda);
   if (isAgenda(agenda)) return;
   this.agenda = agenda;
   updateLastModified();
   fireModified("agenda", ilarkesto.core.persistance.Persistence.propertyAsString(this.agenda));
 }
Ejemplo n.º 11
0
 private final void updateDuration(java.lang.Integer duration) {
   if (isDuration(duration)) return;
   this.duration = duration;
   updateLastModified();
   fireModified(
       "duration", ilarkesto.core.persistance.Persistence.propertyAsString(this.duration));
 }
Ejemplo n.º 12
0
 private final void updateLocation(java.lang.String location) {
   if (isLocation(location)) return;
   this.location = location;
   updateLastModified();
   fireModified(
       "location", ilarkesto.core.persistance.Persistence.propertyAsString(this.location));
 }
Ejemplo n.º 13
0
 private final void updateLabel(java.lang.String label) {
   if (isLabel(label)) return;
   if (label == null)
     throw new IllegalArgumentException("Mandatory field can not be set to null: label");
   this.label = label;
   updateLastModified();
   fireModified("label", ilarkesto.core.persistance.Persistence.propertyAsString(this.label));
 }
Ejemplo n.º 14
0
 public final void setBurnedWork(int burnedWork) {
   burnedWork = prepareBurnedWork(burnedWork);
   if (isBurnedWork(burnedWork)) return;
   this.burnedWork = burnedWork;
   updateLastModified();
   fireModified(
       "burnedWork", ilarkesto.core.persistance.Persistence.propertyAsString(this.burnedWork));
 }
Ejemplo n.º 15
0
 private final void updateRemainingWork(int remainingWork) {
   if (isRemainingWork(remainingWork)) return;
   this.remainingWork = remainingWork;
   updateLastModified();
   fireModified(
       "remainingWork",
       ilarkesto.core.persistance.Persistence.propertyAsString(this.remainingWork));
 }
Ejemplo n.º 16
0
 public final void setRemainingWork(int remainingWork) {
   remainingWork = prepareRemainingWork(remainingWork);
   if (isRemainingWork(remainingWork)) return;
   this.remainingWork = remainingWork;
   updateLastModified();
   fireModified(
       "remainingWork",
       ilarkesto.core.persistance.Persistence.propertyAsString(this.remainingWork));
 }
Ejemplo n.º 17
0
 @Override
 public void storeProperties(Map<String, String> properties) {
   super.storeProperties(properties);
   properties.put(
       "projectId", ilarkesto.core.persistance.Persistence.propertyAsString(this.projectId));
   properties.put("label", ilarkesto.core.persistance.Persistence.propertyAsString(this.label));
   properties.put("number", ilarkesto.core.persistance.Persistence.propertyAsString(this.number));
   properties.put("date", ilarkesto.core.persistance.Persistence.propertyAsString(this.date));
   properties.put("time", ilarkesto.core.persistance.Persistence.propertyAsString(this.time));
   properties.put(
       "location", ilarkesto.core.persistance.Persistence.propertyAsString(this.location));
   properties.put(
       "duration", ilarkesto.core.persistance.Persistence.propertyAsString(this.duration));
   properties.put("agenda", ilarkesto.core.persistance.Persistence.propertyAsString(this.agenda));
   properties.put("note", ilarkesto.core.persistance.Persistence.propertyAsString(this.note));
 }
Ejemplo n.º 18
0
 private final void updateNumber(int number) {
   if (isNumber(number)) return;
   this.number = number;
   updateLastModified();
   fireModified("number", ilarkesto.core.persistance.Persistence.propertyAsString(this.number));
 }
Ejemplo n.º 19
0
 private final void updateDate(ilarkesto.core.time.Date date) {
   if (isDate(date)) return;
   this.date = date;
   updateLastModified();
   fireModified("date", ilarkesto.core.persistance.Persistence.propertyAsString(this.date));
 }
Ejemplo n.º 20
0
 private final void updateNote(java.lang.String note) {
   if (isNote(note)) return;
   this.note = note;
   updateLastModified();
   fireModified("note", ilarkesto.core.persistance.Persistence.propertyAsString(this.note));
 }
Ejemplo n.º 21
0
 private final void updateTime(ilarkesto.core.time.Time time) {
   if (isTime(time)) return;
   this.time = time;
   updateLastModified();
   fireModified("time", ilarkesto.core.persistance.Persistence.propertyAsString(this.time));
 }