Package org.exoplatform.navigation.webui
Class Utils
- java.lang.Object
-
- org.exoplatform.navigation.webui.Utils
-
public class Utils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringTURN_ON_QUICK_EDITThe Quick edit attribute for HTTPSession
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreatePopupWindow(org.exoplatform.webui.core.UIContainer container, org.exoplatform.webui.core.UIComponent component, String popupWindowId, int width)Creates the popup window.static org.exoplatform.portal.mop.user.UserNavigationgetSelectedNavigation()static booleanhasEditPermissionOnNavigation()static booleanhasEditPermissionOnPage()static booleanhasEditPermissionOnPortal()
-
-
-
Field Detail
-
TURN_ON_QUICK_EDIT
public static final String TURN_ON_QUICK_EDIT
The Quick edit attribute for HTTPSession- See Also:
- Constant Field Values
-
-
Method Detail
-
getSelectedNavigation
public static org.exoplatform.portal.mop.user.UserNavigation getSelectedNavigation() throws Exception- Throws:
Exception
-
createPopupWindow
public static void createPopupWindow(org.exoplatform.webui.core.UIContainer container, org.exoplatform.webui.core.UIComponent component, String popupWindowId, int width) throws ExceptionCreates the popup window. Each portlet have aUIPopupContainer.
EveryUIPopupWindowcreated by this method is belong to this container.- Parameters:
container- the current containercomponent- the component which will be display as a popuppopupWindowId- the popup's IDwidth- the width of the popup- Throws:
Exception- the exception
-
hasEditPermissionOnNavigation
public static boolean hasEditPermissionOnNavigation() throws Exception- Throws:
Exception
-
hasEditPermissionOnPortal
public static boolean hasEditPermissionOnPortal() throws Exception- Throws:
Exception
-
-