Examples of saveUserLayout()


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

                try {
                    if (saveWhat.equals("preferences")) {
                        userLayoutStore.putUserPreferences(person, userPreferences);
                    }
                    else if (saveWhat.equals("layout")) {
                        userLayoutManager.saveUserLayout();
                    }
                    else if (saveWhat.equals("all")) {
                        userLayoutStore.putUserPreferences(person, userPreferences);
                        userLayoutManager.saveUserLayout();
                    }
View Full Code Here

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

                    else if (saveWhat.equals("layout")) {
                        userLayoutManager.saveUserLayout();
                    }
                    else if (saveWhat.equals("all")) {
                        userLayoutStore.putUserPreferences(person, userPreferences);
                        userLayoutManager.saveUserLayout();
                    }
                   
                    if (logger.isDebugEnabled()) {
                        logger.debug("persisted " + saveWhat + " changes.");
                    }
View Full Code Here

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

        if ((values = req.getParameterValues("uP_remove_target")) != null) {
            for (int i = 0; i < values.length; i++) {
                ulm.deleteNode(values[i]);
            }
           
            ulm.saveUserLayout();
        }

        String param = req.getParameter("uP_cancel_targets");
        if ( param != null && param.equals("true") ) {
           ulm.markAddTargets(null);
View Full Code Here

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

       try {
        IUserLayoutManager ulm = uPreferencesManager.getUserLayoutManager();
    if ( ulm instanceof TransientUserLayoutManagerWrapper )
      ulm = ((TransientUserLayoutManagerWrapper)ulm).getOriginalLayoutManager();
        if ( !(ulm instanceof IAggregatedUserLayoutManager) )
          ulm.saveUserLayout();
       } catch ( Exception e ) {
      log.error("UserInstance::valueUnbound(): Error occured while saving the user layout ", e);
         }
     }
        // Record the destruction of the session
View Full Code Here

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

            // if the new node is a fragment being added - we need to re-load the layout
            if ( newNodeDescription instanceof IALFolderDescription ) {
              IALFolderDescription folderDesc = (IALFolderDescription) newNodeDescription;
              if ( folderDesc.getFragmentNodeId() != null ) {
                ulm.saveUserLayout();
                ulm.loadUserLayout();
              }
            }

          }
View Full Code Here

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

                // Delete the requested element node.  This code is the same for
                // all node types, so we can just have a generic action.
               ulm.deleteNode(elementId);
            }

            ulm.saveUserLayout();

            return new ModelAndView("jsonView", Collections.EMPTY_MAP);

        } catch (Exception e) {
            log.warn("Failed to remove element from layout", e);
View Full Code Here

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

            XPath xpath = fac.newXPath();
            NodeList nodes = (NodeList) xpath.evaluate(expression.toString(), layoutDocument,  XPathConstants.NODESET);
            String sourceId = nodes.item(0).getAttributes().getNamedItem("ID").getTextContent();
            ulm.moveNode(sourceId, ulm.getParentId(destinationId), destinationId);

            ulm.saveUserLayout();

            return new ModelAndView("jsonView", Collections.singletonMap("tabId", sourceId));

        } catch (Exception e) {
            log.warn("Error subscribing to fragment owned by "
View Full Code Here

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

      ulm.moveNode(sourceId, ulm.getParentId(destinationId), siblingId);
    }

    try {
      // save the user's layout
            ulm.saveUserLayout();
    } catch (Exception e) {
      log.warn("Error saving layout", e);
            return new ModelAndView("jsonView",
                    Collections.singletonMap("response", getMessage("error.move.portlet",
                    "There was an issue moving this portlet, please refresh the page and try again.", locale)));
View Full Code Here

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

      }
      count++;
    }

    try {
        ulm.saveUserLayout();
    } catch (Exception e) {
      log.warn("Error saving layout", e);
    }

        return new ModelAndView("jsonView", model);
View Full Code Here

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

      siblingId = destinationId;

        try {
            // move the node as requested and save the layout
            ulm.moveNode(sourceId, ulm.getParentId(destinationId), siblingId);
            ulm.saveUserLayout();
    } catch (Exception e) {
      log.warn("Failed to move tab in user layout", e);
      response.sendError(HttpServletResponse.SC_BAD_REQUEST);
            return new ModelAndView("jsonView",
                    Collections.singletonMap("response", getMessage("error.move.tab",
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.