Class KaleoDefinitionVersionLocalServiceUtil

java.lang.Object
com.liferay.portal.workflow.kaleo.service.KaleoDefinitionVersionLocalServiceUtil

public class KaleoDefinitionVersionLocalServiceUtil extends Object
Provides the local service utility for KaleoDefinitionVersion. This utility wraps com.liferay.portal.workflow.kaleo.service.impl.KaleoDefinitionVersionLocalServiceImpl and is an access point for service operations in application layer code running on the local server. 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:
  • Constructor Details

    • KaleoDefinitionVersionLocalServiceUtil

      public KaleoDefinitionVersionLocalServiceUtil()
  • Method Details

    • addKaleoDefinitionVersion

      public static 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

      public static 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

      public static 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

      public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersion

      public static 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

      public static 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

      public static void deleteKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public static void deleteKaleoDefinitionVersions(KaleoDefinition kaleoDefinition) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public static void deleteKaleoDefinitionVersions(List<KaleoDefinitionVersion> kaleoDefinitionVersions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKaleoDefinitionVersions

      public static void deleteKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dslQueryCount

      public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dynamicQuery

      public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      public static <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

      public static <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

      public static <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

      public static 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

      public static 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

      public static KaleoDefinitionVersion fetchKaleoDefinitionVersion(long kaleoDefinitionVersionId)
    • fetchKaleoDefinitionVersion

      public static KaleoDefinitionVersion fetchKaleoDefinitionVersion(long companyId, String name, String version)
    • fetchLatestKaleoDefinitionVersion

      public static KaleoDefinitionVersion fetchLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLatestKaleoDefinitionVersion

      public static 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

      public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getFirstKaleoDefinitionVersion

      public static KaleoDefinitionVersion getFirstKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getKaleoDefinitionVersion

      public static 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

      public static KaleoDefinitionVersion getKaleoDefinitionVersion(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionVersions

      public static 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

      public static List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    • getKaleoDefinitionVersions

      public static List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoDefinitionVersions

      public static List<KaleoDefinitionVersion> getKaleoDefinitionVersions(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    • getKaleoDefinitionVersionsCount

      public static int getKaleoDefinitionVersionsCount()
      Returns the number of kaleo definition versions.
      Returns:
      the number of kaleo definition versions
    • getKaleoDefinitionVersionsCount

      public static int getKaleoDefinitionVersionsCount(long companyId)
    • getKaleoDefinitionVersionsCount

      public static int getKaleoDefinitionVersionsCount(long companyId, String name)
    • getKaleoDefinitionVersionsPrevAndNext

      public static KaleoDefinitionVersion[] getKaleoDefinitionVersionsPrevAndNext(long companyId, String name, String version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKaleoDefinitionVersion

      public static KaleoDefinitionVersion getLatestKaleoDefinitionVersion(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKaleoDefinitionVersions

      public static List<KaleoDefinitionVersion> getLatestKaleoDefinitionVersions(long companyId, String keywords, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    • getLatestKaleoDefinitionVersionsCount

      public static int getLatestKaleoDefinitionVersionsCount(long companyId, String keywords, int status)
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKaleoDefinitionVersion

      public static 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
    • getService

      public static KaleoDefinitionVersionLocalService getService()