Package com.liferay.portal

Examples of com.liferay.portal.NoSuchPortletPreferencesException


      return portletPreferences;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchPortletPreferencesException(portletPreferencesPK.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here


      return portletPreferences;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchPortletPreferencesException(portletPreferencesPK.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here

    String layoutId, OrderByComparator obc)
    throws NoSuchPortletPreferencesException, SystemException {
    List list = findByLayoutId(layoutId, 0, 1, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

    throws NoSuchPortletPreferencesException, SystemException {
    int count = countByLayoutId(layoutId);
    List list = findByLayoutId(layoutId, count - 1, count, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

    String userId, OrderByComparator obc)
    throws NoSuchPortletPreferencesException, SystemException {
    List list = findByUserId(userId, 0, 1, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

    throws NoSuchPortletPreferencesException, SystemException {
    int count = countByUserId(userId);
    List list = findByUserId(userId, count - 1, count, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

    String layoutId, String userId, OrderByComparator obc)
    throws NoSuchPortletPreferencesException, SystemException {
    List list = findByL_U(layoutId, userId, 0, 1, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

    throws NoSuchPortletPreferencesException, SystemException {
    int count = countByL_U(layoutId, userId);
    List list = findByL_U(layoutId, userId, count - 1, count, obc);

    if (list.size() == 0) {
      throw new NoSuchPortletPreferencesException();
    }
    else {
      return (com.liferay.portal.model.PortletPreferences)list.get(0);
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.portal.NoSuchPortletPreferencesException

Copyright © 2018 www.massapicom. 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.