@Manager public class DefaultUserDashboardManager extends Object implements UserDashboardManager
Default implementation of the UserDashboardManager
interface.
Constructor and Description |
---|
DefaultUserDashboardManager(FrontendObjectService frontendObjectService,
com.edorasware.api.workobject.WorkObjectService workObjectService,
StateMachineManager stateMachineManager,
NotificationService notificationService,
FrontendObjectManagerUtils managerUtils,
UserManager userManager,
com.edorasware.commons.core.any.AnyWorkObjectService anyWorkObjectService,
CaseArchiveManager caseArchiveManager,
org.springframework.context.MessageSource messageSource,
DocumentService documentService,
ImagePreviewService imagePreviewService,
AmbiguousIdHelper ambiguousIdHelper,
WorkObjectVariableInitialization workObjectVariableInitialization) |
Modifier and Type | Method and Description |
---|---|
void |
activate(String ambiguousId,
String comment)
Activates a dashboard item.
|
String |
archive(String archiveType,
FrontendObject frontendObject,
String comment)
Archives the given work object.
|
void |
completeTask(String ambiguousId,
Map<String,String> values,
String comment)
Completes a task.
|
FrontendObject |
createQuery(FrontendObject frontendObject,
String comment)
Creates a new query work object.
|
InputStream |
generateCasePreviewImage(String ambiguousId)
Generates a preview image for the given case.
|
InputStream |
generatePreviewImage(String ambiguousId)
Generates a preview image for the given task.
|
InputStream |
generateProcessPreviewImage(String ambiguousId)
Generates a preview image for the given process.
|
FrontendObject |
saveAndCompleteTask(FrontendObject frontendObject,
String comment)
Saves changes and completes a task.
|
void |
updateDocumentPlaceholders(String ambiguousId,
String comment)
Updates the document placeholders in a given document.
|
public DefaultUserDashboardManager(FrontendObjectService frontendObjectService, com.edorasware.api.workobject.WorkObjectService workObjectService, StateMachineManager stateMachineManager, NotificationService notificationService, FrontendObjectManagerUtils managerUtils, UserManager userManager, com.edorasware.commons.core.any.AnyWorkObjectService anyWorkObjectService, CaseArchiveManager caseArchiveManager, org.springframework.context.MessageSource messageSource, DocumentService documentService, ImagePreviewService imagePreviewService, AmbiguousIdHelper ambiguousIdHelper, WorkObjectVariableInitialization workObjectVariableInitialization)
public void activate(String ambiguousId, String comment)
UserDashboardManager
Activates a dashboard item.
activate
in interface UserDashboardManager
ambiguousId
- the work object global IDcomment
- the change commentpublic void completeTask(String ambiguousId, Map<String,String> values, String comment)
UserDashboardManager
Completes a task.
completeTask
in interface UserDashboardManager
ambiguousId
- the task global IDvalues
- variables to set when tasks is completedcomment
- the change commentpublic FrontendObject saveAndCompleteTask(FrontendObject frontendObject, String comment) throws Exception
UserDashboardManager
Saves changes and completes a task.
saveAndCompleteTask
in interface UserDashboardManager
frontendObject
- the frontend object containing the changes to be savedcomment
- the change commentException
- if the task could not be completedpublic String archive(String archiveType, FrontendObject frontendObject, String comment)
UserDashboardManager
Archives the given work object.
archive
in interface UserDashboardManager
archiveType
- archive type to apply on the work object descendantsfrontendObject
- the frontend object to be archivedcomment
- the change commentpublic FrontendObject createQuery(FrontendObject frontendObject, String comment) throws Exception
UserDashboardManager
Creates a new query work object.
createQuery
in interface UserDashboardManager
frontendObject
- the frontend object to be createdcomment
- the change commentException
public void updateDocumentPlaceholders(String ambiguousId, String comment)
UserDashboardManager
Updates the document placeholders in a given document.
updateDocumentPlaceholders
in interface UserDashboardManager
ambiguousId
- the document IDcomment
- the change commentpublic InputStream generatePreviewImage(String ambiguousId)
UserDashboardManager
Generates a preview image for the given task.
generatePreviewImage
in interface UserDashboardManager
ambiguousId
- the task global IDpublic InputStream generateProcessPreviewImage(String ambiguousId)
UserDashboardManager
Generates a preview image for the given process.
generateProcessPreviewImage
in interface UserDashboardManager
ambiguousId
- the process global IDpublic InputStream generateCasePreviewImage(String ambiguousId)
UserDashboardManager
Generates a preview image for the given case.
generateCasePreviewImage
in interface UserDashboardManager
ambiguousId
- the case global IDCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.