Examples of PortletPreferencesImpl


Examples of com.liferay.portlet.PortletPreferencesImpl

    throws IOException, ValidatorException {

    PortletPreferencesWrapper prefsWrapper =
      (PortletPreferencesWrapper)prefs;

    PortletPreferencesImpl prefsImpl =
      (PortletPreferencesImpl)prefsWrapper.getPreferencesImpl();

    prefsImpl.store();
  }
View Full Code Here

Examples of com.liferay.portlet.PortletPreferencesImpl

//    }

    Map prefsPool = PortletPreferencesLocalUtil.getPreferencesPool(
      pk.userId);

    PortletPreferencesImpl prefs =
      (PortletPreferencesImpl)prefsPool.get(pk);

    if (prefs == null) {
      PortletPreferences portletPreferences = null;

      Portlet portlet = null;
//      if (groupId != null) {
//        portlet = PortletManagerUtil.getPortletById(
//          companyId, groupId, pk.portletId);
//      }
//      else {
        portlet = PortletManagerUtil.getPortletById(
          companyId, pk.portletId);
//      }

      try {
        portletPreferences =
          PortletPreferencesUtil.findByPrimaryKey(pk);
      }
      catch (NoSuchPortletPreferencesException nsppe) {
        portletPreferences = PortletPreferencesUtil.create(pk);

        portletPreferences.setPreferences(
          portlet.getDefaultPreferences());

        PortletPreferencesUtil.update(portletPreferences);
      }

      prefs = PortletPreferencesSerializer.fromXML(
        companyId, pk, portletPreferences.getPreferences());

      prefsPool.put(pk, prefs);
    }

    return (PortletPreferencesImpl)prefs.clone();
  }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

    /* (non-Javadoc)
     * @see org.apache.pluto.factory.PortletPreferencesFactory#getPortletPreferences(java.lang.Integer, org.apache.pluto.om.entity.PortletEntity)
     */
    public PortletPreferences getPortletPreferences(Integer methodId,
                                                    PortletEntity portletEntity) {
        return new PortletPreferencesImpl(methodId, portletEntity);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

    /* (non-Javadoc)
     * @see org.apache.pluto.factory.PortletPreferencesFactory#getPortletPreferences(java.lang.Integer, org.apache.pluto.om.portlet.PortletDefinition)
     */
    public PortletPreferences getPortletPreferences(Integer methodId,
                                                    PortletDefinition portletDefinition) {
        return new PortletPreferencesImpl(methodId, portletDefinition);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

    /* (non-Javadoc)
     * @see org.apache.pluto.factory.PortletPreferencesFactory#getPortletPreferences(java.lang.Integer, org.apache.pluto.om.entity.PortletEntity)
     */
    public PortletPreferences getPortletPreferences(Integer methodId,
                                                    PortletEntity portletEntity) {
        return new PortletPreferencesImpl(methodId, portletEntity);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

    /* (non-Javadoc)
     * @see org.apache.pluto.factory.PortletPreferencesFactory#getPortletPreferences(java.lang.Integer, org.apache.pluto.om.portlet.PortletDefinition)
     */
    public PortletPreferences getPortletPreferences(Integer methodId,
                                                    PortletDefinition portletDefinition) {
        return new PortletPreferencesImpl(methodId, portletDefinition);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

        return requestContext.getRequest().getContextPath();
    }   
   
    public PortletPreferences getPreferences()
    {
        return new PortletPreferencesImpl(org.apache.pluto.Constants.METHOD_NOOP, this.portletWindow.getPortletEntity());
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

    }

    // org.apache.pluto.factory.PortletPreferencesFactory -----------------------------------------
    public PortletPreferences getPortletPreferences(Integer methodId, PortletEntity portletEntity)
    {
        return new PortletPreferencesImpl(methodId, portletEntity);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

        return new PortletPreferencesImpl(methodId, portletEntity);
    }

    public PortletPreferences getPortletPreferences(Integer methodId, PortletDefinition portletDefinition)
    {
        return new PortletPreferencesImpl(methodId, portletDefinition);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletPreferencesImpl

        return requestContext.getRequest().getContextPath();
    }   
   
    public PortletPreferences getPreferences()
    {
        return new PortletPreferencesImpl(org.apache.pluto.Constants.METHOD_NOOP, this.portletWindow.getPortletEntity());
    }
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.