Class CommerceCatalogLocalServiceWrapper

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

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

    • CommerceCatalogLocalServiceWrapper

      public CommerceCatalogLocalServiceWrapper()
    • CommerceCatalogLocalServiceWrapper

      public CommerceCatalogLocalServiceWrapper(CommerceCatalogLocalService commerceCatalogLocalService)
  • Method Details

    • addCommerceCatalog

      public CommerceCatalog addCommerceCatalog(CommerceCatalog commerceCatalog)
      Adds the commerce catalog to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceCatalogLocalServiceImpl 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:
      addCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalog - the commerce catalog
      Returns:
      the commerce catalog that was added
    • addCommerceCatalog

      public CommerceCatalog addCommerceCatalog(String externalReferenceCode, long accountEntryId, String name, String commerceCurrencyCode, String catalogDefaultLanguageId, boolean system, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommerceCatalog in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceCatalog

      public CommerceCatalog addCommerceCatalog(String externalReferenceCode, String name, String commerceCurrencyCode, String catalogDefaultLanguageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommerceCatalog in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDefaultCommerceCatalog

      public CommerceCatalog addDefaultCommerceCatalog(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addDefaultCommerceCatalog in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceCatalog

      public CommerceCatalog createCommerceCatalog(long commerceCatalogId)
      Creates a new commerce catalog with the primary key. Does not add the commerce catalog to the database.
      Specified by:
      createCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalogId - the primary key for the new commerce catalog
      Returns:
      the new commerce catalog
    • createPersistedModel

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

      public CommerceCatalog deleteCommerceCatalog(CommerceCatalog commerceCatalog) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce catalog from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceCatalogLocalServiceImpl 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:
      deleteCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalog - the commerce catalog
      Returns:
      the commerce catalog that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceCatalog

      public CommerceCatalog deleteCommerceCatalog(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce catalog with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceCatalogLocalServiceImpl 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:
      deleteCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalogId - the primary key of the commerce catalog
      Returns:
      the commerce catalog that was removed
      Throws:
      PortalException - if a commerce catalog with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceCatalogs

      public void deleteCommerceCatalogs(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCommerceCatalogs in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 CommerceCatalogLocalService
      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 CommerceCatalogLocalService
      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 CommerceCatalogLocalService
      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 CommerceCatalogLocalService
    • 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 CommerceCatalogLocalService
      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.CommerceCatalogModelImpl.

      Specified by:
      dynamicQuery in interface CommerceCatalogLocalService
      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.CommerceCatalogModelImpl.

      Specified by:
      dynamicQuery in interface CommerceCatalogLocalService
      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 CommerceCatalogLocalService
      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 CommerceCatalogLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCommerceCatalog

      public CommerceCatalog fetchCommerceCatalog(long commerceCatalogId)
      Specified by:
      fetchCommerceCatalog in interface CommerceCatalogLocalService
    • fetchCommerceCatalogByExternalReferenceCode

      public CommerceCatalog fetchCommerceCatalogByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCommerceCatalogByExternalReferenceCode in interface CommerceCatalogLocalService
    • fetchCommerceCatalogByGroupId

      public CommerceCatalog fetchCommerceCatalogByGroupId(long groupId)
      Specified by:
      fetchCommerceCatalogByGroupId in interface CommerceCatalogLocalService
    • fetchCommerceCatalogByUuidAndCompanyId

      public CommerceCatalog fetchCommerceCatalogByUuidAndCompanyId(String uuid, long companyId)
      Returns the commerce catalog with the matching UUID and company.
      Specified by:
      fetchCommerceCatalogByUuidAndCompanyId in interface CommerceCatalogLocalService
      Parameters:
      uuid - the commerce catalog's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce catalog, or null if a matching commerce catalog could not be found
    • forceDeleteCommerceCatalog

      public CommerceCatalog forceDeleteCommerceCatalog(CommerceCatalog commerceCatalog) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      forceDeleteCommerceCatalog in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getActionableDynamicQuery

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

      public CommerceCatalog getCommerceCatalog(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce catalog with the primary key.
      Specified by:
      getCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalogId - the primary key of the commerce catalog
      Returns:
      the commerce catalog
      Throws:
      PortalException - if a commerce catalog with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogByExternalReferenceCode

      public CommerceCatalog getCommerceCatalogByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCatalogByExternalReferenceCode in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogByUuidAndCompanyId

      public CommerceCatalog getCommerceCatalogByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce catalog with the matching UUID and company.
      Specified by:
      getCommerceCatalogByUuidAndCompanyId in interface CommerceCatalogLocalService
      Parameters:
      uuid - the commerce catalog's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce catalog
      Throws:
      PortalException - if a matching commerce catalog could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogGroup

      public com.liferay.portal.kernel.model.Group getCommerceCatalogGroup(long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCatalogGroup in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCatalogs

      public List<CommerceCatalog> getCommerceCatalogs(int start, int end)
      Returns a range of all the commerce catalogs.

      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.CommerceCatalogModelImpl.

      Specified by:
      getCommerceCatalogs in interface CommerceCatalogLocalService
      Parameters:
      start - the lower bound of the range of commerce catalogs
      end - the upper bound of the range of commerce catalogs (not inclusive)
      Returns:
      the range of commerce catalogs
    • getCommerceCatalogs

      public List<CommerceCatalog> getCommerceCatalogs(long companyId)
      Specified by:
      getCommerceCatalogs in interface CommerceCatalogLocalService
    • getCommerceCatalogs

      public List<CommerceCatalog> getCommerceCatalogs(long companyId, boolean system)
      Specified by:
      getCommerceCatalogs in interface CommerceCatalogLocalService
    • getCommerceCatalogsByAccountEntryId

      public List<CommerceCatalog> getCommerceCatalogsByAccountEntryId(long accountEntryId)
      Specified by:
      getCommerceCatalogsByAccountEntryId in interface CommerceCatalogLocalService
    • getCommerceCatalogsCount

      public int getCommerceCatalogsCount()
      Returns the number of commerce catalogs.
      Specified by:
      getCommerceCatalogsCount in interface CommerceCatalogLocalService
      Returns:
      the number of commerce catalogs
    • getExportActionableDynamicQuery

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

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceCatalogLocalService
      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 CommerceCatalogLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • search

      public List<CommerceCatalog> search(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      search in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      public List<CommerceCatalog> search(long companyId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      search in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceCatalogsCount

      public int searchCommerceCatalogsCount(long companyId, String keywords) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCommerceCatalogsCount in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceCatalog

      public CommerceCatalog updateCommerceCatalog(CommerceCatalog commerceCatalog)
      Updates the commerce catalog in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommerceCatalogLocalServiceImpl 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:
      updateCommerceCatalog in interface CommerceCatalogLocalService
      Parameters:
      commerceCatalog - the commerce catalog
      Returns:
      the commerce catalog that was updated
    • updateCommerceCatalog

      public CommerceCatalog updateCommerceCatalog(long commerceCatalogId, long accountEntryId, String name, String commerceCurrencyCode, String catalogDefaultLanguageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceCatalog in interface CommerceCatalogLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceCatalogExternalReferenceCode

      public CommerceCatalog updateCommerceCatalogExternalReferenceCode(String externalReferenceCode, long commerceCatalogId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceCatalogExternalReferenceCode in interface CommerceCatalogLocalService
      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<CommerceCatalog> getCTPersistence()
      Specified by:
      getCTPersistence in interface CommerceCatalogLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommerceCatalog>
    • getModelClass

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

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

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

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