Class CompositeEngineWrapper
java.lang.Object
com.flowable.workobject.engine.impl.wrapper.CompositeEngineWrapper
- All Implemented Interfaces:
NativeEngineWrapper
public class CompositeEngineWrapper extends java.lang.Object implements NativeEngineWrapper
Makes composite of several
NativeEngineWrappers-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<NativeEngineWrapper>engineWrappers -
Constructor Summary
Constructors Constructor Description CompositeEngineWrapper(java.util.List<NativeEngineWrapper> engineWrappers) -
Method Summary
Modifier and Type Method Description java.util.Optional<NativeEngineWrapper>accepts(java.lang.String workObjectId)Flag to allow to choose the right wrapper for the given workObjectvoidaddIdentityLinkToWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Add identity link to theWorkObject, without params validationvoiddeleteIdentityLinkForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Delete identity link for theWorkObjectjava.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink>getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)GetHistoricIdentityLinkfor theWorkObjectHistoricWorkObjectgetHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)Get historic workObject by given Idjava.util.List<org.flowable.identitylink.api.IdentityLink>getIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Get identity links for theWorkObject, without params validationjava.lang.StringgetParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Get parentWorkObjectidentifierWorkObjectgetWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery query)Get workObject by given id and tenant
-
Field Details
-
Constructor Details
-
Method Details
-
accepts
Description copied from interface:NativeEngineWrapperFlag to allow to choose the right wrapper for the given workObject- Specified by:
acceptsin interfaceNativeEngineWrapper- Parameters:
workObjectId- workObject identifier- Returns:
- optionally returns NativeEngineWrapper which is able to handle request.
-
getHistoricWorkObjectByIdAndTenant
public HistoricWorkObject getHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)Description copied from interface:NativeEngineWrapperGet historic workObject by given Id- Specified by:
getHistoricWorkObjectByIdAndTenantin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is donehistoricWorkObjectQuery- historic workObject query- Returns:
- native historic object wrapped in the HistoricWorkObject implementation
-
getWorkObject
public WorkObject getWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery query)Description copied from interface:NativeEngineWrapperGet workObject by given id and tenant- Specified by:
getWorkObjectin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedquery- query to search for- Returns:
- workObject according to given query.
-
addIdentityLinkToWorkObject
public void addIdentityLinkToWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:NativeEngineWrapperAdd identity link to theWorkObject, without params validation- Specified by:
addIdentityLinkToWorkObjectin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifieruserId- user identifiergroupId- group identifieridentityLinkType- identity link type
-
deleteIdentityLinkForWorkObject
public void deleteIdentityLinkForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:NativeEngineWrapperDelete identity link for theWorkObject- Specified by:
deleteIdentityLinkForWorkObjectin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifieruserId- user identifiergroupId- group identifieridentityLinkType- identity link type
-
getIdentityLinksForWorkObject
public java.util.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapperGet identity links for theWorkObject, without params validation- Specified by:
getIdentityLinksForWorkObjectin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier
-
getHistoricIdentityLinksForWorkObject
public java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapperGetHistoricIdentityLinkfor theWorkObject- Specified by:
getHistoricIdentityLinksForWorkObjectin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier
-
getParentId
public java.lang.String getParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapperGet parentWorkObjectidentifier- Specified by:
getParentIdin interfaceNativeEngineWrapper- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier- Returns:
- parent workObjectId or null in the case when workObject is null
-