Interface KaleoDefinitionVersionLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
KaleoDefinitionVersionLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddKaleoDefinitionVersion
(long kaleoDefinitionId, String name, String title, String description, String content, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) addKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Adds the kaleo definition version to the database.createKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Creates a new kaleo definition version with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Deletes the kaleo definition version with the primary key from the database.void
deleteKaleoDefinitionVersion
(long companyId, String name, String version) deleteKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Deletes the kaleo definition version from the database.void
deleteKaleoDefinitionVersions
(long companyId, String name) void
deleteKaleoDefinitionVersions
(KaleoDefinition kaleoDefinition) void
deleteKaleoDefinitionVersions
(List<KaleoDefinitionVersion> kaleoDefinitionVersions) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <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
<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.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.fetchKaleoDefinitionVersion
(long kaleoDefinitionVersionId) fetchKaleoDefinitionVersion
(long companyId, String name, String version) fetchLatestKaleoDefinitionVersion
(long companyId, String name) fetchLatestKaleoDefinitionVersion
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion>
getFirstKaleoDefinitionVersion
(long companyId, String name) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Returns the kaleo definition version with the primary key.getKaleoDefinitionVersion
(long companyId, String name, String version) getKaleoDefinitionVersions
(int start, int end) Returns a range of all the kaleo definition versions.getKaleoDefinitionVersions
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) getKaleoDefinitionVersions
(long companyId, String name) getKaleoDefinitionVersions
(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) int
Returns the number of kaleo definition versions.int
getKaleoDefinitionVersionsCount
(long companyId) int
getKaleoDefinitionVersionsCount
(long companyId, String name) getKaleoDefinitionVersionsPrevAndNext
(long companyId, String name, String version) getLatestKaleoDefinitionVersion
(long companyId, String name) getLatestKaleoDefinitionVersions
(long companyId, String keywords, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) int
getLatestKaleoDefinitionVersionsCount
(long companyId, String keywords, int status) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) updateKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Updates the kaleo definition version in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addKaleoDefinitionVersion
@Indexable(type=REINDEX) KaleoDefinitionVersion addKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion) Adds the kaleo definition version to the database. Also notifies the appropriate model listeners.Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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.
- Parameters:
kaleoDefinitionVersion
- the kaleo definition version- Returns:
- the kaleo definition version that was added
-
addKaleoDefinitionVersion
KaleoDefinitionVersion addKaleoDefinitionVersion(long kaleoDefinitionId, String name, String title, String description, String content, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createKaleoDefinitionVersion
@Transactional(enabled=false) KaleoDefinitionVersion createKaleoDefinitionVersion(long kaleoDefinitionVersionId) Creates a new kaleo definition version with the primary key. Does not add the kaleo definition version to the database.- Parameters:
kaleoDefinitionVersionId
- the primary key for the new kaleo definition version- Returns:
- the new kaleo definition version
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKaleoDefinitionVersion
@Indexable(type=DELETE) @SystemEvent(type=1) KaleoDefinitionVersion deleteKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion) throws com.liferay.portal.kernel.exception.PortalException Deletes the kaleo definition version from the database. Also notifies the appropriate model listeners.Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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.
- Parameters:
kaleoDefinitionVersion
- the kaleo definition version- Returns:
- the kaleo definition version that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKaleoDefinitionVersion
@Indexable(type=DELETE) KaleoDefinitionVersion deleteKaleoDefinitionVersion(long kaleoDefinitionVersionId) throws com.liferay.portal.kernel.exception.PortalException Deletes the kaleo definition version with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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.
- Parameters:
kaleoDefinitionVersionId
- the primary key of the kaleo definition version- Returns:
- the kaleo definition version that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a kaleo definition version with the primary key could not be found
-
deleteKaleoDefinitionVersion
void deleteKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKaleoDefinitionVersions
void deleteKaleoDefinitionVersions(KaleoDefinition kaleoDefinition) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKaleoDefinitionVersions
void deleteKaleoDefinitionVersions(List<KaleoDefinitionVersion> kaleoDefinitionVersions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKaleoDefinitionVersions
void deleteKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
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 interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl
.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) 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.- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion fetchKaleoDefinitionVersion(long kaleoDefinitionVersionId) -
fetchKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion fetchKaleoDefinitionVersion(long companyId, String name, String version) -
fetchLatestKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion fetchLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchLatestKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion fetchLatestKaleoDefinitionVersion(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getFirstKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion getFirstKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion getKaleoDefinitionVersion(long kaleoDefinitionVersionId) throws com.liferay.portal.kernel.exception.PortalException Returns the kaleo definition version with the primary key.- Parameters:
kaleoDefinitionVersionId
- the primary key of the kaleo definition version- Returns:
- the kaleo definition version
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a kaleo definition version with the primary key could not be found
-
getKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion getKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getKaleoDefinitionVersions
@Transactional(propagation=SUPPORTS, readOnly=true) List<KaleoDefinitionVersion> getKaleoDefinitionVersions(int start, int end) Returns a range of all the kaleo definition versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo definition versionsend
- the upper bound of the range of kaleo definition versions (not inclusive)- Returns:
- the range of kaleo definition versions
-
getKaleoDefinitionVersions
@Transactional(propagation=SUPPORTS, readOnly=true) List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) -
getKaleoDefinitionVersions
@Transactional(propagation=SUPPORTS, readOnly=true) List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getKaleoDefinitionVersions
@Transactional(propagation=SUPPORTS, readOnly=true) List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) -
getKaleoDefinitionVersionsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getKaleoDefinitionVersionsCount()Returns the number of kaleo definition versions.- Returns:
- the number of kaleo definition versions
-
getKaleoDefinitionVersionsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getKaleoDefinitionVersionsCount(long companyId) -
getKaleoDefinitionVersionsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getKaleoDefinitionVersionsCount(long companyId, String name) -
getKaleoDefinitionVersionsPrevAndNext
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion[] getKaleoDefinitionVersionsPrevAndNext(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLatestKaleoDefinitionVersion
@Transactional(propagation=SUPPORTS, readOnly=true) KaleoDefinitionVersion getLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLatestKaleoDefinitionVersions
@Transactional(propagation=SUPPORTS, readOnly=true) List<KaleoDefinitionVersion> getLatestKaleoDefinitionVersions(long companyId, String keywords, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) -
getLatestKaleoDefinitionVersionsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getLatestKaleoDefinitionVersionsCount(long companyId, String keywords, int status) -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateKaleoDefinitionVersion
@Indexable(type=REINDEX) KaleoDefinitionVersion updateKaleoDefinitionVersion(KaleoDefinitionVersion kaleoDefinitionVersion) Updates the kaleo definition version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect KaleoDefinitionVersionLocalServiceImpl 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.
- Parameters:
kaleoDefinitionVersion
- the kaleo definition version- Returns:
- the kaleo definition version that was updated
-
getCTPersistence
@Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion> getCTPersistence()- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
- Throws:
E extends Throwable
-