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