Class KaleoDefinitionVersionLocalServiceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KaleoDefinitionVersion
addKaleoDefinitionVersion
(long kaleoDefinitionId, String name, String title, String description, String content, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) static KaleoDefinitionVersion
addKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Adds the kaleo definition version to the database.static KaleoDefinitionVersion
createKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Creates a new kaleo definition version with the primary key.static com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) static KaleoDefinitionVersion
deleteKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Deletes the kaleo definition version with the primary key from the database.static void
deleteKaleoDefinitionVersion
(long companyId, String name, String version) static KaleoDefinitionVersion
deleteKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Deletes the kaleo definition version from the database.static void
deleteKaleoDefinitionVersions
(long companyId, String name) static void
deleteKaleoDefinitionVersions
(KaleoDefinition kaleoDefinition) static void
deleteKaleoDefinitionVersions
(List<KaleoDefinitionVersion> kaleoDefinitionVersions) static com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuery
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.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.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.static long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.static KaleoDefinitionVersion
fetchKaleoDefinitionVersion
(long kaleoDefinitionVersionId) static KaleoDefinitionVersion
fetchKaleoDefinitionVersion
(long companyId, String name, String version) static KaleoDefinitionVersion
fetchLatestKaleoDefinitionVersion
(long companyId, String name) static KaleoDefinitionVersion
fetchLatestKaleoDefinitionVersion
(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
static KaleoDefinitionVersion
getFirstKaleoDefinitionVersion
(long companyId, String name) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
static KaleoDefinitionVersion
getKaleoDefinitionVersion
(long kaleoDefinitionVersionId) Returns the kaleo definition version with the primary key.static KaleoDefinitionVersion
getKaleoDefinitionVersion
(long companyId, String name, String version) static List<KaleoDefinitionVersion>
getKaleoDefinitionVersions
(int start, int end) Returns a range of all the kaleo definition versions.static List<KaleoDefinitionVersion>
getKaleoDefinitionVersions
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) static List<KaleoDefinitionVersion>
getKaleoDefinitionVersions
(long companyId, String name) static List<KaleoDefinitionVersion>
getKaleoDefinitionVersions
(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) static int
Returns the number of kaleo definition versions.static int
getKaleoDefinitionVersionsCount
(long companyId) static int
getKaleoDefinitionVersionsCount
(long companyId, String name) static KaleoDefinitionVersion[]
getKaleoDefinitionVersionsPrevAndNext
(long companyId, String name, String version) static KaleoDefinitionVersion
getLatestKaleoDefinitionVersion
(long companyId, String name) static List<KaleoDefinitionVersion>
getLatestKaleoDefinitionVersions
(long companyId, String keywords, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) static int
getLatestKaleoDefinitionVersionsCount
(long companyId, String keywords, int status) static String
Returns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) static KaleoDefinitionVersion
updateKaleoDefinitionVersion
(KaleoDefinitionVersion kaleoDefinitionVersion) Updates the kaleo definition version in the database or adds it if it does not yet exist.
-
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
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
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
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
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
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
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 queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchKaleoDefinitionVersion
-
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
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
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
-
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
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
-