Class SXPElementLocalServiceWrapper
- All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>,SXPElementLocalService
SXPElementLocalService.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionSXPElementLocalServiceWrapper(SXPElementLocalService sxpElementLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddSXPElement(SXPElement sxpElement) Adds the sxp element to the database.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) com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) createSXPElement(long sxpElementId) Creates a new sxp element with the primary key.voiddeleteCompanySXPElements(long companyId) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) deleteSXPElement(long sxpElementId) Deletes the sxp element with the primary key from the database.deleteSXPElement(SXPElement sxpElement) Deletes the sxp element from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.fetchSXPElement(long sxpElementId) fetchSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId) fetchSXPElementByUuidAndCompanyId(String uuid, long companyId) Returns the sxp element with the matching UUID and company.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.BasePersistence<?>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getSXPElement(long sxpElementId) Returns the sxp element with the primary key.getSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId) getSXPElementByUuidAndCompanyId(String uuid, long companyId) Returns the sxp element with the matching UUID and company.getSXPElements(int start, int end) Returns a range of all the sxp elements.getSXPElements(long companyId, boolean readOnly) intReturns the number of sxp elements.voidsetWrappedService(SXPElementLocalService sxpElementLocalService) updateStatus(long userId, long sxpElementId, int status) updateSXPElement(SXPElement sxpElement) Updates the sxp element in the database or adds it if it does not yet exist.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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
SXPElementLocalServiceWrapper
public SXPElementLocalServiceWrapper() -
SXPElementLocalServiceWrapper
-
-
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, throws com.liferay.portal.kernel.exception.PortalExceptionString> titleMap, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Specified by:
addSXPElementin interfaceSXPElementLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addSXPElement
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:
addSXPElementin interfaceSXPElementLocalService- 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:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
createPersistedModelin interfaceSXPElementLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
createSXPElement
Creates a new sxp element with the primary key. Does not add the sxp element to the database.- Specified by:
createSXPElementin interfaceSXPElementLocalService- 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:
deleteCompanySXPElementsin interfaceSXPElementLocalService- 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:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
deletePersistedModelin interfaceSXPElementLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
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:
deleteSXPElementin interfaceSXPElementLocalService- Parameters:
sxpElementId- the primary key of the sxp element- Returns:
- the sxp element that was removed
- Throws:
PortalException- if a sxp element with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
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:
deleteSXPElementin interfaceSXPElementLocalService- Parameters:
sxpElement- the sxp element- Returns:
- the sxp element that was removed
- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryin interfaceSXPElementLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
dslQueryCountin interfaceSXPElementLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceSXPElementLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceSXPElementLocalService- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.search.experiences.model.impl.SXPElementModelImpl.- Specified by:
dynamicQueryin interfaceSXPElementLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.search.experiences.model.impl.SXPElementModelImpl.- Specified by:
dynamicQueryin interfaceSXPElementLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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:
dynamicQueryCountin interfaceSXPElementLocalService- 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:
dynamicQueryCountin interfaceSXPElementLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchSXPElement
- Specified by:
fetchSXPElementin interfaceSXPElementLocalService
-
fetchSXPElementByExternalReferenceCode
public SXPElement fetchSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchSXPElementByExternalReferenceCodein interfaceSXPElementLocalService
-
fetchSXPElementByUuidAndCompanyId
Returns the sxp element with the matching UUID and company.- Specified by:
fetchSXPElementByUuidAndCompanyIdin interfaceSXPElementLocalService- Parameters:
uuid- the sxp element's UUIDcompanyId- the primary key of the company- Returns:
- the matching sxp element, or
nullif a matching sxp element could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceSXPElementLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceSXPElementLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceSXPElementLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceSXPElementLocalService- 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:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Specified by:
getPersistedModelin interfaceSXPElementLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
getSXPElement
public SXPElement getSXPElement(long sxpElementId) throws com.liferay.portal.kernel.exception.PortalException Returns the sxp element with the primary key.- Specified by:
getSXPElementin interfaceSXPElementLocalService- Parameters:
sxpElementId- the primary key of the sxp element- Returns:
- the sxp element
- Throws:
PortalException- if a sxp element with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getSXPElementByExternalReferenceCode
public SXPElement getSXPElementByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getSXPElementByExternalReferenceCodein interfaceSXPElementLocalService- 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:
getSXPElementByUuidAndCompanyIdin interfaceSXPElementLocalService- Parameters:
uuid- the sxp element's UUIDcompanyId- the primary key of the company- Returns:
- the matching sxp element
- Throws:
PortalException- if a matching sxp element could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getSXPElements
Returns a range of all the sxp elements.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.search.experiences.model.impl.SXPElementModelImpl.- Specified by:
getSXPElementsin interfaceSXPElementLocalService- Parameters:
start- the lower bound of the range of sxp elementsend- the upper bound of the range of sxp elements (not inclusive)- Returns:
- the range of sxp elements
-
getSXPElements
- Specified by:
getSXPElementsin interfaceSXPElementLocalService
-
getSXPElementsCount
public int getSXPElementsCount()Returns the number of sxp elements.- Specified by:
getSXPElementsCountin interfaceSXPElementLocalService- 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:
updateStatusin interfaceSXPElementLocalService- 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Specified by:
updateSXPElementin interfaceSXPElementLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateSXPElement
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:
updateSXPElementin interfaceSXPElementLocalService- Parameters:
sxpElement- the sxp element- Returns:
- the sxp element that was updated
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>
-