Class WorkObjectEngineWrapper
java.lang.Object
com.flowable.workobject.engine.impl.wrapper.WorkObjectEngineWrapper
- All Implemented Interfaces:
NativeEngineWrapper
public class WorkObjectEngineWrapper extends java.lang.Object implements NativeEngineWrapper
Encapsulates
WorkObject
operations-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
WORKOBJECT_IDENTITY_LINK_SCOPE_TYPE
-
Constructor Summary
Constructors Constructor Description WorkObjectEngineWrapper()
-
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 workObjectvoid
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)
Add identity link to theWorkObject
, without params validationvoid
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)
Delete identity link for theWorkObject
java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink>
getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
GetHistoricIdentityLink
for theWorkObject
HistoricWorkObject
getHistoricWorkObjectByIdAndTenant(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.String
getParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
Get parentWorkObject
identifierWorkObject
getWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery workObjectQuery)
Get workObject by given id and tenantprotected boolean
noIdentityLink(java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)
-
Field Details
-
WORKOBJECT_IDENTITY_LINK_SCOPE_TYPE
public static final java.lang.String WORKOBJECT_IDENTITY_LINK_SCOPE_TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
WorkObjectEngineWrapper
public WorkObjectEngineWrapper()
-
-
Method Details
-
accepts
Description copied from interface:NativeEngineWrapper
Flag to allow to choose the right wrapper for the given workObject- Specified by:
accepts
in 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:NativeEngineWrapper
Get historic workObject by given Id- Specified by:
getHistoricWorkObjectByIdAndTenant
in 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 workObjectQuery)Description copied from interface:NativeEngineWrapper
Get workObject by given id and tenant- Specified by:
getWorkObject
in interfaceNativeEngineWrapper
- Parameters:
commandContext
- command context under which query is performedworkObjectQuery
- 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:NativeEngineWrapper
Add identity link to theWorkObject
, without params validation- Specified by:
addIdentityLinkToWorkObject
in 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:NativeEngineWrapper
Delete identity link for theWorkObject
- Specified by:
deleteIdentityLinkForWorkObject
in 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:NativeEngineWrapper
Get identity links for theWorkObject
, without params validation- Specified by:
getIdentityLinksForWorkObject
in 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:NativeEngineWrapper
GetHistoricIdentityLink
for theWorkObject
- Specified by:
getHistoricIdentityLinksForWorkObject
in 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:NativeEngineWrapper
Get parentWorkObject
identifier- Specified by:
getParentId
in interfaceNativeEngineWrapper
- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifier- Returns:
- parent workObjectId or null in the case when workObject is null
-
noIdentityLink
protected boolean noIdentityLink(java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)
-