com.logicaldoc.web.admin
Class TasksRecordsManager

java.lang.Object
  extended by com.logicaldoc.web.admin.TasksRecordsManager
All Implemented Interfaces:
com.icesoft.faces.async.render.Renderable, com.icesoft.faces.context.DisposableBean, com.logicaldoc.core.task.TaskListener, java.util.EventListener

public class TasksRecordsManager
extends java.lang.Object
implements com.icesoft.faces.async.render.Renderable, com.icesoft.faces.context.DisposableBean, com.logicaldoc.core.task.TaskListener

Bean used for Tasks listing and management

Since:
3.5.0
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
TasksRecordsManager()
           
 
Method Summary
 void dispose()
          Dispose callback called due to a view closing or session invalidation/timeout
 java.lang.String editScheduling()
           
 java.lang.String getAppender()
           
 com.icesoft.faces.async.render.RenderManager getRenderManager()
           
 java.lang.String getSelectedPanel()
           
 com.icesoft.faces.webapp.xmlhttp.PersistentFacesState getState()
           
 java.util.Collection<TaskRecord> getTasks()
          Gets the collection of tasks registered in the system
 java.lang.String list()
           
 java.lang.String log()
           
 void progressChanged(long progress)
           
 void renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException renderingException)
           
 void setRenderManager(com.icesoft.faces.async.render.RenderManager renderManager)
          Sets the application render manager reference and creates a new on demand render for this session id.
 void setSelectedPanel(java.lang.String selectedPanel)
           
 java.lang.String start()
          Launches the task's execution in another thread
 void statusChanged(int status)
           
 java.lang.String stop()
          Stops the task's execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

TasksRecordsManager

public TasksRecordsManager()
Method Detail

getSelectedPanel

public java.lang.String getSelectedPanel()

setSelectedPanel

public void setSelectedPanel(java.lang.String selectedPanel)

getTasks

public java.util.Collection<TaskRecord> getTasks()
Gets the collection of tasks registered in the system


setRenderManager

public void setRenderManager(com.icesoft.faces.async.render.RenderManager renderManager)
Sets the application render manager reference and creates a new on demand render for this session id.

Parameters:
renderManager - RenderManager reference for this application. Usually called via the faces-config.xml using chaining.

getState

public com.icesoft.faces.webapp.xmlhttp.PersistentFacesState getState()
Specified by:
getState in interface com.icesoft.faces.async.render.Renderable

getAppender

public java.lang.String getAppender()

renderingException

public void renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException renderingException)
Specified by:
renderingException in interface com.icesoft.faces.async.render.Renderable

dispose

public void dispose()
             throws java.lang.Exception
Dispose callback called due to a view closing or session invalidation/timeout

Specified by:
dispose in interface com.icesoft.faces.context.DisposableBean
Throws:
java.lang.Exception

start

public java.lang.String start()
Launches the task's execution in another thread


stop

public java.lang.String stop()
Stops the task's execution


editScheduling

public java.lang.String editScheduling()

list

public java.lang.String list()

log

public java.lang.String log()

progressChanged

public void progressChanged(long progress)
Specified by:
progressChanged in interface com.logicaldoc.core.task.TaskListener

statusChanged

public void statusChanged(int status)
Specified by:
statusChanged in interface com.logicaldoc.core.task.TaskListener

getRenderManager

public com.icesoft.faces.async.render.RenderManager getRenderManager()


Copyright © 2008-2010 Logical Objects. All Rights Reserved.