Search in sources :

Example 6 with ResourceChangeType

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

Aggregations

ResourceChangeType (org.bedework.caldav.util.notifications.ResourceChangeType)6 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)4 NotificationType (org.bedework.caldav.util.notifications.NotificationType)2 UpdatedType (org.bedework.caldav.util.notifications.UpdatedType)2 BaseNotificationType (org.bedework.caldav.util.notifications.BaseNotificationType)1 ChangedPropertyType (org.bedework.caldav.util.notifications.ChangedPropertyType)1 CreatedType (org.bedework.caldav.util.notifications.CreatedType)1 DeletedDetailsType (org.bedework.caldav.util.notifications.DeletedDetailsType)1 DeletedType (org.bedework.caldav.util.notifications.DeletedType)1 AdminNotificationType (org.bedework.caldav.util.notifications.admin.AdminNotificationType)1 ApprovalResponseNotificationType (org.bedework.caldav.util.notifications.admin.ApprovalResponseNotificationType)1 AwaitingApprovalNotificationType (org.bedework.caldav.util.notifications.admin.AwaitingApprovalNotificationType)1 SuggestBaseNotificationType (org.bedework.caldav.util.notifications.suggest.SuggestBaseNotificationType)1 SuggestNotificationType (org.bedework.caldav.util.notifications.suggest.SuggestNotificationType)1 SuggestResponseNotificationType (org.bedework.caldav.util.notifications.suggest.SuggestResponseNotificationType)1 AliasesInfo (org.bedework.calfacade.AliasesInfo)1 BwPreferences (org.bedework.calfacade.svc.BwPreferences)1