org.exoplatform.wcm.webui.administration
Class UISiteAdminToolbar

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.wcm.webui.administration.UISiteAdminToolbar

public class UISiteAdminToolbar
extends org.exoplatform.portal.webui.container.UIContainer


Nested Class Summary
static class UISiteAdminToolbar.AccountSettingsActionListener
          The listener interface for receiving accountSettingsAction events.
static class UISiteAdminToolbar.AddContentActionListener
          The listener interface for receiving addContentAction events.
static class UISiteAdminToolbar.AddPageActionListener
          The listener interface for receiving addPageAction events.
static class UISiteAdminToolbar.BrowsePageActionListener
          The listener interface for receiving browsePageAction events.
static class UISiteAdminToolbar.BrowsePortalActionListener
          The listener interface for receiving browsePortalAction events.
static class UISiteAdminToolbar.ChangePageActionListener
          The listener interface for receiving changePageAction events.
static class UISiteAdminToolbar.ChangePortalActionListener
          The listener interface for receiving changePortalAction events.
static class UISiteAdminToolbar.CreatePortalActionListener
          The listener interface for receiving createPortalAction events.
static class UISiteAdminToolbar.EditPageActionListener
          The listener interface for receiving editPageAction events.
static class UISiteAdminToolbar.EditPageAndNavigationActionListener
          The listener interface for receiving editPageAndNavigationAction events.
static class UISiteAdminToolbar.EditPortalActionListener
          The listener interface for receiving editPortalAction events.
static class UISiteAdminToolbar.LanguageSettingsActionListener
          The listener interface for receiving languageSettingsAction events.
static class UISiteAdminToolbar.SkinSettingsActionListener
          The listener interface for receiving skinSettingsAction events.
static class UISiteAdminToolbar.TurnOffQuickEditActionListener
          The listener interface for receiving turnOffQuickEditAction events.
static class UISiteAdminToolbar.TurnOnQuickEditActionListener
          The listener interface for receiving turnOnQuickEditAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.portal.webui.container.UIContainer
org.exoplatform.portal.webui.container.UIContainer.SelectTabActionListener
 
Field Summary
static int ADMIN
          The Constant ADMIN.
static int EDITOR
          The Constant EDITOR.
static java.lang.String MESSAGE
          The Constant MESSAGE.
static int REDACTOR
          The Constant REDACTOR.
static java.lang.String TURN_ON_QUICK_EDIT
          The Constant TURN_ON_QUICK_EDIT.
static int VISITOR
          The Constant VISITOR.
 
Fields inherited from class org.exoplatform.portal.webui.container.UIContainer
creator, description, icon, modifier
 
Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISiteAdminToolbar()
          Instantiates a new uI site admin toolbar.
 
Method Summary
 void changeNavigationsLanguage(java.lang.String language)
          Change navigations language.
 java.util.List<java.lang.String> getAllPortals()
          Gets the all portals.
 java.lang.String getCurrentPortalURI()
          Gets the current portal uri.
 java.util.List<org.exoplatform.portal.config.model.PageNavigation> getCurrentSiteNavigations()
          Gets the current site navigations.
 java.util.List<org.exoplatform.portal.config.model.PageNavigation> getGroupNavigations()
          Get the list of group navigation nodes.
 int getRole()
          gets the current user role based on the current site context.
 boolean hasGroupNavigations()
          Return true if the user has at least one group navigation node.
 boolean isShowWorkspaceArea()
          Checks if is show workspace area.
 void refresh()
          Checks if we changed portal in order to refresh the user role and the navigation if needed.
protected  void setRole()
          Sets the role of the current user.
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getCreator, getDescription, getIcon, getModifier, setCreator, setDescription, setIcon, setModifier
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getFactoryId, getHeight, getMode, getName, getTemplate, getTitle, getWidth, isEditMode, isModifiable, isShowEditControl, setFactoryId, setHeight, setMode, setModifiable, setName, setShowEditControl, setTemplate, setTitle, setWidth
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE

public static final java.lang.String MESSAGE
The Constant MESSAGE.

See Also:
Constant Field Values

TURN_ON_QUICK_EDIT

public static final java.lang.String TURN_ON_QUICK_EDIT
The Constant TURN_ON_QUICK_EDIT.

See Also:
Constant Field Values

ADMIN

public static final int ADMIN
The Constant ADMIN.

See Also:
Constant Field Values

EDITOR

public static final int EDITOR
The Constant EDITOR.

See Also:
Constant Field Values

REDACTOR

public static final int REDACTOR
The Constant REDACTOR.

See Also:
Constant Field Values

VISITOR

public static final int VISITOR
The Constant VISITOR.

See Also:
Constant Field Values
Constructor Detail

UISiteAdminToolbar

public UISiteAdminToolbar()
                   throws java.lang.Exception
Instantiates a new uI site admin toolbar.

Throws:
java.lang.Exception - the exception
Method Detail

setRole

protected void setRole()
                throws java.lang.Exception
Sets the role of the current user. Needs to be refreshed each time we change site

Throws:
java.lang.Exception - the exception

getRole

public int getRole()
            throws java.lang.Exception
gets the current user role based on the current site context.

Returns:
user role
Throws:
java.lang.Exception - the exception

refresh

public void refresh()
             throws java.lang.Exception
Checks if we changed portal in order to refresh the user role and the navigation if needed.

Throws:
java.lang.Exception - the exception

changeNavigationsLanguage

public void changeNavigationsLanguage(java.lang.String language)
Change navigations language.

Parameters:
language - the language

isShowWorkspaceArea

public boolean isShowWorkspaceArea()
                            throws java.lang.Exception
Checks if is show workspace area.

Returns:
true, if is show workspace area
Throws:
java.lang.Exception - the exception

getCurrentPortalURI

public java.lang.String getCurrentPortalURI()
Gets the current portal uri.

Returns:
the current portal uri

getAllPortals

public java.util.List<java.lang.String> getAllPortals()
                                               throws java.lang.Exception
Gets the all portals.

Returns:
the all portals
Throws:
java.lang.Exception - the exception

hasGroupNavigations

public boolean hasGroupNavigations()
Return true if the user has at least one group navigation node.

Returns:
true, if checks for group navigations

getCurrentSiteNavigations

public java.util.List<org.exoplatform.portal.config.model.PageNavigation> getCurrentSiteNavigations()
                                                                                             throws java.lang.Exception
Gets the current site navigations.

Returns:
the current site navigations
Throws:
java.lang.Exception - the exception

getGroupNavigations

public java.util.List<org.exoplatform.portal.config.model.PageNavigation> getGroupNavigations()
                                                                                       throws java.lang.Exception
Get the list of group navigation nodes.

Returns:
A list of navigation nodes
Throws:
java.lang.Exception - the exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.