Examples of IUserLayoutFolderDescription


Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

    IUserLayoutFolderDescription folderDesc = (IUserLayoutFolderDescription)ev.getNodeDescription();
    EventPublisherLocator.getApplicationEventPublisher().publishEvent(new UserUpdatedFolderInLayoutPortalEvent(this, person, profile, folderDesc));  
  }
 
  public void folderMoved(LayoutMoveEvent ev) {
    IUserLayoutFolderDescription folderDesc = (IUserLayoutFolderDescription)ev.getNodeDescription();
    EventPublisherLocator.getApplicationEventPublisher().publishEvent(new UserMovedFolderInLayoutPortalEvent(this, person, profile, folderDesc));  
  }
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

    IUserLayoutFolderDescription folderDesc = (IUserLayoutFolderDescription)ev.getNodeDescription();
    EventPublisherLocator.getApplicationEventPublisher().publishEvent(new UserMovedFolderInLayoutPortalEvent(this, person, profile, folderDesc));  
  }
 
  public void folderDeleted(LayoutMoveEvent ev) {
    IUserLayoutFolderDescription folderDesc = (IUserLayoutFolderDescription)ev.getNodeDescription();
    EventPublisherLocator.getApplicationEventPublisher().publishEvent(new UserRemovedFolderFromLayoutPortalEvent(this, person, profile, folderDesc));  
  }
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

                final String activeTab = structureStylesheetUserPreferences.getParameterValue("activeTab");
                final int activeTabIndex = org.apache.commons.lang.math.NumberUtils.toInt(activeTab, 1);
               
                //Get the user's layout and find the targeted folder (tab)
                final IUserLayoutManager userLayoutManager = uPreferencesManager.getUserLayoutManager();
                final IUserLayoutFolderDescription targetedNode = this.getActiveTab(userLayoutManager, activeTabIndex);
               
                //Create and publish the event.
                final PageRenderTimePortalEvent pageRenderTimePortalEvent = new PageRenderTimePortalEvent(this, person, userProfile, targetedNode, pageRenderTime);
                this.applicationEventPublisher.publishEvent(pageRenderTimePortalEvent);
            }
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

    public void setProfileId(int id) {
        //ignore, method required for hibernate
    }
   
    protected String getFolderString() {
        final IUserLayoutFolderDescription folder = getFolder();
        if (folder == null) {
            return "[transient folder]";
        }
       
        return "[" + folder.getName() + ", " + folder.getId() + "]";
    }
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

      Enumeration columns = ulm.getChildIds(destinationId);
      if (columns.hasMoreElements()) {
        ulm.moveNode(sourceId, (String) columns.nextElement(), null);
      } else {

        IUserLayoutFolderDescription newColumn = new UserLayoutFolderDescription();
        newColumn.setName("Column");
        newColumn.setId("tbd");
        newColumn
            .setFolderType(IUserLayoutFolderDescription.REGULAR_TYPE);
        newColumn.setHidden(false);
        newColumn.setUnremovable(false);
        newColumn.setImmutable(false);

        // add the column to our layout
        IUserLayoutNodeDescription col = ulm.addNode(newColumn,
            destinationId, null);
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

    if (columnNumber > columnList.size()) {
      for (int i = columnList.size(); i < columnNumber; i++) {

        // create new column element
        IUserLayoutFolderDescription newColumn = new UserLayoutFolderDescription();
        newColumn.setName("Column");
        newColumn.setId("tbd");
        newColumn
            .setFolderType(IUserLayoutFolderDescription.REGULAR_TYPE);
        newColumn.setHidden(false);
        newColumn.setUnremovable(false);
        newColumn.setImmutable(false);

        // add the column to our layout
        IUserLayoutNodeDescription node = ulm.addNode(newColumn, tabId,
            null);
        newColumns.add(node.getId());
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

          if (node != null)
            break;
        }
      } else {

        IUserLayoutFolderDescription newColumn = new UserLayoutFolderDescription();
        newColumn.setName("Column");
        newColumn.setId("tbd");
        newColumn
            .setFolderType(IUserLayoutFolderDescription.REGULAR_TYPE);
        newColumn.setHidden(false);
        newColumn.setUnremovable(false);
        newColumn.setImmutable(false);

        // add the column to our layout
        IUserLayoutNodeDescription col = ulm.addNode(newColumn,
            destinationId, null);
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

      HttpServletResponse response) throws IOException, PortalException {

    // construct a brand new tab
    String id = "tbd";
    String tabName = BLANK_TAB_NAME;
    IUserLayoutFolderDescription newTab = new UserLayoutFolderDescription();
    newTab.setName(tabName);
    newTab.setId(id);
    newTab.setFolderType(IUserLayoutFolderDescription.REGULAR_TYPE);
    newTab.setHidden(false);
    newTab.setUnremovable(false);
    newTab.setImmutable(false);

    // add the tab to the layout
    ulm.addNode(newTab, ulm.getRootFolderId(), null);
    try {
      // save the user's layout
      saveUserLayoutPreservingTab(ulm, upm, per);
    } catch (Exception e) {
      log.warn("Error saving layout", e);
    }

    // get the id of the newly added tab
    String nodeId = newTab.getId();

    // pre-populate this new tab with one column
    IUserLayoutFolderDescription newColumn = new UserLayoutFolderDescription();
    newColumn.setName("Column");
    newColumn.setId("tbd");
    newColumn.setFolderType(IUserLayoutFolderDescription.REGULAR_TYPE);
    newColumn.setHidden(false);
    newColumn.setUnremovable(false);
    newColumn.setImmutable(false);
    ulm.addNode(newColumn, nodeId, null);

    try {
      // save the user's layout
      saveUserLayoutPreservingTab(ulm, upm, per);
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

    // desired new name
    String tabName = request.getParameter("tabName");

    // rename the tab
    IUserLayoutFolderDescription tab = (IUserLayoutFolderDescription) ulm
        .getNode(tabId);
    if (ulm.canUpdateNode(ulm.getNode(tabId))) {
      if (tabName == null || tabName.trim().length() == 0) {
        tab.setName(BLANK_TAB_NAME);
      } else {
        tab.setName(tabName);
      }
      ulm.updateNode(tab);
      try {
        // save the user's layout
        saveUserLayoutPreservingTab(ulm, upm, per);
View Full Code Here

Examples of org.jasig.portal.layout.node.IUserLayoutFolderDescription

                }
            }
            else
            {
                 // must be a folder
                IUserLayoutFolderDescription oldFolderDesc=(IUserLayoutFolderDescription) oldNode;
                if (oldFolderDesc.getId().equals(getRootFolderId()))
                    throw new PortalException("Update of root node is not currently allowed!");
                   
                if( node instanceof IUserLayoutFolderDescription )
                {
                    IUserLayoutFolderDescription newFolderDesc=(IUserLayoutFolderDescription) node;
                    updateFolderNode(nodeId, newFolderDesc, oldFolderDesc);

                    // inform the listeners
                    final String parentNodeId = this.getParentId(nodeId);
                    final IUserLayoutNodeDescription parentNode = this.getNode(parentNodeId);
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.