KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > Constants


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform;
6
7 import java.util.List JavaDoc;
8 import java.util.Map JavaDoc;
9
10 /**
11  * Fri, May 30, 2003 @
12  * @author : Mestrallet Benjamin
13  * @email: benjmestrallet@users.sourceforge.net
14  * @author: Tuan Nguyen
15  * @version: $Id: Constants.java,v 1.16 2004/07/13 02:46:20 tuan08 Exp $
16  * @email: tuan08@yahoo.com
17  */

18 public class Constants {
19   final static public List JavaDoc EMPTY_LIST = new java.util.ArrayList JavaDoc() ;
20   final static public Map JavaDoc EMPTY_MAP = new java.util.HashMap JavaDoc() ;
21   
22   final static public String JavaDoc AMPERSAND = "&" ;
23   final static public String JavaDoc DEFAUL_PORTAL_OWNER = "exo";
24   
25   final static public String JavaDoc PARAMETER_ENCODER = "portal:";
26   final static public String JavaDoc PORTLET_META_DATA_ENCODER = "/";
27   final static public String JavaDoc PORTLET_HANDLE_ENCODER = "/";
28
29   public static final String JavaDoc PORTAL_CONTEXT = PARAMETER_ENCODER + "ctx";
30   final static public String JavaDoc EXO_PORTAL_INFO = "javax.portlet.exo-portal-info" ;
31   public static final String JavaDoc PORTAL_ACTION = PARAMETER_ENCODER + "action";
32
33   public static final String JavaDoc COMPONENT_PARAMETER = PARAMETER_ENCODER + "componentId";
34   public static final String JavaDoc TYPE_PARAMETER = PARAMETER_ENCODER + "type";
35   public static final String JavaDoc WINDOW_STATE_PARAMETER = PARAMETER_ENCODER + "windowState";
36   public static final String JavaDoc PORTLET_MODE_PARAMETER = PARAMETER_ENCODER + "portletMode";
37   public static final String JavaDoc SECURE_PARAMETER = PARAMETER_ENCODER + "isSecure";
38   public static final String JavaDoc LANGUAGE_PARAMETER = PARAMETER_ENCODER + "lang" ;
39
40   public static final String JavaDoc PORTLET_CONTAINER = "org.exoplatform.portletcontainer";
41   public static final String JavaDoc PORTLET_META_DATA = PORTLET_CONTAINER + ".portlet";
42   public static final String JavaDoc SERVLET_META_DATA = PORTLET_CONTAINER + ".servlet";
43
44   public static final String JavaDoc PORTLET_ENCODER = "_portlet_";
45   public static final String JavaDoc VALIDATOR_ENCODER = "_validator_";
46   public static final String JavaDoc FILTER_ENCODER = "_filter_";
47   public static final String JavaDoc MESSAGE_LISTENER_ENCODER = "_message_listener_";
48   
49   public static final String JavaDoc APPLICATION_RESOURCE = "javax.portlet.application-resource";
50
51
52   final static public String JavaDoc ADMIN_USER = "admin" ;
53   final static public String JavaDoc ANON_USER = "demo" ;
54
55   //portlets
56
public static final String JavaDoc FORWARD_PAGE = "org.exoplatform.portal.portlet.ForwardPage" ;
57   //roles
58
public static final String JavaDoc USER_ROLE = "user" ;
59   public static final String JavaDoc ADMIN_ROLE = "admin" ;
60   public static final String JavaDoc GUEST_ROLE = "guest" ;
61
62   //security
63
public static final String JavaDoc PUBLIC = "public" ;
64   public static final String JavaDoc PRIVATE = "private" ;
65 }
66
Popular Tags