Class CPDisplayLayoutLocalServiceWrapper

java.lang.Object
com.liferay.commerce.product.service.CPDisplayLayoutLocalServiceWrapper
All Implemented Interfaces:
CPDisplayLayoutLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CPDisplayLayout>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CPDisplayLayoutLocalService>

public class CPDisplayLayoutLocalServiceWrapper extends Object implements CPDisplayLayoutLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CPDisplayLayoutLocalService>
Provides a wrapper for CPDisplayLayoutLocalService.
See Also:
Generated:
  • Constructor Details

    • CPDisplayLayoutLocalServiceWrapper

      public CPDisplayLayoutLocalServiceWrapper()
    • CPDisplayLayoutLocalServiceWrapper

      public CPDisplayLayoutLocalServiceWrapper(CPDisplayLayoutLocalService cpDisplayLayoutLocalService)
  • Method Details

    • addCPDisplayLayout

      public CPDisplayLayout addCPDisplayLayout(CPDisplayLayout cpDisplayLayout)
      Adds the cp display layout to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDisplayLayoutLocalServiceImpl 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:
      addCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      cpDisplayLayout - the cp display layout
      Returns:
      the cp display layout that was added
    • addCPDisplayLayout

      public CPDisplayLayout addCPDisplayLayout(long userId, long groupId, Class<?> clazz, long classPK, String layoutPageTemplateEntryUuid, String layoutUuid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPDisplayLayout in interface CPDisplayLayoutLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPDisplayLayout

      public CPDisplayLayout createCPDisplayLayout(long CPDisplayLayoutId)
      Creates a new cp display layout with the primary key. Does not add the cp display layout to the database.
      Specified by:
      createCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      CPDisplayLayoutId - the primary key for the new cp display layout
      Returns:
      the new cp display layout
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface CPDisplayLayoutLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDisplayLayout

      public CPDisplayLayout deleteCPDisplayLayout(Class<?> clazz, long classPK)
      Specified by:
      deleteCPDisplayLayout in interface CPDisplayLayoutLocalService
    • deleteCPDisplayLayout

      public CPDisplayLayout deleteCPDisplayLayout(CPDisplayLayout cpDisplayLayout)
      Deletes the cp display layout from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDisplayLayoutLocalServiceImpl 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:
      deleteCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      cpDisplayLayout - the cp display layout
      Returns:
      the cp display layout that was removed
    • deleteCPDisplayLayout

      public CPDisplayLayout deleteCPDisplayLayout(long CPDisplayLayoutId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp display layout with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPDisplayLayoutLocalServiceImpl 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:
      deleteCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      CPDisplayLayoutId - the primary key of the cp display layout
      Returns:
      the cp display layout that was removed
      Throws:
      PortalException - if a cp display layout with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPDisplayLayouts

      public void deleteCPDisplayLayouts(Class<?> clazz, long classPK)
      Specified by:
      deleteCPDisplayLayouts in interface CPDisplayLayoutLocalService
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface CPDisplayLayoutLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface CPDisplayLayoutLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface CPDisplayLayoutLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CPDisplayLayoutLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface CPDisplayLayoutLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDisplayLayoutModelImpl.

      Specified by:
      dynamicQuery in interface CPDisplayLayoutLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDisplayLayoutModelImpl.

      Specified by:
      dynamicQuery in interface CPDisplayLayoutLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CPDisplayLayoutLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CPDisplayLayoutLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCPDisplayLayout

      public CPDisplayLayout fetchCPDisplayLayout(long CPDisplayLayoutId)
      Specified by:
      fetchCPDisplayLayout in interface CPDisplayLayoutLocalService
    • fetchCPDisplayLayout

      public CPDisplayLayout fetchCPDisplayLayout(long groupId, Class<?> clazz, long classPK)
      Specified by:
      fetchCPDisplayLayout in interface CPDisplayLayoutLocalService
    • fetchCPDisplayLayoutByUuidAndGroupId

      public CPDisplayLayout fetchCPDisplayLayoutByUuidAndGroupId(String uuid, long groupId)
      Returns the cp display layout matching the UUID and group.
      Specified by:
      fetchCPDisplayLayoutByUuidAndGroupId in interface CPDisplayLayoutLocalService
      Parameters:
      uuid - the cp display layout's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp display layout, or null if a matching cp display layout could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface CPDisplayLayoutLocalService
    • getCPDisplayLayout

      public CPDisplayLayout getCPDisplayLayout(long CPDisplayLayoutId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp display layout with the primary key.
      Specified by:
      getCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      CPDisplayLayoutId - the primary key of the cp display layout
      Returns:
      the cp display layout
      Throws:
      PortalException - if a cp display layout with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPDisplayLayoutByUuidAndGroupId

      public CPDisplayLayout getCPDisplayLayoutByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp display layout matching the UUID and group.
      Specified by:
      getCPDisplayLayoutByUuidAndGroupId in interface CPDisplayLayoutLocalService
      Parameters:
      uuid - the cp display layout's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp display layout
      Throws:
      PortalException - if a matching cp display layout could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPDisplayLayouts

      public List<CPDisplayLayout> getCPDisplayLayouts(int start, int end)
      Returns a range of all the cp display layouts.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.product.model.impl.CPDisplayLayoutModelImpl.

      Specified by:
      getCPDisplayLayouts in interface CPDisplayLayoutLocalService
      Parameters:
      start - the lower bound of the range of cp display layouts
      end - the upper bound of the range of cp display layouts (not inclusive)
      Returns:
      the range of cp display layouts
    • getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid

      public List<CPDisplayLayout> getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid(long groupId, String layoutPageTemplateEntryUuid)
      Specified by:
      getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid in interface CPDisplayLayoutLocalService
    • getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid

      public List<CPDisplayLayout> getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid(long groupId, String layoutPageTemplateEntryUuid, int start, int end)
      Specified by:
      getCPDisplayLayoutsByGroupIdAndLayoutPageTemplateEntryUuid in interface CPDisplayLayoutLocalService
    • getCPDisplayLayoutsByGroupIdAndLayoutUuid

      public List<CPDisplayLayout> getCPDisplayLayoutsByGroupIdAndLayoutUuid(long groupId, String layoutUuid)
      Specified by:
      getCPDisplayLayoutsByGroupIdAndLayoutUuid in interface CPDisplayLayoutLocalService
    • getCPDisplayLayoutsByGroupIdAndLayoutUuid

      public List<CPDisplayLayout> getCPDisplayLayoutsByGroupIdAndLayoutUuid(long groupId, String layoutUuid, int start, int end)
      Specified by:
      getCPDisplayLayoutsByGroupIdAndLayoutUuid in interface CPDisplayLayoutLocalService
    • getCPDisplayLayoutsByUuidAndCompanyId

      public List<CPDisplayLayout> getCPDisplayLayoutsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the cp display layouts matching the UUID and company.
      Specified by:
      getCPDisplayLayoutsByUuidAndCompanyId in interface CPDisplayLayoutLocalService
      Parameters:
      uuid - the UUID of the cp display layouts
      companyId - the primary key of the company
      Returns:
      the matching cp display layouts, or an empty list if no matches were found
    • getCPDisplayLayoutsByUuidAndCompanyId

      public List<CPDisplayLayout> getCPDisplayLayoutsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDisplayLayout> orderByComparator)
      Returns a range of cp display layouts matching the UUID and company.
      Specified by:
      getCPDisplayLayoutsByUuidAndCompanyId in interface CPDisplayLayoutLocalService
      Parameters:
      uuid - the UUID of the cp display layouts
      companyId - the primary key of the company
      start - the lower bound of the range of cp display layouts
      end - the upper bound of the range of cp display layouts (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching cp display layouts, or an empty list if no matches were found
    • getCPDisplayLayoutsCount

      public int getCPDisplayLayoutsCount()
      Returns the number of cp display layouts.
      Specified by:
      getCPDisplayLayoutsCount in interface CPDisplayLayoutLocalService
      Returns:
      the number of cp display layouts
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface CPDisplayLayoutLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface CPDisplayLayoutLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CPDisplayLayoutLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface CPDisplayLayoutLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • searchCPDisplayLayout

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPDisplayLayout> searchCPDisplayLayout(long companyId, long groupId, String className, Integer type, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPDisplayLayout in interface CPDisplayLayoutLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPDisplayLayout

      public CPDisplayLayout updateCPDisplayLayout(CPDisplayLayout cpDisplayLayout)
      Updates the cp display layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPDisplayLayoutLocalServiceImpl 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:
      updateCPDisplayLayout in interface CPDisplayLayoutLocalService
      Parameters:
      cpDisplayLayout - the cp display layout
      Returns:
      the cp display layout that was updated
    • updateCPDisplayLayout

      public CPDisplayLayout updateCPDisplayLayout(long cpDisplayLayoutId, long classPK, String layoutPageTemplateEntryUuid, String layoutUuid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPDisplayLayout in interface CPDisplayLayoutLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDisplayLayout> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPDisplayLayoutLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDisplayLayout>
    • getModelClass

      public Class<CPDisplayLayout> getModelClass()
      Specified by:
      getModelClass in interface CPDisplayLayoutLocalService
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDisplayLayout>
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDisplayLayout>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface CPDisplayLayoutLocalService
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPDisplayLayout>
      Throws:
      E extends Throwable
    • getWrappedService

      public CPDisplayLayoutLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPDisplayLayoutLocalService>
    • setWrappedService

      public void setWrappedService(CPDisplayLayoutLocalService cpDisplayLayoutLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPDisplayLayoutLocalService>