Package org.exoplatform.portal.mop.user

Examples of org.exoplatform.portal.mop.user.UserPortal


            event.getRequestContext().addUIComponentToUpdateByAjax(uiWorkingWS);
        }

        private UserNode resolveNode(UserNode selectedNode, UserNodeFilterConfig filterConfig) {
            UserNavigation currNav = selectedNode.getNavigation();
            UserPortal userPortal = Util.getPortalRequestContext().getUserPortalConfig().getUserPortal();
            if (currNav.getKey().getType().equals(SiteType.USER)) {
                return userPortal.getNode(currNav, Scope.CHILDREN, filterConfig, null);
            } else {
                return userPortal.resolvePath(currNav, filterConfig, selectedNode.getURI());
            }
        }
View Full Code Here


            return Math.min(this.tabNbs, this.startShowIndex + MAX_SHOWED_TAB_NUMBER);
        }
    }

    public UserNode getParentTab() throws Exception {
        UserPortal userPortal = getUserPortal();
        UserNode selectedNode = uiPortal.getSelectedUserNode();
        UserNode currParent = selectedNode.getParent();

        UserNode parent = null;
        if ("".equals(currParent.getURI())) {
            parent = userPortal.getNode(currParent.getNavigation(), TAB_PANE_DASHBOARD_SCOPE, filterConfig, null);
        } else {
            parent = userPortal.resolvePath(currParent.getNavigation(), filterConfig, currParent.getURI());
        }

        if (parent != null) {
            try {
                userPortal.updateNode(parent, TAB_PANE_DASHBOARD_SCOPE, null);
            } catch (NavigationServiceException e) {
                parent = null;
            }
        }
View Full Code Here

        }
        return parentTab.getChildren();
    }

    public UserNavigation getCurrentUserNavigation() {
        UserPortal userPortal = getUserPortal();
        WebuiRequestContext rcontext = WebuiRequestContext.getCurrentInstance();
        return userPortal.getNavigation(SiteKey.user(rcontext.getRemoteUser()));
    }
View Full Code Here

        return Boolean.valueOf(prefers.getValue("useAJAX", "true"));
    }

    public List<UserNode> getSelectedPath() throws Exception {
        UserNode node = Util.getUIPortal().getSelectedUserNode();
        UserPortal userPortal = Util.getPortalRequestContext().getUserPortalConfig().getUserPortal();
        UserNavigation nav = userPortal.getNavigation(node.getNavigation().getKey());

        UserNode targetNode = userPortal.resolvePath(nav, null, node.getURI());
        LinkedList<UserNode> paths = new LinkedList<UserNode>();

        do {
            paths.addFirst(targetNode);
            targetNode = targetNode.getParent();
View Full Code Here

    @Override
    public void onEvent(Event<NavigationService, SiteKey> event) throws Exception {
        RequestContext ctx = RequestContext.getCurrentInstance();
        if (ctx != null) {
            UserPortal userPortal = ctx.getUserPortal();
            if (userPortal != null) {
                userPortal.refresh();
            }
        }
    }
View Full Code Here

            return Math.min(this.tabNbs, this.startShowIndex + MAX_SHOWED_TAB_NUMBER);
        }
    }

    public UserNode getParentTab() throws Exception {
        UserPortal userPortal = getUserPortal();
        UserNode selectedNode = uiPortal.getSelectedUserNode();
        UserNode currParent = selectedNode.getParent();

        UserNode parent = null;
        if ("".equals(currParent.getURI())) {
            parent = userPortal.getNode(currParent.getNavigation(), TAB_PANE_DASHBOARD_SCOPE, filterConfig, null);
        } else {
            parent = userPortal.resolvePath(currParent.getNavigation(), filterConfig, currParent.getURI());
        }

        if (parent != null) {
            try {
                userPortal.updateNode(parent, TAB_PANE_DASHBOARD_SCOPE, null);
            } catch (NavigationServiceException e) {
                parent = null;
            }
        }
View Full Code Here

        }
        return parentTab.getChildren();
    }

    public UserNavigation getCurrentUserNavigation() {
        UserPortal userPortal = getUserPortal();
        WebuiRequestContext rcontext = WebuiRequestContext.getCurrentInstance();
        return userPortal.getNavigation(SiteKey.user(rcontext.getRemoteUser()));
    }
View Full Code Here

   public void onEvent(Event<NavigationService, SiteKey> event) throws Exception
   {
      RequestContext ctx = RequestContext.getCurrentInstance();
      if (ctx != null)
      {
         UserPortal userPortal = ctx.getUserPortal();
         if (userPortal != null)
         {
            userPortal.refresh();
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.mop.user.UserPortal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.