Examples of IUserLayoutChannelDescription


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

            IUserLayoutNodeDescription oldNode = getNode( nodeId );

            if( oldNode instanceof IUserLayoutChannelDescription )
            {
                IUserLayoutChannelDescription oldChannel=(IUserLayoutChannelDescription) oldNode;
                if( node instanceof IUserLayoutChannelDescription )
                {
                    Document uld = this.userLayoutDocument;
                    // generate new XML Element
View Full Code Here

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

    this.profile = profile;
  }
  // Channels...
  public void channelAdded(LayoutEvent ev) {
    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelAddedToLayout(person, profile, channelDesc);
  }
View Full Code Here

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

    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelAddedToLayout(person, profile, channelDesc);
  }
 
  public void channelUpdated(LayoutEvent ev) {
    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelUpdatedInLayout(person, profile, channelDesc);
  }
View Full Code Here

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

    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelUpdatedInLayout(person, profile, channelDesc);
  }
 
  public void channelMoved(LayoutMoveEvent ev) {
    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelMovedInLayout(person, profile, channelDesc);
  }
View Full Code Here

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

    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelMovedInLayout(person, profile, channelDesc);
  }
 
  public void channelDeleted(LayoutMoveEvent ev) {
    IUserLayoutChannelDescription channelDesc = (IUserLayoutChannelDescription)ev.getNodeDescription();
    StatsRecorder.recordChannelRemovedFromLayout(person, profile, channelDesc);   
  }
View Full Code Here

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

            throw new PortalException("Failed to obtain channel definition using fname: " + fname);
        }
    }
   
    protected IUserLayoutChannelDescription createUserLayoutChannelDescription(String nodeId, IPortletDefinition chanDef) {
        IUserLayoutChannelDescription ulnd = new UserLayoutChannelDescription();

        ulnd.setId(nodeId);
        ulnd.setName(chanDef.getName());
        ulnd.setUnremovable(true);
        ulnd.setImmutable(true);
        ulnd.setHidden(false);
        ulnd.setTitle(chanDef.getTitle());
        ulnd.setDescription(chanDef.getDescription());
        ulnd.setChannelPublishId("" + chanDef.getPortletDefinitionId().getStringId());
        ulnd.setChannelTypeId("" + chanDef.getType().getId());
        ulnd.setFunctionalName(chanDef.getFName());
        ulnd.setTimeout(chanDef.getTimeout());
       
        Set<IPortletDefinitionParameter> parms = chanDef.getParameters();
        for ( IPortletDefinitionParameter parm : parms )
        {
            ulnd.setParameterValue(parm.getName(),parm.getValue());
        }
       
        return ulnd;
    }
View Full Code Here

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

    public IPortletEntity getOrCreatePortletEntity(HttpServletRequest request, IUserInstance userInstance, String layoutNodeId) {
        final IUserPreferencesManager preferencesManager = userInstance.getPreferencesManager();
        final IUserLayoutManager userLayoutManager = preferencesManager.getUserLayoutManager();
       
        //Find the channel and portlet definitions
        final IUserLayoutChannelDescription channelNode = (IUserLayoutChannelDescription)userLayoutManager.getNode(layoutNodeId);
        if (channelNode == null) {
            this.logger.warn("No layout node exists for id " + layoutNodeId + ", no portlet entity will be returned.");
            return null;
        }
       
        final String channelPublishId = channelNode.getChannelPublishId();
       
        final IPortletDefinition portletDefinition = this.getPortletDefinition(request, userInstance, channelPublishId);

        if (portletDefinition != null) {
          final IPerson person = userInstance.getPerson();
View Full Code Here

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

                throw new IllegalArgumentException("No portlet layout node found for " + layoutNodeId + " from entity id string: " + consistentEntityIdString);
            }
       
            //TODO is this doable for delegation?
            //Verify the portlet definition matches
            final IUserLayoutChannelDescription portletNode = (IUserLayoutChannelDescription)node;
            final String channelPublishId = portletNode.getChannelPublishId();
            if (!portletDefinitionId.getStringId().equals(channelPublishId)) {
                throw new IllegalArgumentException("The portlet layout node found for " + layoutNodeId + " does not match the IPortletDefinitionId " + portletDefinitionId + " specified in entity id string: " + consistentEntityIdString);
            }
        }
View Full Code Here

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

            TabColumnPrefsHandler.deleteNode( ilfNode, (Element) parent,
                                              owner );
            // inform the listeners
            final int layoutId = this.getLayoutId();
            if (nodeDescription instanceof IUserLayoutChannelDescription) {
                final IUserLayoutChannelDescription userLayoutChannelDescription = (IUserLayoutChannelDescription)nodeDescription;
                this.portalEventFactory.publishPortletDeletedFromLayoutPortalEvent(this, this.owner, layoutId, parentNodeId, userLayoutChannelDescription.getFunctionalName());
            }
            else {
                this.portalEventFactory.publishFolderDeletedFromLayoutPortalEvent(this, this.owner, layoutId, parentNodeId, nodeDescription.getId(), nodeDescription.getName());
            }
View Full Code Here

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

            String nodeId = node.getId();
            IUserLayoutNodeDescription oldNode = getNode( nodeId );

            if( oldNode instanceof IUserLayoutChannelDescription )
            {
                IUserLayoutChannelDescription oldChanDesc = (IUserLayoutChannelDescription) oldNode;
                if (!(node instanceof IUserLayoutChannelDescription))
                {
                    throw new PortalException("Change channel to folder is "
                            + "not allowed by updateNode() method! Occurred "
                            + "in layout for "
                            + owner.getAttribute(IPerson.USERNAME) + ".");
                }
                IUserLayoutChannelDescription newChanDesc =
                    (IUserLayoutChannelDescription) node;
                updateChannelNode(nodeId, newChanDesc, oldChanDesc);
            }
            else
            {
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.