use of org.bedework.calfacade.base.AttendeesEntity 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());
}
}
Aggregations