@Manager public class DefaultFrontendObjectManager extends Object implements FrontendObjectManager
Default implementation of the FrontendObjectManager interface.
| Constructor and Description |
|---|
DefaultFrontendObjectManager(WorkObjectService workObjectService,
FrontendObjectService frontendObjectService,
NotificationService notificationService,
SearchService searchService,
FrontendObjectManagerUtils managerUtils,
AmbiguousIdHelper ambiguousIdHelper,
org.flowable.engine.ProcessEngine processEngine,
CurrentUserService currentUserService,
ModelService modelService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
Optional<List<WorkObjectDecorator>> optionalWorkObjectDecorators) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(String query)
Returns the result count for the given search query.
|
FrontendObject |
create(FrontendObject frontendObject,
String comment)
Creates a new work item from the given frontend object.
|
FrontendObject |
get(String ambiguousId)
Returns the current work item state.
|
FrontendObject |
getByGlobalId(String globalId)
Returns the current work item state.
|
void |
move(String ambiguousId,
String newParentAmbiguousId,
boolean includeDescendants,
boolean checkReferencedModelsConsistency,
boolean copyDescendants,
String comment)
Moves a given work item to a new parent.
|
void |
moveByGlobalId(String globalId,
String newParentGlobalId,
boolean includeDescendants,
boolean checkReferencedModelsConsistency,
boolean copyDescendants,
String comment)
Moves a given work item to a new parent.
|
FrontendObject |
save(FrontendObject frontendObject,
String comment)
Saves changes to a work item from a given frontend object.
|
List<FrontendObject> |
search(String query,
int offset,
int limit)
Executes the given search query.
|
void |
signal(String processId)
Sends a signal to the given process.
|
public DefaultFrontendObjectManager(WorkObjectService workObjectService, FrontendObjectService frontendObjectService, NotificationService notificationService, SearchService searchService, FrontendObjectManagerUtils managerUtils, AmbiguousIdHelper ambiguousIdHelper, org.flowable.engine.ProcessEngine processEngine, CurrentUserService currentUserService, ModelService modelService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<List<WorkObjectDecorator>> optionalWorkObjectDecorators)
public FrontendObject create(FrontendObject frontendObject, String comment) throws Exception
FrontendObjectManagerCreates a new work item from the given frontend object.
create in interface FrontendObjectManagerfrontendObject - the frontend objectcomment - the change commentException - if the work item could not be createdpublic FrontendObject get(String ambiguousId)
FrontendObjectManagerReturns the current work item state.
get in interface FrontendObjectManagerambiguousId - the work object ID (may either be a work object ID or a global ID)public FrontendObject getByGlobalId(String globalId)
FrontendObjectManagerReturns the current work item state.
getByGlobalId in interface FrontendObjectManagerglobalId - the work object global IDpublic FrontendObject save(FrontendObject frontendObject, String comment) throws Exception
FrontendObjectManagerSaves changes to a work item from a given frontend object.
save in interface FrontendObjectManagerfrontendObject - the frontend objectcomment - the change commentExceptionpublic void move(String ambiguousId, String newParentAmbiguousId, boolean includeDescendants, boolean checkReferencedModelsConsistency, boolean copyDescendants, String comment) throws Exception
FrontendObjectManagerMoves a given work item to a new parent.
move in interface FrontendObjectManagerambiguousId - the ID of the work object to be moved (either work object ID or global ID value)newParentAmbiguousId - the new parent ID (either work object ID or global ID value)includeDescendants - include referenced work objects into the movecheckReferencedModelsConsistency - check whether forms included in the move are not referenced from outsidecopyDescendants - move work object and copy all descendants to the new parentcomment - the change commentException - if the work object could not be movedpublic void moveByGlobalId(String globalId, String newParentGlobalId, boolean includeDescendants, boolean checkReferencedModelsConsistency, boolean copyDescendants, String comment) throws Exception
FrontendObjectManagerMoves a given work item to a new parent.
moveByGlobalId in interface FrontendObjectManagerglobalId - the global ID of the work object to be movednewParentGlobalId - the new parent work object global IDincludeDescendants - include referenced work objects into the movecheckReferencedModelsConsistency - check whether forms included in the move are not referenced from outsidecopyDescendants - move work object and copy all descendants to the new parentcomment - the change commentException - if the work object could not be movedpublic List<FrontendObject> search(String query, int offset, int limit)
FrontendObjectManagerExecutes the given search query.
search in interface FrontendObjectManagerquery - the query to be executedpublic long count(String query)
FrontendObjectManagerReturns the result count for the given search query.
count in interface FrontendObjectManagerquery - the query to be executedpublic void signal(String processId)
FrontendObjectManagerSends a signal to the given process.
signal in interface FrontendObjectManagerprocessId - the process IDCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.