001/* 002 * Copyright 2022 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 sitemap or page */ 024 public static final String ARGS_SITEMAP_ELEMENT = "sitemapelement"; 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 page's contents*/ 034 public static final String ARGS_PAGE_CONTENTS = "page.contents"; 035 /** Argument name for processed page's tags*/ 036 public static final String ARGS_PAGE_TAGS = "page.tags"; 037 /** Argument name for processed page's old tags*/ 038 public static final String ARGS_PAGE_OLD_TAGS = "page.old.tags"; 039 /** Argument name for processed zone */ 040 public static final String ARGS_ZONE = "zone"; 041 /** Argument name for processed zoneitem */ 042 public static final String ARGS_ZONE_ITEM = "zone.item"; 043 /** Argument name for processed zoneitem's id */ 044 public static final String ARGS_ZONE_ITEM_ID = "zone.item.id"; 045 /** Argument name for processed zone's type */ 046 public static final String ARGS_ZONE_TYPE = "zone.type"; 047 /** Argument name for processed zoneitem's content. */ 048 public static final String ARGS_ZONE_ITEM_CONTENT = "zone.item.content"; 049 /** Argument name for processed zoneitem's service id. */ 050 public static final String ARGS_ZONE_ITEM_SERVICE = "zone.item.service"; 051 /** Argument name for processed site */ 052 public static final String ARGS_SITE = "site"; 053 /** Argument name for processed site ID */ 054 public static final String ARGS_SITE_ID = "site.id"; 055 /** Argument name for processed site's name */ 056 public static final String ARGS_SITE_NAME = "site.name"; 057 /** Argument name for processed site's path */ 058 public static final String ARGS_SITE_PATH = "site.apth"; 059 /** Argument name for processed sitemap */ 060 public static final String ARGS_SITEMAP = "sitemap"; 061 /** Argument name for processed sitemap's name */ 062 public static final String ARGS_SITEMAP_NAME = "sitemap.name"; 063 064 /** Event id when a site is added. */ 065 public static final String EVENT_SITE_ADDED = "site.added"; 066 /** Event id when a site's configuration is updating. */ 067 public static final String EVENT_SITE_UPDATING = "site.updating"; 068 /** Event id when a site's configuration is updated. */ 069 public static final String EVENT_SITE_UPDATED = "site.updated"; 070 /** Event id when a site is deleted. */ 071 public static final String EVENT_SITE_DELETED = "site.deleted"; 072 /** Event id when a site is moved. */ 073 public static final String EVENT_SITE_MOVED = "site.moved"; 074 075 /** Event id when a sitemap is added. */ 076 public static final String EVENT_SITEMAP_ADDED = "sitemap.added"; 077 /** Event id when a sitemap property is modified. */ 078 public static final String EVENT_SITEMAP_UPDATED = "sitemap.updated"; 079 /** Event id when a sitemap is deleted. */ 080 public static final String EVENT_SITEMAP_DELETED = "sitemap.deleted"; 081 082 /** Event id when a page is added. */ 083 public static final String EVENT_PAGE_ADDED = "page.added"; 084 /** Event id when a page is updated. */ 085 public static final String EVENT_PAGE_UPDATED = "page.updated"; 086 /** Event id when a page's type is modified. */ 087 public static final String EVENT_PAGE_CHANGED = "page.changed"; 088 /** Event id when a page is moved. */ 089 public static final String EVENT_PAGE_MOVED = "page.moved"; 090 /** Event id when a page is being deleted. */ 091 public static final String EVENT_PAGE_DELETING = "page.deleting"; 092 /** Event id when a page is deleted. */ 093 public static final String EVENT_PAGE_DELETED = "page.deleted"; 094 /** Event id when a page is renamed. */ 095 public static final String EVENT_PAGE_RENAMED = "page.renamed"; 096 097 /** Event id when a zone item is added. */ 098 public static final String EVENT_ZONEITEM_ADDED = "zoneitem.added"; 099 /** Event id when a zone item is moved. */ 100 public static final String EVENT_ZONEITEM_MOVED = "zoneitem.moved"; 101 /** Event id when a zone item is deleted. */ 102 public static final String EVENT_ZONEITEM_DELETED = "zoneitem.deleted"; 103 /** Event id when a zone item is modified (structurally). */ 104 public static final String EVENT_ZONEITEM_MODIFIED = "zoneitem.modified"; 105 106 /** Event id when a service is modified. */ 107 public static final String EVENT_SERVICE_MODIFIED = "service.modified"; 108 109 /** Event id when the robots.txt has changed. */ 110 public static final String EVENT_ROBOTS_CHANGED = "robots.changed"; 111 112 /** Event id when a content privacy has been changed. */ 113 public static final String EVENT_CONTENT_PRIVACY_CHANGED = "content.privacy.changed"; 114 115 /** Event id when user preferences have been saved. */ 116 public static final String EVENT_USER_PREFERENCES_CHANGED = "user.preferences.saved"; 117 118 /** Event id when view parameters are modified. */ 119 public static final String EVENT_VIEW_PARAMETERS_MODIFIED = "view.parameters.modified"; 120 121}