use of net.opengis.swe.x20.TextPropertyType in project bw-calendar-engine by Bedework.
the class DescriptionPropUpdater method applyUpdate.
@Override
public UpdateResult applyUpdate(final UpdateInfo ui) throws WebdavException {
final BwEvent ev = ui.getEvent();
if (ui.isRemove()) {
ui.getCte().setDeleted(ev.getDescription());
ev.setDescription(null);
return UpdateResult.getOkResult();
}
if (ui.getUpdprop() == null) {
// No change - parameters only upated?
return UpdateResult.getOkResult();
}
final String val = ((TextPropertyType) ui.getUpdprop()).getText();
if (ui.getCte().setChanged(ev.getDescription(), val)) {
ev.setDescription(val);
}
return UpdateResult.getOkResult();
}
use of net.opengis.swe.x20.TextPropertyType in project bw-calendar-engine by Bedework.
the class SummaryPropUpdater method applyUpdate.
@Override
public UpdateResult applyUpdate(final UpdateInfo ui) throws WebdavException {
BwEvent ev = ui.getEvent();
if (ui.isRemove()) {
return new UpdateResult("cannot remove: " + ui.getPropName());
}
String val = ((TextPropertyType) ui.getUpdprop()).getText();
if (ui.getCte().setChanged(ev.getSummary(), val)) {
ev.setSummary(val);
}
return UpdateResult.getOkResult();
}
Aggregations