Class LayoutPrototypeLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutPrototypeLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutPrototypeLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.LayoutPrototype>, com.liferay.portal.kernel.service.LayoutPrototypeLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class LayoutPrototypeLocalServiceImpl extends LayoutPrototypeLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Jorge Ferrer, Vilmos Papp
  • Constructor Details

    • LayoutPrototypeLocalServiceImpl

      public LayoutPrototypeLocalServiceImpl()
  • Method Details

    • addLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype addLayoutPrototype(long userId, long companyId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutPrototype

      @SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.LayoutPrototype deleteLayoutPrototype(com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutPrototypeLocalServiceBaseImpl
      Deletes the layout prototype from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutPrototypeLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteLayoutPrototype in interface com.liferay.portal.kernel.service.LayoutPrototypeLocalService
      Overrides:
      deleteLayoutPrototype in class LayoutPrototypeLocalServiceBaseImpl
      Parameters:
      layoutPrototype - the layout prototype
      Returns:
      the layout prototype that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype deleteLayoutPrototype(long layoutPrototypeId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: LayoutPrototypeLocalServiceBaseImpl
      Deletes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutPrototypeLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteLayoutPrototype in interface com.liferay.portal.kernel.service.LayoutPrototypeLocalService
      Overrides:
      deleteLayoutPrototype in class LayoutPrototypeLocalServiceBaseImpl
      Parameters:
      layoutPrototypeId - the primary key of the layout prototype
      Returns:
      the layout prototype that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a layout prototype with the primary key could not be found
    • deleteNondefaultLayoutPrototypes

      public void deleteNondefaultLayoutPrototypes(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype fetchLayoutPrototype(long companyId, String name, Locale locale)
    • fetchLayoutProtoype

      public com.liferay.portal.kernel.model.LayoutPrototype fetchLayoutProtoype(long companyId, String name)
    • getLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype getLayoutPrototype(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype getLayoutPrototype(long companyId, String name, Locale locale) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public List<com.liferay.portal.kernel.model.LayoutPrototype> search(long companyId, Boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutPrototype> orderByComparator)
    • searchCount

      public int searchCount(long companyId, Boolean active)
    • updateLayoutPrototype

      public com.liferay.portal.kernel.model.LayoutPrototype updateLayoutPrototype(long layoutPrototypeId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException