Package com.liferay.portal

Examples of com.liferay.portal.NoSuchPortletException


    String companyId, OrderByComparator obc)
    throws NoSuchPortletException, SystemException {
    List list = findByG_C(groupId, companyId, 0, 1, obc);

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


    throws NoSuchPortletException, SystemException {
    int count = countByG_C(groupId, companyId);
    List list = findByG_C(groupId, companyId, count - 1, count, obc);

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

      return portlet;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchPortletException(portletPK.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here

      return portlet;
    }
    catch (HibernateException he) {
      if (he instanceof ObjectNotFoundException) {
        throw new NoSuchPortletException(portletPK.toString());
      }
      else {
        throw new SystemException(he);
      }
    }
View Full Code Here

    String groupId, OrderByComparator obc)
    throws NoSuchPortletException, SystemException {
    List list = findByGroupId(groupId, 0, 1, obc);

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

    throws NoSuchPortletException, SystemException {
    int count = countByGroupId(groupId);
    List list = findByGroupId(groupId, count - 1, count, obc);

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

    String companyId, OrderByComparator obc)
    throws NoSuchPortletException, SystemException {
    List list = findByCompanyId(companyId, 0, 1, obc);

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

    throws NoSuchPortletException, SystemException {
    int count = countByCompanyId(companyId);
    List list = findByCompanyId(companyId, count - 1, count, obc);

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

    Portlet portlet = PortletManagerUtil.getPortletById(
      PortalUtil.getCompanyId(req), groupId, portletId);

    if (portlet == null) {
      throw new NoSuchPortletException();
    }

    req.setAttribute(WebKeys.PORTLET, portlet);
  }
View Full Code Here

TOP

Related Classes of com.liferay.portal.NoSuchPortletException

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.