use of org.bedework.calfacade.base.PropertiesEntity in project bw-calendar-engine by Bedework.
the class CalintfHelper method tombstoneEntity.
protected void tombstoneEntity(final BwShareableContainedDbentity val) {
if (val instanceof AlarmsEntity) {
clearCollection(((AlarmsEntity) val).getAlarms());
}
if (val instanceof AttachmentsEntity) {
clearCollection(((AttachmentsEntity) val).getAttachments());
}
if (val instanceof AttendeesEntity) {
clearCollection(((AttendeesEntity) val).getAttendees());
}
if (val instanceof CategorisedEntity) {
clearCollection(((CategorisedEntity) val).getCategories());
}
if (val instanceof CommentedEntity) {
clearCollection(((CommentedEntity) val).getComments());
}
if (val instanceof ContactedEntity) {
clearCollection(((ContactedEntity) val).getContacts());
}
if (val instanceof DescriptionEntity) {
clearCollection(((DescriptionEntity) val).getDescriptions());
}
if (val instanceof RecurrenceEntity) {
RecurrenceEntity re = (RecurrenceEntity) val;
re.setRecurring(false);
clearCollection(re.getExdates());
clearCollection(re.getExrules());
clearCollection(re.getRdates());
clearCollection(re.getRrules());
}
if (val instanceof ResourcedEntity) {
clearCollection(((ResourcedEntity) val).getResources());
}
if (val instanceof SummaryEntity) {
clearCollection(((SummaryEntity) val).getSummaries());
}
if (val instanceof PropertiesEntity) {
clearCollection(((PropertiesEntity) val).getProperties());
}
}
use of org.bedework.calfacade.base.PropertiesEntity in project bw-calendar-engine by Bedework.
the class PropertiesRule method end.
@Override
@SuppressWarnings("unchecked")
public void end(final String ns, final String name) throws Exception {
if (name.equals("properties")) {
/* Top should be the collection
*/
Set<BwProperty> ps = (Set<BwProperty>) pop();
PropertiesEntity pe = (PropertiesEntity) top();
pe.setProperties(ps);
return;
}
/* Top should be a BwProperty to add to the collection */
BwProperty p = (BwProperty) pop();
Collection<BwProperty> ps = (Collection<BwProperty>) top();
ps.add(p);
}
Aggregations