Search in sources :

Example 1 with CreatedType

use of org.bedework.caldav.util.notifications.CreatedType 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);
    }
}
Also used : ResourceChangeType(org.bedework.caldav.util.notifications.ResourceChangeType) CreatedType(org.bedework.caldav.util.notifications.CreatedType) CalFacadeException(org.bedework.calfacade.exc.CalFacadeException)

Aggregations

CreatedType (org.bedework.caldav.util.notifications.CreatedType)1 ResourceChangeType (org.bedework.caldav.util.notifications.ResourceChangeType)1 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)1