1 5 package org.exoplatform.portal; 6 7 import org.exoplatform.Constants; 8 import org.exoplatform.faces.core.component.model.Parameter; 9 15 public class PortalConstants extends Constants { 16 final public static String NODE_URI = "nodeURI" ; 17 18 final public static String ADD_NODE_ACTION = "addNode" ; 19 final public static String DELETE_NODE_ACTION = "deleteNode" ; 20 final public static String EDIT_NODE_ACTION = "editNode" ; 21 final public static String SAVE_NODE_ACTION = "saveNode" ; 22 final public static String MOVE_UP_NODE_ACTION = "moveUpNode" ; 23 final public static String MOVE_DOWN_NODE_ACTION = "moveDownNode" ; 24 final public static String CHANGE_NODE_ACTION = "changeNode" ; 25 26 final public static String ADD_CONTAINER_ACTION = "addContainer" ; 27 final public static String ADD_PORTLET_ACTION = "addPortlet" ; 28 final public static String EDIT_ACTION = "editProperty" ; 29 final public static String DELETE_ACTION = "delete" ; 30 final public static String MOVE_UP_ACTION = "moveUp" ; 31 final public static String MOVE_DOWN_ACTION = "moveDown" ; 32 final public static String SAVE_ACTION = "save" ; 33 final public static String BROWSE_PAGE_ACTION = "browsePage" ; 34 final public static String SAVE_PAGE_ACTION = "savePage" ; 35 final public static String PLACE_BODY_ACTION = "placePage" ; 36 final public static String CHANGE_CONTAINER_TAB_ACTION = "changeTab" ; 37 38 final public static String EDIT_PORTAL_ACTION = "editPortal" ; 39 final public static String SAVE_PORTAL_ACTION = "savePortal" ; 40 final public static String CHANGE_LANGUAGE_ACTION = "changeLanguage" ; 41 final public static String 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 ADD_ICON = "<img class='add-icon' SRC='/skin/blank.gif'/>" ; 70 final public static String ADD_CONTAINER_ICON = "<img class='add-container' SRC='/skin/blank.gif'/>" ; 71 final public static String ADD_PORTLET_ICON = "<img class='add-portlet' SRC='/skin/blank.gif'/>" ; 72 final public static String EDIT_ICON = "<img class='edit-icon' SRC='/skin/blank.gif'/>" ; 73 final public static String EDIT_PAGE_NODE_ICON = "<img class='edit-node-icon' SRC='/skin/blank.gif'/>" ; 74 final public static String DELETE_ICON = "<img class='delete-icon' SRC='/skin/blank.gif'/>" ; 75 final public static String UP_ICON = "<img class='up-icon' SRC='/skin/blank.gif'/>" ; 76 final public static String DOWN_ICON = "<img class='down-icon' SRC='/skin/blank.gif'/>" ; 77 final public static String LEFT_ICON = "<img class='left-icon' SRC='/skin/blank.gif'/>" ; 78 final public static String RIGHT_ICON = "<img class='right-icon' SRC='/skin/blank.gif'/>" ; 79 final public static String BROWSE_PAGE_ICON = "<img class='browse-page-icon' SRC='/skin/blank.gif'/>" ; 80 final public static String PLACE_BODY_ICON = "<img class='place-body-icon' SRC='/skin/blank.gif'/>" ; 81 final public static String SAVE_ICON = "<img class='save-icon' SRC='/skin/blank.gif'/>" ; 82 } | Popular Tags |