001/* 002 * Copyright 2010 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.web; 017 018/** 019 * Constants for event identifiers. 020 */ 021public interface ObservationConstants 022{ 023 /** Argument name for processed page */ 024 public static final String ARGS_PAGE_CONTAINER = "pagecontainer"; 025 /** Argument name for processed page */ 026 public static final String ARGS_PAGE = "page"; 027 /** Argument name for processed page's id */ 028 public static final String ARGS_PAGE_ID = "page.id"; 029 /** Argument name for processed page's id */ 030 public static final String ARGS_PAGE_PATH = "page.path"; 031 /** Argument name for processed page's parent */ 032 public static final String ARGS_PAGE_PARENT = "page.parent"; 033 /** Argument name for processed zone */ 034 public static final String ARGS_ZONE = "zone"; 035 /** Argument name for processed zoneitem */ 036 public static final String ARGS_ZONE_ITEM = "zone.item"; 037 /** Argument name for processed zoneitem's id */ 038 public static final String ARGS_ZONE_ITEM_ID = "zone.item.id"; 039 /** Argument name for processed zone's type */ 040 public static final String ARGS_ZONE_TYPE = "zone.type"; 041 /** Argument name for processed zoneitem's content. */ 042 public static final String ARGS_ZONE_ITEM_CONTENT = "zone.item.content"; 043 /** Argument name for processed site */ 044 public static final String ARGS_SITE = "site"; 045 /** Argument name for processed site ID */ 046 public static final String ARGS_SITE_ID = "site.id"; 047 /** Argument name for processed site's name */ 048 public static final String ARGS_SITE_NAME = "site.name"; 049 /** Argument name for processed site's path */ 050 public static final String ARGS_SITE_PATH = "site.apth"; 051 /** Argument name for processed sitemap */ 052 public static final String ARGS_SITEMAP = "sitemap"; 053 /** Argument name for processed sitemap's name */ 054 public static final String ARGS_SITEMAP_NAME = "sitemap.name"; 055 056 /** Event id when a site is added. */ 057 public static final String EVENT_SITE_ADDED = "site.added"; 058 /** Event id when a site's configuration is updating. */ 059 public static final String EVENT_SITE_UPDATING = "site.updating"; 060 /** Event id when a site's configuration is updated. */ 061 public static final String EVENT_SITE_UPDATED = "site.updated"; 062 /** Event id when a site is deleted. */ 063 public static final String EVENT_SITE_DELETED = "site.deleted"; 064 /** Event id when a site is moved. */ 065 public static final String EVENT_SITE_MOVED = "site.moved"; 066 067 /** Event id when a sitemap is added. */ 068 public static final String EVENT_SITEMAP_ADDED = "sitemap.added"; 069 /** Event id when a sitemap property is modified. */ 070 public static final String EVENT_SITEMAP_UPDATED = "sitemap.updated"; 071 /** Event id when a sitemap is deleted. */ 072 public static final String EVENT_SITEMAP_DELETED = "sitemap.deleted"; 073 074 /** Event id when a page is added. */ 075 public static final String EVENT_PAGE_ADDED = "page.added"; 076 /** Event id when a page is updated. */ 077 public static final String EVENT_PAGE_UPDATED = "page.updated"; 078 /** Event id when a page's type is modified. */ 079 public static final String EVENT_PAGE_CHANGED = "page.changed"; 080 /** Event id when a page is moved. */ 081 public static final String EVENT_PAGE_MOVED = "page.moved"; 082 /** Event id when a page is being deleted. */ 083 public static final String EVENT_PAGE_DELETING = "page.deleting"; 084 /** Event id when a page is deleted. */ 085 public static final String EVENT_PAGE_DELETED = "page.deleted"; 086 /** Event id when a page is renamed. */ 087 public static final String EVENT_PAGE_RENAMED = "page.renamed"; 088 089 /** Event id when a zone item is added. */ 090 public static final String EVENT_ZONEITEM_ADDED = "zoneitem.added"; 091 /** Event id when a zone item is moved. */ 092 public static final String EVENT_ZONEITEM_MOVED = "zoneitem.moved"; 093 /** Event id when a zone item is deleted. */ 094 public static final String EVENT_ZONEITEM_DELETED = "zoneitem.deleted"; 095 /** Event id when a zone item is modified (structurally). */ 096 public static final String EVENT_ZONEITEM_MODIFIED = "zoneitem.modified"; 097 098 /** Event id when a service is modified. */ 099 public static final String EVENT_SERVICE_MODIFIED = "service.modified"; 100 101 /** Event id when a content is upublished. */ 102 public static final String EVENT_CONTENT_UNPUBLISHED = "content.unpublished"; 103 104 /** Event id when the robots.txt has changed. */ 105 public static final String EVENT_ROBOTS_CHANGED = "robots.changed"; 106 107 /** Event id when a content privacy has been changed. */ 108 public static final String EVENT_CONTENT_PRIVACY_CHANGED = "content.privacy.changed"; 109 110 /** Event id when user preferences have been saved. */ 111 public static final String EVENT_USER_PREFERENCES_CHANGED = "user.preferences.saved"; 112}