use of org.bedework.caldav.util.notifications.ResourceChangeType in project bw-calendar-engine by Bedework.
the class NotificationsInfo method getAdded.
/**
* Call for an added event
*
* @param currentAuth
* @param ev
* @return resource created notification.
* @throws CalFacadeException
*/
public static ResourceChangeType getAdded(final String currentAuth, final BwEvent ev) throws CalFacadeException {
try {
ResourceChangeType rc = new ResourceChangeType();
CreatedType cre = new CreatedType();
cre.setHref(getHref(ev));
cre.setChangedBy(getChangedBy(currentAuth));
rc.setCreated(cre);
return rc;
} catch (Throwable t) {
throw new CalFacadeException(t);
}
}
Aggregations