Class SXPElementLocalServiceWrapper

java.lang.Object
com.liferay.search.experiences.service.SXPElementLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>, SXPElementLocalService

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

    • SXPElementLocalServiceWrapper

      public SXPElementLocalServiceWrapper()
    • SXPElementLocalServiceWrapper

      public SXPElementLocalServiceWrapper(SXPElementLocalService sxpElementLocalService)
  • Method Details

    • addSXPElement

      public SXPElement addSXPElement(String externalReferenceCode, long userId, Map<Locale,String> descriptionMap, String elementDefinitionJSON, String fallbackDescription, String fallbackTitle, boolean readOnly, String schemaVersion, Map<Locale,String> titleMap, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSXPElement in interface SXPElementLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSXPElement

      public SXPElement addSXPElement(SXPElement sxpElement)
      Adds the sxp element to the database. Also notifies the appropriate model listeners.

      Important: Inspect SXPElementLocalServiceImpl 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:
      addSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElement - the sxp element
      Returns:
      the sxp element that was added
    • createPersistedModel

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

      public SXPElement createSXPElement(long sxpElementId)
      Creates a new sxp element with the primary key. Does not add the sxp element to the database.
      Specified by:
      createSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElementId - the primary key for the new sxp element
      Returns:
      the new sxp element
    • deleteCompanySXPElements

      public void deleteCompanySXPElements(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCompanySXPElements in interface SXPElementLocalService
      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 com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface SXPElementLocalService
    • deleteSXPElement

      public SXPElement deleteSXPElement(long sxpElementId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the sxp element with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect SXPElementLocalServiceImpl 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:
      deleteSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElementId - the primary key of the sxp element
      Returns:
      the sxp element that was removed
    • deleteSXPElement

      public SXPElement deleteSXPElement(SXPElement sxpElement) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the sxp element from the database. Also notifies the appropriate model listeners.

      Important: Inspect SXPElementLocalServiceImpl 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:
      deleteSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElement - the sxp element
      Returns:
      the sxp element that was removed
    • dslQuery

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

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

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface SXPElementLocalService
    • 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 SXPElementLocalService
      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.search.experiences.model.impl.SXPElementModelImpl.

      Specified by:
      dynamicQuery in interface SXPElementLocalService
      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.search.experiences.model.impl.SXPElementModelImpl.

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

      public SXPElement fetchSXPElement(long sxpElementId)
      Specified by:
      fetchSXPElement in interface SXPElementLocalService
    • fetchSXPElementByExternalReferenceCode

      public SXPElement fetchSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchSXPElementByExternalReferenceCode in interface SXPElementLocalService
    • fetchSXPElementByUuidAndCompanyId

      public SXPElement fetchSXPElementByUuidAndCompanyId(String uuid, long companyId)
      Returns the sxp element with the matching UUID and company.
      Specified by:
      fetchSXPElementByUuidAndCompanyId in interface SXPElementLocalService
      Parameters:
      uuid - the sxp element's UUID
      companyId - the primary key of the company
      Returns:
      the matching sxp element, or null if a matching sxp element could not be found
    • getActionableDynamicQuery

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

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

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

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

      public SXPElement getSXPElement(long sxpElementId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the sxp element with the primary key.
      Specified by:
      getSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElementId - the primary key of the sxp element
      Returns:
      the sxp element
    • getSXPElementByExternalReferenceCode

      public SXPElement getSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSXPElementByExternalReferenceCode in interface SXPElementLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSXPElementByUuidAndCompanyId

      public SXPElement getSXPElementByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the sxp element with the matching UUID and company.
      Specified by:
      getSXPElementByUuidAndCompanyId in interface SXPElementLocalService
      Parameters:
      uuid - the sxp element's UUID
      companyId - the primary key of the company
      Returns:
      the matching sxp element
    • getSXPElements

      public List<SXPElement> getSXPElements(int start, int end)
      Returns a range of all the sxp elements.

      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.search.experiences.model.impl.SXPElementModelImpl.

      Specified by:
      getSXPElements in interface SXPElementLocalService
      Parameters:
      start - the lower bound of the range of sxp elements
      end - the upper bound of the range of sxp elements (not inclusive)
      Returns:
      the range of sxp elements
    • getSXPElements

      public List<SXPElement> getSXPElements(long companyId, boolean readOnly)
      Specified by:
      getSXPElements in interface SXPElementLocalService
    • getSXPElementsCount

      public int getSXPElementsCount()
      Returns the number of sxp elements.
      Specified by:
      getSXPElementsCount in interface SXPElementLocalService
      Returns:
      the number of sxp elements
    • updateStatus

      public SXPElement updateStatus(long userId, long sxpElementId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface SXPElementLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSXPElement

      public SXPElement updateSXPElement(String externalReferenceCode, long userId, long sxpElementId, Map<Locale,String> descriptionMap, String elementDefinitionJSON, boolean hidden, String schemaVersion, Map<Locale,String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSXPElement in interface SXPElementLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSXPElement

      public SXPElement updateSXPElement(SXPElement sxpElement)
      Updates the sxp element in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect SXPElementLocalServiceImpl 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:
      updateSXPElement in interface SXPElementLocalService
      Parameters:
      sxpElement - the sxp element
      Returns:
      the sxp element that was updated
    • getBasePersistence

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

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

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