KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portal > PortalConstants


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.portal;
6
7 import org.exoplatform.Constants;
8 import org.exoplatform.faces.core.component.model.Parameter;
9 /**
10  * Apr 18, 2004
11  * @author: Tuan Nguyen
12  * @email: tuan08@users.sourceforge.net
13  * @version: $Id: PortalConstants.java,v 1.15 2004/09/27 20:44:58 tuan08 Exp $
14  **/

15 public class PortalConstants extends Constants {
16   final public static String JavaDoc NODE_URI = "nodeURI" ;
17   
18   final public static String JavaDoc ADD_NODE_ACTION = "addNode" ;
19   final public static String JavaDoc DELETE_NODE_ACTION = "deleteNode" ;
20   final public static String JavaDoc EDIT_NODE_ACTION = "editNode" ;
21   final public static String JavaDoc SAVE_NODE_ACTION = "saveNode" ;
22   final public static String JavaDoc MOVE_UP_NODE_ACTION = "moveUpNode" ;
23   final public static String JavaDoc MOVE_DOWN_NODE_ACTION = "moveDownNode" ;
24   final public static String JavaDoc CHANGE_NODE_ACTION = "changeNode" ;
25   
26   final public static String JavaDoc ADD_CONTAINER_ACTION = "addContainer" ;
27   final public static String JavaDoc ADD_PORTLET_ACTION = "addPortlet" ;
28   final public static String JavaDoc EDIT_ACTION = "editProperty" ;
29   final public static String JavaDoc DELETE_ACTION = "delete" ;
30   final public static String JavaDoc MOVE_UP_ACTION = "moveUp" ;
31   final public static String JavaDoc MOVE_DOWN_ACTION = "moveDown" ;
32   final public static String JavaDoc SAVE_ACTION = "save" ;
33   final public static String JavaDoc BROWSE_PAGE_ACTION = "browsePage" ;
34   final public static String JavaDoc SAVE_PAGE_ACTION = "savePage" ;
35   final public static String JavaDoc PLACE_BODY_ACTION = "placePage" ;
36   final public static String JavaDoc CHANGE_CONTAINER_TAB_ACTION = "changeTab" ;
37   
38   final public static String JavaDoc EDIT_PORTAL_ACTION = "editPortal" ;
39   final public static String JavaDoc SAVE_PORTAL_ACTION = "savePortal" ;
40   final public static String JavaDoc CHANGE_LANGUAGE_ACTION = "changeLanguage" ;
41   final public static String JavaDoc LANGUAGE_PARAM = PARAMETER_ENCODER + "language" ;
42   
43   final public static Parameter ADD_NODE = new Parameter(PORTAL_ACTION, ADD_NODE_ACTION);
44   final public static Parameter ADD_CONTAINER = new Parameter(PORTAL_ACTION, ADD_CONTAINER_ACTION);
45   final public static Parameter ADD_PORTLET = new Parameter(PORTAL_ACTION, ADD_PORTLET_ACTION);
46   final public static Parameter EDIT = new Parameter(PORTAL_ACTION, EDIT_ACTION);
47   final public static Parameter EDIT_NODE = new Parameter(PORTAL_ACTION, EDIT_NODE_ACTION);
48   final public static Parameter DELETE = new Parameter(PORTAL_ACTION, DELETE_ACTION);
49   final public static Parameter DELETE_NODE = new Parameter(PORTAL_ACTION, DELETE_NODE_ACTION);
50   final public static Parameter MOVE_UP = new Parameter(PORTAL_ACTION, MOVE_UP_ACTION);
51   final public static Parameter MOVE_DOWN = new Parameter(PORTAL_ACTION, MOVE_DOWN_ACTION);
52   final public static Parameter BROWSE_PAGE = new Parameter(PORTAL_ACTION, BROWSE_PAGE_ACTION);
53   final public static Parameter PLACE_BODY = new Parameter(PORTAL_ACTION, PLACE_BODY_ACTION);
54   final public static Parameter SAVE = new Parameter(PORTAL_ACTION, SAVE_ACTION);
55   
56   final public static Parameter[] addNodeParams = { new Parameter(PORTAL_ACTION, ADD_NODE_ACTION) };
57   final public static Parameter[] addContainerParams = { new Parameter(PORTAL_ACTION, ADD_CONTAINER_ACTION) };
58   final public static Parameter[] addPortletParams = {new Parameter(PORTAL_ACTION, ADD_PORTLET_ACTION) };
59   final public static Parameter[] editParams = {new Parameter(PORTAL_ACTION, EDIT_ACTION)};
60   final public static Parameter[] editNodeParams = {new Parameter(PORTAL_ACTION, EDIT_NODE_ACTION)};
61   final public static Parameter[] deleteParams = {new Parameter(PORTAL_ACTION, DELETE_ACTION)};
62   final public static Parameter[] deleteNodeParams = { new Parameter(PORTAL_ACTION, DELETE_NODE_ACTION) };
63   final public static Parameter[] moveUpParams = {new Parameter(PORTAL_ACTION, MOVE_UP_ACTION)};
64   final public static Parameter[] moveDownParams = {new Parameter(PORTAL_ACTION, MOVE_DOWN_ACTION)};
65   final public static Parameter[] browsePageParams = { new Parameter(PORTAL_ACTION, BROWSE_PAGE_ACTION) };
66   final public static Parameter[] placeBodyParams ={new Parameter(PORTAL_ACTION, PLACE_BODY_ACTION)};
67   final public static Parameter[] saveParams = {new Parameter(PORTAL_ACTION, SAVE_ACTION)};
68   
69   final public static String JavaDoc ADD_ICON = "<img class='add-icon' SRC='/skin/blank.gif'/>" ;
70   final public static String JavaDoc ADD_CONTAINER_ICON = "<img class='add-container' SRC='/skin/blank.gif'/>" ;
71   final public static String JavaDoc ADD_PORTLET_ICON = "<img class='add-portlet' SRC='/skin/blank.gif'/>" ;
72   final public static String JavaDoc EDIT_ICON = "<img class='edit-icon' SRC='/skin/blank.gif'/>" ;
73   final public static String JavaDoc EDIT_PAGE_NODE_ICON = "<img class='edit-node-icon' SRC='/skin/blank.gif'/>" ;
74   final public static String JavaDoc DELETE_ICON = "<img class='delete-icon' SRC='/skin/blank.gif'/>" ;
75   final public static String JavaDoc UP_ICON = "<img class='up-icon' SRC='/skin/blank.gif'/>" ;
76   final public static String JavaDoc DOWN_ICON = "<img class='down-icon' SRC='/skin/blank.gif'/>" ;
77   final public static String JavaDoc LEFT_ICON = "<img class='left-icon' SRC='/skin/blank.gif'/>" ;
78   final public static String JavaDoc RIGHT_ICON = "<img class='right-icon' SRC='/skin/blank.gif'/>" ;
79   final public static String JavaDoc BROWSE_PAGE_ICON = "<img class='browse-page-icon' SRC='/skin/blank.gif'/>" ;
80   final public static String JavaDoc PLACE_BODY_ICON = "<img class='place-body-icon' SRC='/skin/blank.gif'/>" ;
81   final public static String JavaDoc SAVE_ICON = "<img class='save-icon' SRC='/skin/blank.gif'/>" ;
82 }
Popular Tags