@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)
UserDashboardManagerActivates a dashboard item.
activate in interface UserDashboardManagerambiguousId - the work object global IDcomment - the change commentpublic void completeTask(String ambiguousId, Map<String,String> values, String comment)
UserDashboardManagerCompletes a task.
completeTask in interface UserDashboardManagerambiguousId - the task global IDvalues - variables to set when tasks is completedcomment - the change commentpublic FrontendObject saveAndCompleteTask(FrontendObject frontendObject, String comment) throws Exception
UserDashboardManagerSaves changes and completes a task.
saveAndCompleteTask in interface UserDashboardManagerfrontendObject - 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)
UserDashboardManagerArchives the given work object.
archive in interface UserDashboardManagerarchiveType - 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
UserDashboardManagerCreates a new query work object.
createQuery in interface UserDashboardManagerfrontendObject - the frontend object to be createdcomment - the change commentExceptionpublic void updateDocumentPlaceholders(String ambiguousId, String comment)
UserDashboardManagerUpdates the document placeholders in a given document.
updateDocumentPlaceholders in interface UserDashboardManagerambiguousId - the document IDcomment - the change commentpublic InputStream generatePreviewImage(String ambiguousId)
UserDashboardManagerGenerates a preview image for the given task.
generatePreviewImage in interface UserDashboardManagerambiguousId - the task global IDpublic InputStream generateProcessPreviewImage(String ambiguousId)
UserDashboardManagerGenerates a preview image for the given process.
generateProcessPreviewImage in interface UserDashboardManagerambiguousId - the process global IDpublic InputStream generateCasePreviewImage(String ambiguousId)
UserDashboardManagerGenerates a preview image for the given case.
generateCasePreviewImage in interface UserDashboardManagerambiguousId - the case global IDCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.