public class SXPElementLocalServiceWrapper extends java.lang.Object implements com.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>, SXPElementLocalService
SXPElementLocalService
.SXPElementLocalService
Constructor and Description |
---|
SXPElementLocalServiceWrapper() |
SXPElementLocalServiceWrapper(SXPElementLocalService sxpElementLocalService) |
Modifier and Type | Method and Description |
---|---|
SXPElement |
addSXPElement(long userId,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String elementDefinitionJSON,
boolean readOnly,
java.lang.String schemaVersion,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
SXPElement |
addSXPElement(SXPElement sxpElement)
Adds the sxp element to the database.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
SXPElement |
createSXPElement(long sxpElementId)
Creates a new sxp element with the primary key.
|
void |
deleteCompanySXPElements(long companyId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
SXPElement |
deleteSXPElement(long sxpElementId)
Deletes the sxp element with the primary key from the database.
|
SXPElement |
deleteSXPElement(SXPElement sxpElement)
Deletes the sxp element from the database.
|
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
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.
|
SXPElement |
fetchSXPElement(long sxpElementId) |
SXPElement |
fetchSXPElementByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the sxp element with the matching UUID and company.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
SXPElement |
getSXPElement(long sxpElementId)
Returns the sxp element with the primary key.
|
SXPElement |
getSXPElementByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the sxp element with the matching UUID and company.
|
java.util.List<SXPElement> |
getSXPElements(int start,
int end)
Returns a range of all the sxp elements.
|
java.util.List<SXPElement> |
getSXPElements(long companyId,
boolean readOnly) |
int |
getSXPElementsCount()
Returns the number of sxp elements.
|
SXPElementLocalService |
getWrappedService() |
void |
setWrappedService(SXPElementLocalService sxpElementLocalService) |
SXPElement |
updateStatus(long userId,
long sxpElementId,
int status) |
SXPElement |
updateSXPElement(long userId,
long sxpElementId,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String elementDefinitionJSON,
boolean hidden,
java.lang.String schemaVersion,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
SXPElement |
updateSXPElement(SXPElement sxpElement)
Updates the sxp element in the database or adds it if it does not yet exist.
|
public SXPElementLocalServiceWrapper()
public SXPElementLocalServiceWrapper(SXPElementLocalService sxpElementLocalService)
public SXPElement addSXPElement(long userId, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String elementDefinitionJSON, boolean readOnly, java.lang.String schemaVersion, java.util.Map<java.util.Locale,java.lang.String> titleMap, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addSXPElement
in interface SXPElementLocalService
com.liferay.portal.kernel.exception.PortalException
public SXPElement addSXPElement(SXPElement sxpElement)
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.
addSXPElement
in interface SXPElementLocalService
sxpElement
- the sxp elementpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
createPersistedModel
in interface SXPElementLocalService
PortalException
public SXPElement createSXPElement(long sxpElementId)
createSXPElement
in interface SXPElementLocalService
sxpElementId
- the primary key for the new sxp elementpublic void deleteCompanySXPElements(long companyId) throws com.liferay.portal.kernel.exception.PortalException
deleteCompanySXPElements
in interface SXPElementLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
deletePersistedModel
in interface SXPElementLocalService
PortalException
public SXPElement deleteSXPElement(long sxpElementId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteSXPElement
in interface SXPElementLocalService
sxpElementId
- the primary key of the sxp elementPortalException
- if a sxp element with the primary key could not be foundpublic SXPElement deleteSXPElement(SXPElement sxpElement) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteSXPElement
in interface SXPElementLocalService
sxpElement
- the sxp elementPortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
dslQuery
in interface SXPElementLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
dslQueryCount
in interface SXPElementLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface SXPElementLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface SXPElementLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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
.
dynamicQuery
in interface SXPElementLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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
.
dynamicQuery
in interface SXPElementLocalService
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 (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface SXPElementLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface SXPElementLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic SXPElement fetchSXPElement(long sxpElementId)
fetchSXPElement
in interface SXPElementLocalService
public SXPElement fetchSXPElementByUuidAndCompanyId(java.lang.String uuid, long companyId)
fetchSXPElementByUuidAndCompanyId
in interface SXPElementLocalService
uuid
- the sxp element's UUIDcompanyId
- the primary key of the companynull
if a matching sxp element could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface SXPElementLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface SXPElementLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface SXPElementLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface SXPElementLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
getPersistedModel
in interface SXPElementLocalService
PortalException
public SXPElement getSXPElement(long sxpElementId) throws com.liferay.portal.kernel.exception.PortalException
getSXPElement
in interface SXPElementLocalService
sxpElementId
- the primary key of the sxp elementPortalException
- if a sxp element with the primary key could not be foundpublic SXPElement getSXPElementByUuidAndCompanyId(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getSXPElementByUuidAndCompanyId
in interface SXPElementLocalService
uuid
- the sxp element's UUIDcompanyId
- the primary key of the companyPortalException
- if a matching sxp element could not be foundpublic java.util.List<SXPElement> getSXPElements(int start, int end)
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
.
getSXPElements
in interface SXPElementLocalService
start
- the lower bound of the range of sxp elementsend
- the upper bound of the range of sxp elements (not inclusive)public java.util.List<SXPElement> getSXPElements(long companyId, boolean readOnly)
getSXPElements
in interface SXPElementLocalService
public int getSXPElementsCount()
getSXPElementsCount
in interface SXPElementLocalService
public SXPElement updateStatus(long userId, long sxpElementId, int status) throws com.liferay.portal.kernel.exception.PortalException
updateStatus
in interface SXPElementLocalService
com.liferay.portal.kernel.exception.PortalException
public SXPElement updateSXPElement(long userId, long sxpElementId, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String elementDefinitionJSON, boolean hidden, java.lang.String schemaVersion, java.util.Map<java.util.Locale,java.lang.String> titleMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateSXPElement
in interface SXPElementLocalService
com.liferay.portal.kernel.exception.PortalException
public SXPElement updateSXPElement(SXPElement sxpElement)
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.
updateSXPElement
in interface SXPElementLocalService
sxpElement
- the sxp elementpublic SXPElementLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>
public void setWrappedService(SXPElementLocalService sxpElementLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<SXPElementLocalService>