org.openengsb.ui.common.taskbox
Class WebTaskboxServiceImpl

java.lang.Object
  extended by org.openengsb.ui.common.taskbox.WebTaskboxServiceImpl
All Implemented Interfaces:
TaskboxService, WebTaskboxService

public class WebTaskboxServiceImpl
extends java.lang.Object
implements TaskboxService, WebTaskboxService


Constructor Summary
WebTaskboxServiceImpl()
           
 
Method Summary
 void finishTask(Task task)
           
 java.util.List<Task> getOpenTasks()
           
 org.apache.wicket.markup.html.panel.Panel getOverviewPanel()
          Returns a Wicket panel which displays all open tasks.
 Task getTaskForId(java.lang.String id)
           
 org.apache.wicket.markup.html.panel.Panel getTaskPanel(Task task, java.lang.String wicketPanelId)
          Gets the Wicket panel for the task type of the passed task.
 java.util.List<Task> getTasksForExample(Task example)
           
 java.util.List<Task> getTasksForProcessId(java.lang.String id)
           
 void init()
           
 void registerTaskPanel(java.lang.String taskType, java.lang.Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass)
          Registers a custom Wicket panel for a certain task type.
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setPersistenceManager(PersistenceManager persistenceManager)
           
 void setTaskboxService(TaskboxService taskboxService)
           
 void updateTask(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTaskboxServiceImpl

public WebTaskboxServiceImpl()
Method Detail

init

public void init()

getOverviewPanel

public org.apache.wicket.markup.html.panel.Panel getOverviewPanel()
Description copied from interface: WebTaskboxService
Returns a Wicket panel which displays all open tasks. It provides filtering and sorting capabilities. This panel has componentId="OverviewPanel" and style attribute class="OverviewPanel".

Specified by:
getOverviewPanel in interface WebTaskboxService

getTaskPanel

public org.apache.wicket.markup.html.panel.Panel getTaskPanel(Task task,
                                                              java.lang.String wicketPanelId)
                                                       throws TaskboxException
Description copied from interface: WebTaskboxService
Gets the Wicket panel for the task type of the passed task. If a custom panel was registered for this type before it gets returned, otherwise it falls back to the default task panel providing a generic user interface.

Specified by:
getTaskPanel in interface WebTaskboxService
Throws:
TaskboxException - when the creation of the tasks panel fails

registerTaskPanel

public void registerTaskPanel(java.lang.String taskType,
                              java.lang.Class<? extends org.apache.wicket.markup.html.panel.Panel> panelClass)
                       throws TaskboxException
Description copied from interface: WebTaskboxService
Registers a custom Wicket panel for a certain task type. Any older registration for this type gets overwritten. The panel is provided via its class and needs a constructor with the ID as string for the first parameter and the Task as second.

Specified by:
registerTaskPanel in interface WebTaskboxService
Throws:
TaskboxException - when the panel could not be registered

getOpenTasks

public java.util.List<Task> getOpenTasks()
Specified by:
getOpenTasks in interface TaskboxService

getTasksForExample

public java.util.List<Task> getTasksForExample(Task example)
Specified by:
getTasksForExample in interface TaskboxService

getTaskForId

public Task getTaskForId(java.lang.String id)
                  throws TaskboxException
Specified by:
getTaskForId in interface TaskboxService
Throws:
TaskboxException

getTasksForProcessId

public java.util.List<Task> getTasksForProcessId(java.lang.String id)
Specified by:
getTasksForProcessId in interface TaskboxService

finishTask

public void finishTask(Task task)
                throws WorkflowException
Specified by:
finishTask in interface TaskboxService
Throws:
WorkflowException

updateTask

public void updateTask(Task task)
                throws WorkflowException
Specified by:
updateTask in interface TaskboxService
Throws:
WorkflowException

setTaskboxService

public void setTaskboxService(TaskboxService taskboxService)

setPersistenceManager

public void setPersistenceManager(PersistenceManager persistenceManager)

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)


Copyright © 2009-2011. All Rights Reserved.