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