Interface WorkflowDefinitionLinkLocalService
- All Superinterfaces:
BaseLocalService
,CTService<WorkflowDefinitionLink>
,PersistedModelLocalService
- All Known Implementing Classes:
WorkflowDefinitionLinkLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddWorkflowDefinitionLink
(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) addWorkflowDefinitionLink
(WorkflowDefinitionLink workflowDefinitionLink) Adds the workflow definition link to the database.createPersistedModel
(Serializable primaryKeyObj) createWorkflowDefinitionLink
(long workflowDefinitionLinkId) Creates a new workflow definition link with the primary key.deletePersistedModel
(PersistedModel persistedModel) deleteWorkflowDefinitionLink
(long workflowDefinitionLinkId) Deletes the workflow definition link with the primary key from the database.void
deleteWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK) deleteWorkflowDefinitionLink
(WorkflowDefinitionLink workflowDefinitionLink) Deletes the workflow definition link from the database.<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(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
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchDefaultWorkflowDefinitionLink
(long companyId, String className, long classPK, long typePK) fetchWorkflowDefinitionLink
(long workflowDefinitionLinkId) fetchWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK) fetchWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK, boolean strict) fetchWorkflowDefinitionLinkByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchWorkflowDefinitionLinkByUuidAndGroupId
(String uuid, long groupId) Returns the workflow definition link matching the UUID and group.fetchWorkflowDefinitionLinks
(long companyId, long groupId, String className, long classPK) getDefaultWorkflowDefinitionLink
(long companyId, String className, long classPK, long typePK) getExportActionableDynamicQuery
(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getWorkflowDefinitionLink
(long workflowDefinitionLinkId) Returns the workflow definition link with the primary key.getWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK) getWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK, boolean strict) getWorkflowDefinitionLinkByExternalReferenceCode
(String externalReferenceCode, long groupId) getWorkflowDefinitionLinkByUuidAndGroupId
(String uuid, long groupId) Returns the workflow definition link matching the UUID and group.getWorkflowDefinitionLinks
(int start, int end) Returns a range of all the workflow definition links.getWorkflowDefinitionLinks
(long companyId, long groupId, long classPK) getWorkflowDefinitionLinks
(long companyId, long groupId, String className, long classPK) getWorkflowDefinitionLinks
(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) getWorkflowDefinitionLinksByUuidAndCompanyId
(String uuid, long companyId) Returns all the workflow definition links matching the UUID and company.getWorkflowDefinitionLinksByUuidAndCompanyId
(String uuid, long companyId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator) Returns a range of workflow definition links matching the UUID and company.int
Returns the number of workflow definition links.int
getWorkflowDefinitionLinksCount
(long companyId, long groupId, String className) int
getWorkflowDefinitionLinksCount
(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) boolean
hasWorkflowDefinitionLink
(long companyId, long groupId, String className) boolean
hasWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK) boolean
hasWorkflowDefinitionLink
(long companyId, long groupId, String className, long classPK, long typePK) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<WorkflowDefinitionLink>, R, E> updateUnsafeFunction) void
updateWorkflowDefinitionLink
(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinition) updateWorkflowDefinitionLink
(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) updateWorkflowDefinitionLink
(WorkflowDefinitionLink workflowDefinitionLink) Updates the workflow definition link in the database or adds it if it does not yet exist.updateWorkflowDefinitionLink
(String externalReferenceCode, long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) void
updateWorkflowDefinitionLinks
(long userId, long companyId, long groupId, String className, long classPK, List<ObjectValuePair<Long, String>> workflowDefinitionOVPs) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addWorkflowDefinitionLink
WorkflowDefinitionLink addWorkflowDefinitionLink(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) throws PortalException - Throws:
PortalException
-
addWorkflowDefinitionLink
@Indexable(type=REINDEX) WorkflowDefinitionLink addWorkflowDefinitionLink(WorkflowDefinitionLink workflowDefinitionLink) Adds the workflow definition link to the database. Also notifies the appropriate model listeners.Important: Inspect WorkflowDefinitionLinkLocalServiceImpl 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:
workflowDefinitionLink
- the workflow definition link- Returns:
- the workflow definition link that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
createWorkflowDefinitionLink
@Transactional(enabled=false) WorkflowDefinitionLink createWorkflowDefinitionLink(long workflowDefinitionLinkId) Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.- Parameters:
workflowDefinitionLinkId
- the primary key for the new workflow definition link- Returns:
- the new workflow definition link
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
deleteWorkflowDefinitionLink
@Indexable(type=DELETE) WorkflowDefinitionLink deleteWorkflowDefinitionLink(long workflowDefinitionLinkId) throws PortalException Deletes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect WorkflowDefinitionLinkLocalServiceImpl 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:
workflowDefinitionLinkId
- the primary key of the workflow definition link- Returns:
- the workflow definition link that was removed
- Throws:
PortalException
- if a workflow definition link with the primary key could not be found
-
deleteWorkflowDefinitionLink
void deleteWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK) -
deleteWorkflowDefinitionLink
@Indexable(type=DELETE) WorkflowDefinitionLink deleteWorkflowDefinitionLink(WorkflowDefinitionLink workflowDefinitionLink) Deletes the workflow definition link from the database. Also notifies the appropriate model listeners.Important: Inspect WorkflowDefinitionLinkLocalServiceImpl 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:
workflowDefinitionLink
- the workflow definition link- Returns:
- the workflow definition link that was removed
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> 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
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(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.model.impl.WorkflowDefinitionLinkModelImpl
.- 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(DynamicQuery dynamicQuery, int start, int end, 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.model.impl.WorkflowDefinitionLinkModelImpl
.- 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(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(DynamicQuery dynamicQuery, 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
-
fetchDefaultWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchDefaultWorkflowDefinitionLink(long companyId, String className, long classPK, long typePK) -
fetchWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchWorkflowDefinitionLink(long workflowDefinitionLinkId) -
fetchWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK) -
fetchWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK, boolean strict) -
fetchWorkflowDefinitionLinkByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchWorkflowDefinitionLinkByExternalReferenceCode(String externalReferenceCode, long groupId) -
fetchWorkflowDefinitionLinkByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink fetchWorkflowDefinitionLinkByUuidAndGroupId(String uuid, long groupId) Returns the workflow definition link matching the UUID and group.- Parameters:
uuid
- the workflow definition link's UUIDgroupId
- the primary key of the group- Returns:
- the matching workflow definition link, or
null
if a matching workflow definition link could not be found
-
fetchWorkflowDefinitionLinks
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> fetchWorkflowDefinitionLinks(long companyId, long groupId, String className, long classPK) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getDefaultWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(long companyId, String className, long classPK, long typePK) throws PortalException - Throws:
PortalException
-
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
getWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getWorkflowDefinitionLink(long workflowDefinitionLinkId) throws PortalException Returns the workflow definition link with the primary key.- Parameters:
workflowDefinitionLinkId
- the primary key of the workflow definition link- Returns:
- the workflow definition link
- Throws:
PortalException
- if a workflow definition link with the primary key could not be found
-
getWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK, boolean strict) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLinkByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getWorkflowDefinitionLinkByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLinkByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) WorkflowDefinitionLink getWorkflowDefinitionLinkByUuidAndGroupId(String uuid, long groupId) throws PortalException Returns the workflow definition link matching the UUID and group.- Parameters:
uuid
- the workflow definition link's UUIDgroupId
- the primary key of the group- Returns:
- the matching workflow definition link
- Throws:
PortalException
- if a matching workflow definition link could not be found
-
getWorkflowDefinitionLinks
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinks(int start, int end) Returns a range of all the workflow definition links.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.model.impl.WorkflowDefinitionLinkModelImpl
.- Parameters:
start
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)- Returns:
- the range of workflow definition links
-
getWorkflowDefinitionLinks
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinks(long companyId, long groupId, long classPK) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLinks
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinks(long companyId, long groupId, String className, long classPK) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLinks
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinks(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws PortalException - Throws:
PortalException
-
getWorkflowDefinitionLinksByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinksByUuidAndCompanyId(String uuid, long companyId) Returns all the workflow definition links matching the UUID and company.- Parameters:
uuid
- the UUID of the workflow definition linkscompanyId
- the primary key of the company- Returns:
- the matching workflow definition links, or an empty list if no matches were found
-
getWorkflowDefinitionLinksByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<WorkflowDefinitionLink> getWorkflowDefinitionLinksByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator) Returns a range of workflow definition links matching the UUID and company.- Parameters:
uuid
- the UUID of the workflow definition linkscompanyId
- the primary key of the companystart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching workflow definition links, or an empty list if no matches were found
-
getWorkflowDefinitionLinksCount
Returns the number of workflow definition links.- Returns:
- the number of workflow definition links
-
getWorkflowDefinitionLinksCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getWorkflowDefinitionLinksCount(long companyId, long groupId, String className) -
getWorkflowDefinitionLinksCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getWorkflowDefinitionLinksCount(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) -
hasWorkflowDefinitionLink
@Transactional(enabled=false) boolean hasWorkflowDefinitionLink(long companyId, long groupId, String className) -
hasWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK) -
hasWorkflowDefinitionLink
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasWorkflowDefinitionLink(long companyId, long groupId, String className, long classPK, long typePK) -
updateWorkflowDefinitionLink
void updateWorkflowDefinitionLink(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinition) throws PortalException - Throws:
PortalException
-
updateWorkflowDefinitionLink
WorkflowDefinitionLink updateWorkflowDefinitionLink(long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) throws PortalException - Throws:
PortalException
-
updateWorkflowDefinitionLink
WorkflowDefinitionLink updateWorkflowDefinitionLink(String externalReferenceCode, long userId, long companyId, long groupId, String className, long classPK, long typePK, String workflowDefinitionName, int workflowDefinitionVersion) throws PortalException - Throws:
PortalException
-
updateWorkflowDefinitionLink
@Indexable(type=REINDEX) WorkflowDefinitionLink updateWorkflowDefinitionLink(WorkflowDefinitionLink workflowDefinitionLink) Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect WorkflowDefinitionLinkLocalServiceImpl 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:
workflowDefinitionLink
- the workflow definition link- Returns:
- the workflow definition link that was updated
-
updateWorkflowDefinitionLinks
void updateWorkflowDefinitionLinks(long userId, long companyId, long groupId, String className, long classPK, List<ObjectValuePair<Long, String>> workflowDefinitionOVPs) throws PortalException- Throws:
PortalException
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<WorkflowDefinitionLink>
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<WorkflowDefinitionLink>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<WorkflowDefinitionLink>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<WorkflowDefinitionLink>
- Throws:
E extends Throwable
-