Beispiel #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));
   }
 }
 @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));
 }
 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));
   }
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
 private final void updateBurnedWork(int burnedWork) {
   if (isBurnedWork(burnedWork)) return;
   this.burnedWork = burnedWork;
   updateLastModified();
   fireModified(
       "burnedWork", ilarkesto.core.persistance.Persistence.propertyAsString(this.burnedWork));
 }
 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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
 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));
 }
 private final void updateRemainingWork(int remainingWork) {
   if (isRemainingWork(remainingWork)) return;
   this.remainingWork = remainingWork;
   updateLastModified();
   fireModified(
       "remainingWork",
       ilarkesto.core.persistance.Persistence.propertyAsString(this.remainingWork));
 }
 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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }