Examples of IPortletType


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

          final String title = form.getTitle();
          final String applicationId = form.getApplicationId();
          final String portletName = form.getPortletName();
          final boolean isFramework = form.isFramework();
         
          final IPortletType type = portletTypeRegistry.getPortletType(form.getTypeId());
        portletDef = portletDefinitionRegistry.createPortletDefinition(type, fname, name, title, applicationId, portletName, isFramework);
    } else {
      portletDef = portletDefinitionRegistry.getPortletDefinition(form.getId());
      }
      portletDef.setDescription(form.getDescription());
      portletDef.setFName(form.getFname());
      portletDef.setName(form.getName());
      portletDef.setTimeout(form.getTimeout());
      portletDef.setTitle(form.getTitle());
      portletDef.getPortletDescriptorKey().setWebAppName(form.getApplicationId());
      portletDef.getPortletDescriptorKey().setPortletName(form.getPortletName());
      portletDef.getPortletDescriptorKey().setFrameworkPortlet(form.isFramework());

      final IPortletType portletType = portletTypeRegistry.getPortletType(form.getTypeId());
      if (portletType == null) {
          throw new IllegalArgumentException("No IPortletType exists for ID " + form.getTypeId());
      }
      portletDef.setType(portletType);
     
View Full Code Here

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

   */
  public PortletPublishingDefinition updateFormForSinglePortletType( Map<IPortletType, PortletPublishingDefinition> portletDefinitions, PortletDefinitionForm form) {
    if (portletDefinitions.size() != 1) {
      return null;
    }
    IPortletType portletType = portletDefinitions.keySet().iterator().next();
    form.setTypeId(portletType.getId());
    PortletPublishingDefinition cpd = portletPublishingDefinitionDao.getChannelPublishingDefinition(portletType.getId());
    form.setChannelPublishingDefinition(cpd);
   
    return cpd;
  }
View Full Code Here

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

   
    return cpd;
  }
 
  public boolean offerPortletSelection(PortletDefinitionForm form) {
    final IPortletType portletType = this.portletTypeRegistry.getPortletType(form.getTypeId());
    final PortletPublishingDefinition portletPublishingDefinition = this.portletPublishingDefinitionDao.getChannelPublishingDefinition(portletType.getId());
    final PortletDescriptor portletDescriptor = portletPublishingDefinition.getPortletDescriptor();
    if (portletDescriptor == null) {
        return true;
    }
   
View Full Code Here

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

    @Override
    @PortalTransactional
  public void deletePortletType(IPortletType type) {
        Validate.notNull(type, "definition can not be null");
       
        final IPortletType persistentChanneltype;
        final EntityManager entityManager = this.getEntityManager();
        if (entityManager.contains(type)) {
            persistentChanneltype = type;
        }
        else {
View Full Code Here

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

            return true;
        if (obj == null)
            return false;
        if (!IPortletType.class.isAssignableFrom(obj.getClass()))
            return false;
        IPortletType other = (IPortletType) obj;
        if (this.name == null) {
            if (other.getName() != null)
                return false;
        }
        else if (!this.name.equals(other.getName()))
            return false;
        return true;
    }
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.