Examples of updateNode()


Examples of org.exoplatform.portal.mop.user.UserPortal.updateNode()

        if (node == null) {
            return null;
        }
        UserPortal userPortal = Util.getPortalRequestContext().getUserPortalConfig().getUserPortal();
        NodeChangeQueue<UserNode> queue = new NodeChangeQueue<UserNode>();
        userPortal.updateNode(node, navigationScope, queue);
        for (NodeChange<UserNode> change : queue) {
            if (change instanceof NodeChange.Removed) {
                UserNode deletedNode = ((NodeChange.Removed<UserNode>) change).getTarget();
                if (hasRelationship(deletedNode, node)) {
                    // Node has been deleted
View Full Code Here

Examples of org.exoplatform.portal.mop.user.UserPortal.updateNode()

            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

Examples of org.exoplatform.portal.mop.user.UserPortal.updateNode()

            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

Examples of org.exoplatform.portal.webui.navigation.UIPortalNavigation.updateNode()

        List<TreeNode> childs = null;

        UIPortalNavigation uiPortalNavigation = getChild(UIPortalNavigation.class);
        TreeNode tnode = uiPortalNavigation.getTreeNodes().findNodes(nodeID);
        if (tnode != null) {
            UserNode userNode = uiPortalNavigation.updateNode(tnode.getNode());
            if (userNode != null) {
                tnode.setExpanded(true);
                tnode.setChildren(userNode.getChildren());
                childs = tnode.getChildren();
            }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.updateNode()

         if ( (values1 = req.getParameterValues("uP_target_name")) != null ) {
            IUserLayoutNodeDescription nodeDesc = ulm.getNode(values[0]);
            if ( nodeDesc != null ) {
             String oldName = nodeDesc.getName();
             nodeDesc.setName(values1[0]);
             if ( !ulm.updateNode(nodeDesc) )
              nodeDesc.setName(oldName);
            }
         }
        }
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.updateNode()

    /*
     * Update the tab and save the layout
     */
      tab.setName(StringUtils.isBlank(tabName) ? DEFAULT_TAB_NAME : tabName);
    final boolean updated = ulm.updateNode(tab);

    if (updated) {
        try {
          // save the user's layout
                ulm.saveUserLayout();
View Full Code Here

Examples of org.jasig.portal.layout.IUserLayoutManager.updateNode()

        String canAddChildren = request.getParameter("addChildAllowed");
        if (!StringUtils.isBlank(canAddChildren)) {
            node.setAddChildAllowed(Boolean.valueOf(canAddChildren));
        }

        ulm.updateNode(node);

        try {
            // save the user's layout
            ulm.saveUserLayout();
        } catch (Exception e) {
View Full Code Here

Examples of org.jclouds.chef.ChefApi.updateNode()

      Node node = Node.builder().name("name").environment("_default").build();
      Node nodeWithAutomatic = Node.builder().name("name").environment("_default").automaticAttributes(automatic)
            .build();

      expect(chef.getNode("name")).andReturn(node);
      expect(chef.updateNode(nodeWithAutomatic)).andReturn(null);

      replay(chef);

      UpdateAutomaticAttributesOnNodeImpl updater = new UpdateAutomaticAttributesOnNodeImpl(chef, automaticSupplier);
View Full Code Here

Examples of org.jclouds.chef.ChefApi.updateNode()

            ImmutableMap.<String, JsonBall> of(), ImmutableMap.<String, JsonBall> of(), automatic,
            ImmutableSet.<String> of(), "_default");

      expect(chef.getNode("name")).andReturn(node);
      node.getAutomatic().putAll(automaticSupplier.get());
      expect(chef.updateNode(nodeWithAutomatic)).andReturn(null);

      replay(chef);

      UpdateAutomaticAttributesOnNodeImpl updater = new UpdateAutomaticAttributesOnNodeImpl(chef, automaticSupplier);
View Full Code Here

Examples of org.jclouds.chef.ChefApi.updateNode()

      Node node = Node.builder().name("name").environment("_default").build();
      Node nodeWithAutomatic = Node.builder().name("name").environment("_default").automaticAttributes(automatic)
            .build();

      expect(chef.getNode("name")).andReturn(node);
      expect(chef.updateNode(nodeWithAutomatic)).andReturn(null);

      replay(chef);

      UpdateAutomaticAttributesOnNodeImpl updater = new UpdateAutomaticAttributesOnNodeImpl(chef, automaticSupplier);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.