Package org.exoplatform.portal.mop.user
Interface UserPortal
- All Known Implementing Classes:
UserPortalImpl
public interface UserPortal
The user portal establish the relationship between a user and the portal.
- Version:
- $Revision$
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultPath(UserNavigation navigation, UserNodeFilterConfig filterConfig) Returns the user node for the default path in specified navigationgetDefaultPath(UserNodeFilterConfig filterConfig) Returns the user node for the default path.Returns 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.Returns the sorted list of current user navigations.getNode(UserNavigation navigation, 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.default UserNodegetNodeById(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 childrendefault Collection<UserNode> getNodes(org.exoplatform.portal.mop.SiteType siteType, String excludedSiteName, org.exoplatform.portal.mop.navigation.Scope scope, UserNodeFilterConfig filterConfig) Deprecated, for removal: This API element is subject to removal in a future version.getNodes(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)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) Deprecated.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.
-
Method Details
-
getLocale
Locale getLocale()Returns the portal locale.- Returns:
- the portal locale
-
refresh
void refresh()Refresh the current user portal. -
getDefaultPath
UserNode getDefaultPath(UserNodeFilterConfig filterConfig) throws UserPortalException, org.exoplatform.portal.mop.navigation.NavigationServiceException Returns the user node for the default path.- 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
@Deprecated UserNode resolvePath(UserNodeFilterConfig filterConfig, String path) throws NullPointerException, UserPortalException, org.exoplatform.portal.mop.navigation.NavigationServiceException Deprecated.Resolves and returns a node among all user navigations for a specified path.- Parameters:
filterConfig- an optional filterpath- the path- Returns:
- the navigation path
- Throws:
NullPointerException- if the navigation or path argument is nullUserPortalException- any user portal exceptionorg.exoplatform.portal.mop.navigation.NavigationServiceException- any navigation service exception
-
getNodes(SiteType, Scope, UserNodeFilterConfig)instead since no need of filtering on Spaces nodes due to introduction of newSiteType.SPACEthat allows to get space navigations