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

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface KaleoDefinitionVersionLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for KaleoDefinitionVersion. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • 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 interface com.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 interface com.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 interface com.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 interface com.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 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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      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

      @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 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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      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

      @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 query
      projection - 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 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.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo definition versions
      end - 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 interface com.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 interface com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
    • getModelClass

      @Transactional(enabled=false) Class<KaleoDefinitionVersion> getModelClass()
      Specified by:
      getModelClass in interface com.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,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<KaleoDefinitionVersion>
      Throws:
      E extends Throwable