@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)); } }
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)); }
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)); }