001/* 002 * Copyright 2013 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.plugins.workspaces.calendars; 017 018/** 019 * Constants for calendar observers. 020 */ 021public interface ObservationConstants 022{ 023 // ----------------------------// 024 // Calendar and calendar events// 025 // ----------------------------// 026 027 /** Event id when a calendar is created. */ 028 public static final String EVENT_CALENDAR_CREATED = "calendar.created"; 029 030 /** Event id when a calendar is updated. */ 031 public static final String EVENT_CALENDAR_UPDATED = "calendar.updated"; 032 033 /** Event id when a calendar is deleted. */ 034 public static final String EVENT_CALENDAR_DELETED = "calendar.deleted"; 035 036 /** Event id when a calendar is moved. */ 037 public static final String EVENT_CALENDAR_MOVED = "calendar.moved"; 038 039 /** Event id when a calendar event is created. */ 040 public static final String EVENT_CALENDAR_EVENT_CREATED = "calendar.event.created"; 041 042 /** Event id when a calendar event is updated. */ 043 public static final String EVENT_CALENDAR_EVENT_UPDATED = "calendar.event.updated"; 044 045 /** Event id just before a calendar event is deleted. */ 046 public static final String EVENT_CALENDAR_EVENT_DELETING = "calendar.event.deleting"; 047 048 /** Event id when a calendar event is deleted. */ 049 public static final String EVENT_CALENDAR_EVENT_DELETED = "calendar.event.deleted"; 050 051 /** Event id when a calendar resource is created. */ 052 public static final String EVENT_CALENDAR_RESOURCE_CREATED = "calendar.resource.created"; 053 054 /** Event id when a calendar resource is updated. */ 055 public static final String EVENT_CALENDAR_RESOURCE_UPDATED = "calendar.resource.updated"; 056 057 /** Event id when a calendar resource is deleted. */ 058 public static final String EVENT_CALENDAR_RESOURCE_DELETED = "calendar.resource.deleted"; 059 060 061 // ----------------// 062 // Event arguments // 063 // ----------------// 064 065 /** Argument name for processed calendar */ 066 public static final String ARGS_CALENDAR = "calendar"; 067 068 /** Argument name for processed calendar's event */ 069 public static final String ARGS_CALENDAR_EVENT = "calendar.event"; 070} 071