Exemplo n.º 1
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));
 }
Exemplo n.º 2
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));
   }
 }
Exemplo n.º 3
0
 private final void updateBurnedWork(int burnedWork) {
   if (isBurnedWork(burnedWork)) return;
   this.burnedWork = burnedWork;
   updateLastModified();
   fireModified(
       "burnedWork", ilarkesto.core.persistance.Persistence.propertyAsString(this.burnedWork));
 }
Exemplo n.º 4
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));
 }
Exemplo n.º 5
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));
 }
Exemplo n.º 6
0
 private final void updateRemainingWork(int remainingWork) {
   if (isRemainingWork(remainingWork)) return;
   this.remainingWork = remainingWork;
   updateLastModified();
   fireModified(
       "remainingWork",
       ilarkesto.core.persistance.Persistence.propertyAsString(this.remainingWork));
 }
Exemplo n.º 7
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));
 }