Examples of IPortletType


Examples of org.jasig.portal.portlet.om.IPortletType

        PortletAdministrationHelper helper = new PortletAdministrationHelper();

        Map<IPortletType, PortletPublishingDefinition> portletDefinitions = new HashMap<>();

        IPortletType someType = new PortletTypeImpl("someType", "someUri");
        IPortletType someOtherType = new PortletTypeImpl("someOtherType", "someOtherUri");

        PortletPublishingDefinition someDefinition = new PortletPublishingDefinition();
        PortletPublishingDefinition someOtherDefinition = new PortletPublishingDefinition();

        portletDefinitions.put(someType, someDefinition);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

    @Test
    public void testAllDefinitionDaoMethods() throws Exception {
        final IPortletDefinitionId portletDefinitionId = execute(new Callable<IPortletDefinitionId>() {
            @Override
            public IPortletDefinitionId call() {
                final IPortletType channelType = jpaChannelTypeDao.createPortletType("BaseType", "foobar");
               
                //Create a definition
                final IPortletDefinition chanDef1 = jpaPortletDefinitionDao.createPortletDefinition(channelType, "fname1", "Test Portlet 1", "Test Portlet 1 Title", "/context1", "portletName1", false);
               
                //Try all of the retrieval options
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

    public void testAllEntityDaoMethods() throws Exception {
        final IPortletDefinitionId portletDefinitionId = execute(new Callable<IPortletDefinitionId>() {
            @Override
            public IPortletDefinitionId call() throws Exception {

                final IPortletType channelType = jpaChannelTypeDao.createPortletType("BaseType", "foobar");
               
                //Create a definition
                final IPortletDefinition chanDef1 = jpaPortletDefinitionDao.createPortletDefinition(channelType, "fname1", "Test Portlet 1", "Test Portlet 1 Title", "/context1", "portletName1", false);
                return chanDef1.getPortletDefinitionId();
            }
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

            public Object call() throws Exception {
              List<IPortletDefinition> portletList = portletDefinitionDao.getPortletDefinitions();
              //Just a quick assertion that this is utilizing the correct db
            assertEquals(portletList.size(), 0);
                //Create portletType
              final IPortletType channelType = jpaChannelTypeDao.createPortletType("BaseType", "foobar");
              //Create a definition
                portletDefinitionDao.createPortletDefinition(channelType, "fname1", "Test Portlet 1", "Test Portlet 1 Title", "/context1", "portletName1", false);
                //Create a second definition with the same app/portlet
                portletDefinitionDao.createPortletDefinition(channelType, "fname2", "Test Portlet 2", "Test Portlet 2 Title", "/uPortal", "portletName2", true);
                return null;
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

    protected IPortletDefinitionId createDefaultPorltetDefinition() {
        return this.execute(new Callable<IPortletDefinitionId>() {
            @Override
            public IPortletDefinitionId call() throws Exception {
                final IPortletType channelType = jpaPortletTypeDao.createPortletType("BaseType", "foobar");
               
                //Create a definition
                final IPortletDefinition portletDef = jpaPortletDefinitionDao.createPortletDefinition(channelType, "fname1", "Test Portlet 1", "Test Portlet 1 Title", "/context1", "portletName1", false);
                final IPortletDefinitionId portletDefinitionId = portletDef.getPortletDefinitionId();
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

        logger.warn(portletRep.getFname() + " is not a portlet. It was likely an IChannel from a previous version of uPortal and will not be imported.");
        return;
      }
       
        // get the portlet type
        final IPortletType portletType = portletTypeRegistry.getPortletType(portletRep.getType());
        if (portletType == null) {
          throw new IllegalArgumentException("No portlet type registered for: " + portletRep.getType());
        }
       
        final List<PortletCategory> categories = new ArrayList<PortletCategory>();
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

   
    private PortletPublishingDefinition loadChannelPublishingDefinition(int channelTypeId)  {
        // if the CPD is not already in the cache, determine the CPD URI
        final String cpdUri;
        if (channelTypeId >= 0) {
            final IPortletType type = this.portletTypeRegistry.getPortletType(channelTypeId);
            if (type == null) {
                throw new IllegalArgumentException("No ChannelType registered with id: " + channelTypeId);
            }
            cpdUri = type.getCpdUri();
        }
        else {
            cpdUri = CUSTOM_CPD_PATH;
        }
       
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

  @Transactional
  @Override
  public void importData(ExternalPortletType data) {
      final String name = data.getName();
      IPortletType portletType = this.portletTypeRegistry.getPortletType(name);
      if (portletType == null) {
          portletType = this.portletTypeRegistry.createPortletType(name, data.getUri());
      }
      else {
          portletType.setCpdUri(data.getUri());
      }
     
      portletType.setDescription(data.getDescription());
    this.portletTypeRegistry.savePortletType(portletType);
  }
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

   * (non-Javadoc)
   * @see org.jasig.portal.io.xml.IDataImporterExporter#exportData(java.lang.String)
   */
  @Override
  public ExternalPortletType exportData(String id) {
    IPortletType portletType = this.portletTypeRegistry.getPortletType(Integer.parseInt(id));
    if(null == portletType) {
      return null;
    }
   
    return convert(portletType);
View Full Code Here

Examples of org.jasig.portal.portlet.om.IPortletType

   * @see org.jasig.portal.io.xml.IDataImporterExporter#deleteData(java.lang.String)
   */
  @Transactional
  @Override
  public ExternalPortletType deleteData(String id) {
    IPortletType portletType = this.portletTypeRegistry.getPortletType(Integer.parseInt(id));
    if(null == portletType) {
      return null;
    }
   
    ExternalPortletType result = convert(portletType);
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.