Package org.exoplatform.portal.mop.user
Class UserPortalImpl
java.lang.Object
org.exoplatform.portal.mop.user.UserPortalImpl
- All Implemented Interfaces:
UserPortal
- Version:
- $Revision$
- Author:
- Julien Viet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classNote : the scope implementation is not stateless but we don't care in this case. -
Constructor Summary
ConstructorsConstructorDescriptionUserPortalImpl(UserPortalConfigService service, String portalName, org.exoplatform.portal.config.model.PortalConfig portal, String userName, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionprotected UserNavigationfilterUserNavigation(org.exoplatform.portal.mop.SiteKey key) getBundle(UserNavigation navigation) getDefaultPath(UserNavigation userNavigation, UserNodeFilterConfig filterConfig) Returns the user node for the default path in specified navigationgetDefaultPath(UserNodeFilterConfig filterConfig) Returns the user node for the default path.protected UserNodegetGlobalUserNode(UserNodeFilterConfig filterConfig, org.exoplatform.portal.mop.SiteKey siteKey, String[] segments) protected StringReturns the portal locale.getNavigation(org.exoplatform.portal.mop.SiteKey key) Returns a user navigation for a specified site key, null is returned when such navigation does not exist.protected ResourceBundlegetNavigationBundle(org.exoplatform.portal.mop.SiteKey siteKey) Returns an immutable sorted list of the valid navigations related to the user.getNode(UserNavigation userNavigation, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) Load a user node from a specified user navigation with a custom scope.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) Load specific navigation node childrengetNodes(org.exoplatform.portal.mop.SiteType siteType, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig) Load the list of user nodes computed from the list ofUserNavigationof type siteType (PORTAL, GROUP or USER)getNodes(org.exoplatform.portal.mop.SiteType siteType, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig, boolean includeGlobal) Load the list of user nodes computed from the list ofUserNavigationof type siteType (PORTAL, GROUP or USER)org.exoplatform.portal.config.model.PortalConfiggetPortalDescription(org.exoplatform.portal.mop.SiteKey siteKey) getPortalDescription(org.exoplatform.portal.mop.SiteKey siteKey, Locale locale) getPortalLabel(org.exoplatform.portal.mop.SiteKey siteKey) getPortalLabel(org.exoplatform.portal.mop.SiteKey siteKey, Locale locale) getUserGroupIds(Collection<?> groups) getUserGroupIds(org.exoplatform.services.security.ConversationState conversationState) protected UserNavigationloadUserNavigation(org.exoplatform.portal.mop.SiteKey siteKey) voidrebaseNode(UserNode node, org.exoplatform.portal.mop.navigation.Scope scope, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) Rebase the specified context with the most recent state.voidrefresh()Refresh the current user portal.resolvePath(UserNavigation navigation, UserNodeFilterConfig filterConfig, String path) Resolves and returns a node for the specified navigation and for a specified path.resolvePath(UserNodeFilterConfig filterConfig, String path) Resolves and returns a node among all user navigations for a specified path.voidsaveNode(UserNode node, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) Save the specified context to the persistent storage.voidupdateNode(UserNode node, org.exoplatform.portal.mop.navigation.Scope scope, org.exoplatform.portal.mop.navigation.NodeChangeListener<UserNode> listener) Update the specified content with the most recent state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.portal.mop.user.UserPortal
getNodes
-
Constructor Details
-
UserPortalImpl
public UserPortalImpl(UserPortalConfigService service, String portalName, org.exoplatform.portal.config.model.PortalConfig portal, String userName, Locale locale)
-
-
Method Details
-
getLocale
Description copied from interface:UserPortalReturns the portal locale.- Specified by:
getLocalein interfaceUserPortal- Returns:
- the portal locale
-
refresh
public void refresh()Description copied from interface:UserPortalRefresh the current user portal.- Specified by:
refreshin interfaceUserPortal
-
getDefaultPath
public UserNode getDefaultPath(UserNodeFilterConfig filterConfig) throws UserPortalException, org.exoplatform.portal.mop.navigation.NavigationServiceException Description copied from interface:UserPortalReturns the user node for the default path.- Specified by:
getDefaultPathin interfaceUserPortal- Parameters:
filterConfig- an optional filter- Returns:
- the default navigation path
- Throws:
UserPortalException- any user portal exceptionorg.exoplatform.portal.mop.navigation.NavigationServiceException- any navigation service exception
-
resolvePath
Description copied from interface:UserPortalResolves and returns a node among all user navigations for a specified path.- Specified by:
resolvePathin interfaceUserPortal- Parameters:
filterConfig- an optional filterpath- the path- Returns:
- the navigation path
-
getPortalLabel
- Specified by:
getPortalLabelin interfaceUserPortal- Parameters:
siteKey- Site Key- Returns:
- the
PortalConfiglabel
-
getPortalLabel
- Specified by:
getPortalLabelin interfaceUserPortal- Parameters:
siteKey- Site Keylocale-Locale- Returns:
- the
PortalConfiglabel
-
getPortalDescription
- Specified by:
getPortalDescriptionin interfaceUserPortal- Parameters:
siteKey- Site Key- Returns:
- the
PortalConfigdescription
-
getPortalDescription
- Specified by:
getPortalDescriptionin interfaceUserPortal- Parameters:
siteKey- Site Keylocale-Locale- Returns:
- the
PortalConfigdescription
-
getPortalConfig
public org.exoplatform.portal.config.model.PortalConfig getPortalConfig() -
getLabel
-
getUserGroupIds
-
getUserGroupIds
-
getGlobalUserNode
protected UserNode getGlobalUserNode(UserNodeFilterConfig filterConfig, org.exoplatform.portal.mop.SiteKey siteKey, String[] segments)
-