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 */ 016 017package org.ametys.web; 018 019import org.ametys.web.repository.page.Page; 020import org.ametys.web.repository.page.ZoneItem; 021import org.ametys.web.repository.site.Site; 022import org.ametys.web.repository.sitemap.Sitemap; 023 024/** 025 * Constants for the Web plugin. 026 */ 027public interface WebConstants 028{ 029 /** Name of the JCR live workspace */ 030 public static final String LIVE_WORKSPACE = "live"; 031 032 /** Label for the validated version of contents. */ 033 public static final String LIVE_LABEL = "Live"; 034 035 /** The request attribute name pointing out an anonymous access */ 036 public static final String ANONYMOUS_MODE = "X-Ametys-AnonymousMode"; 037 038 /** The request attribute name holding the current page id */ 039 public static final String REQUEST_ATTR_PAGE_ID = "pageId"; 040 /** The request attribute name holding the current page object */ 041 public static final String REQUEST_ATTR_PAGE = Page.class.getName(); 042 /** The request attribute name holding the current zone name */ 043 public static final String REQUEST_ATTR_ZONE_NAME = "zoneName"; 044 /** The request attribute name holding the current zone item object */ 045 public static final String REQUEST_ATTR_ZONEITEM = ZoneItem.class.getName(); 046 /** The request attribute name holding the current zone item id */ 047 public static final String REQUEST_ATTR_ZONEITEM_ID = "zoneItemId"; 048 /** The request attribute name holding the service id */ 049 public static final String REQUEST_ATTR_SERVICE_ID = "serviceId"; 050 /** The request attribute name holding the site name */ 051 public static final String REQUEST_ATTR_SITE_NAME = "site"; 052 /** The request attribute name holding the site object */ 053 public static final String REQUEST_ATTR_SITE = Site.class.getName(); 054 /** The request attribute name holding the sitemap language */ 055 public static final String REQUEST_ATTR_SITEMAP_NAME = "sitemapLanguage"; 056 /** The request attribute name holding the sitemap object */ 057 public static final String REQUEST_ATTR_SITEMAP = Sitemap.class.getName(); 058 /** The request attribute name holding the current skin id */ 059 public static final String REQUEST_ATTR_SKIN_ID = "skin"; 060 /** The request attribute name holding the current template */ 061 public static final String REQUEST_ATTR_TEMPLATE_ID = "template"; 062}