Class UserPortalImpl

java.lang.Object
org.exoplatform.portal.mop.user.UserPortalImpl
All Implemented Interfaces:
UserPortal

public class UserPortalImpl extends Object implements UserPortal
  • Field Details

    • SPACES_SITE_TYPE_PREFIX

      public static final String SPACES_SITE_TYPE_PREFIX
      See Also:
    • portalConfigService

      protected static UserPortalConfigService portalConfigService
    • layoutService

      protected static org.exoplatform.portal.mop.service.LayoutService layoutService
    • resourceBundleManager

      protected static org.exoplatform.services.resources.ResourceBundleManager resourceBundleManager
    • organizationService

      protected static org.exoplatform.services.organization.OrganizationService organizationService
  • Constructor Details

    • UserPortalImpl

      public UserPortalImpl(String portalName, org.exoplatform.portal.config.model.PortalConfig portal, String userName, Locale locale)
  • Method Details

    • getLocale

      public Locale getLocale()
      Description copied from interface: UserPortal
      Returns the portal locale.
      Specified by:
      getLocale in interface UserPortal
      Returns:
      the portal locale
    • getNavigations

      public List<UserNavigation> getNavigations()
      Returns an immutable sorted list of the valid navigations related to the user.
      Specified by:
      getNavigations in interface UserPortal
      Returns:
      the navigations
    • getNodes

      public Collection<UserNode> getNodes(org.exoplatform.portal.mop.SiteType siteType, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig)
      Description copied from interface: UserPortal
      Load the list of user nodes computed from the list of UserNavigation of type siteType (PORTAL, GROUP or USER)
      Specified by:
      getNodes in interface UserPortal
      Parameters:
      siteType - site type: PORTAL, GROUP or USER
      scope - an optional scope
      filterConfig - an optional filter
      Returns:
      a Collection of UserNode
    • getNodes

      public Collection<UserNode> getNodes(org.exoplatform.portal.mop.SiteType siteType, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig, boolean includeGlobal)
      Description copied from interface: UserPortal
      Load the list of user nodes computed from the list of UserNavigation of type siteType (PORTAL, GROUP or USER)
      Specified by:
      getNodes in interface UserPortal
      Parameters:
      siteType - site type: PORTAL, GROUP or USER
      scope - an optional scope
      filterConfig - an optional filter
      includeGlobal - to include global nodes
      Returns:
      a Collection of UserNode
    • getNavigation

      public UserNavigation getNavigation(org.exoplatform.portal.mop.SiteKey key)
      Description copied from interface: UserPortal
      Returns a user navigation for a specified site key, null is returned when such navigation does not exist.
      Specified by:
      getNavigation in interface UserPortal
      Parameters:
      key - the site key
      Returns:
      the corresponding user navigation
    • refresh

      public void refresh()
      Description copied from interface: UserPortal
      Refresh the current user portal.
      Specified by:
      refresh in interface UserPortal
    • getNode

      public UserNode getNode(UserNavigation userNavigation, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) throws NullPointerException, UserPortalException, org.exoplatform.portal.mop.navigation.NavigationServiceException
      Description copied from interface: UserPortal
      Load a user node from a specified user navigation with a custom scope. The returned node is the root node of the navigation.
      Specified by:
      getNode in interface UserPortal
      Parameters:
      userNavigation - the user navigation
      scope - an optional scope
      filterConfig - an optional filter
      listener - an optional listener @return the user node
      Returns:
      the user node
      Throws:
      NullPointerException - if the navigation argument is null
      UserPortalException - any user portal exception
      org.exoplatform.portal.mop.navigation.NavigationServiceException - any navigation service exception
    • getNodeById

      public UserNode getNodeById(String userNodeId, org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener)
      Description copied from interface: UserPortal
      Load specific navigation node children
      Specified by:
      getNodeById in interface UserPortal
      Parameters:
      userNodeId - target userNode id
      siteKey - Site key
      scope - the scope
      filterConfig - an optional filter
      listener - an optional listener
      Returns:
      UserNode
    • updateNode

      public void updateNode(UserNode node, org.exoplatform.portal.mop.navigation.Scope scope, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener)
      Description copied from interface: UserPortal
      Update the specified content with the most recent state.
      Specified by:
      updateNode in interface UserPortal
      Parameters:
      node - the node to update
      scope - the optional scope
      listener - an optional listener
    • rebaseNode

      public void rebaseNode(UserNode node, org.exoplatform.portal.mop.navigation.Scope scope, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener)
      Description copied from interface: UserPortal
      Rebase the specified context with the most recent state.
      Specified by:
      rebaseNode in interface UserPortal
      Parameters:
      node - the user node that will be rebased
      scope - the optional scope
      listener - the optional node change listener
    • saveNode

      public void saveNode(UserNode node, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) throws NullPointerException, UserPortalException, org.exoplatform.portal.mop.navigation.NavigationServiceException
      Description copied from interface: UserPortal
      Save the specified context to the persistent storage.
      Specified by:
      saveNode in interface UserPortal
      Parameters:
      node - the user node that will be rebased
      listener - the optional node change listener
      Throws:
      NullPointerException - if the node argument is null
      UserPortalException - any user portal exception
      org.exoplatform.portal.mop.navigation.NavigationServiceException - anything that would prevent the operation to succeed
    • getPortalLabel

      public String getPortalLabel(org.exoplatform.portal.mop.SiteKey siteKey)
      Specified by:
      getPortalLabel in interface UserPortal
      Parameters:
      siteKey - Site Key
      Returns:
      the PortalConfig label
    • getPortalLabel

      public String getPortalLabel(org.exoplatform.portal.mop.SiteKey siteKey, Locale locale)
      Specified by:
      getPortalLabel in interface UserPortal
      Parameters:
      siteKey - Site Key
      locale - Locale
      Returns:
      the PortalConfig label
    • getPortalDescription

      public String getPortalDescription(org.exoplatform.portal.mop.SiteKey siteKey)
      Specified by:
      getPortalDescription in interface UserPortal
      Parameters:
      siteKey - Site Key
      Returns:
      the PortalConfig description
    • getPortalDescription

      public String getPortalDescription(org.exoplatform.portal.mop.SiteKey siteKey, Locale locale)
      Specified by:
      getPortalDescription in interface UserPortal
      Parameters:
      siteKey - Site Key
      locale - Locale
      Returns:
      the PortalConfig description
    • getPortalConfig

      public org.exoplatform.portal.config.model.PortalConfig getPortalConfig()
    • getLabel

      protected String getLabel(org.exoplatform.portal.mop.SiteKey siteKey, String label, Locale locale)
    • filterUserNavigation

      protected UserNavigation filterUserNavigation(org.exoplatform.portal.mop.SiteKey key)
    • loadUserNavigation

      protected UserNavigation loadUserNavigation(org.exoplatform.portal.mop.SiteKey siteKey)
    • getUserGroupIds

      protected List<String> getUserGroupIds(org.exoplatform.services.security.Identity identity)
    • getBundle

      public ResourceBundle getBundle(UserNavigation navigation)