org.jecars
Class CARS_ExpireManager

java.lang.Object
  extended by org.jecars.tools.CARS_DefaultToolInterface
      extended by org.jecars.CARS_ExpireManager
All Implemented Interfaces:
CARS_ToolInstanceListener, CARS_ToolInterface

public class CARS_ExpireManager
extends CARS_DefaultToolInterface

Version:
$Id: CARS_ExpireManager.java,v 1.8 2008/02/06 12:28:11 weertj Exp $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jecars.tools.CARS_DefaultToolInterface
CARS_DefaultToolInterface.ToolThread
 
Field Summary
 
Fields inherited from class org.jecars.tools.CARS_DefaultToolInterface
gLog, NEWTOOL_FOLDER
 
Fields inherited from interface org.jecars.tools.CARS_ToolInterface
STATE_CLOSED, STATE_CLOSED_ABNORMALCOMPLETED, STATE_CLOSED_ABNORMALCOMPLETED_ABORTED, STATE_CLOSED_ABNORMALCOMPLETED_TERMINATED, STATE_CLOSED_COMPLETED, STATE_NONE, STATE_OPEN, STATE_OPEN_ABORTING, STATE_OPEN_NOTRUNNING, STATE_OPEN_NOTRUNNING_SUSPENDED, STATE_OPEN_RUNNING, STATE_OPEN_RUNNING_INIT, STATE_OPEN_RUNNING_INPUT, STATE_OPEN_RUNNING_OUTPUT, STATE_OPEN_RUNNING_PARAMETERS, STATE_PAUSED, STATE_UNKNOWN, STATEREQUEST_ABORT, STATEREQUEST_PAUSE, STATEREQUEST_START, STATEREQUEST_STOP
 
Constructor Summary
CARS_ExpireManager()
          Creates a new instance of CARS_ExpireManager
 
Method Summary
 javax.jcr.NodeIterator getExpireNodes(javax.jcr.query.QueryManager pQM, java.util.Calendar pTime)
          getExpireNodes
 void purge()
          Purge, search for objects which can be expired
 void setSession(javax.jcr.Session pSession)
           
 void shutdown()
          shutdown the expire manager
protected  void toolExit()
          Superclass must implement this method to actually finish the tool
protected  void toolInit()
          Superclass must implement this method to actually init the tool
protected  void toolRun()
          Superclass must implement this method to actually start the tool
 
Methods inherited from class org.jecars.tools.CARS_DefaultToolInterface
addConfigNode, addInput, addInput, addInstanceListener, addOutput, clearOutputs, generalException, getAsObject, getConfigNode, getInputs, getInputsAsObject, getInstanceListeners, getMain, getName, getOutputs, getOutputsAsObject, getParameters, getPassword, getPercCompleted, getState, getStateRequest, getTitle, getTool, getToolThread, getUsername, getUUID, initToolFolder, moveToolTo, pauseCheck, removeInstanceListener, reportMessage, reportMessage, reportOutput, reports, reportStatusMessage, reportToInstanceListeners, setCredentials, setExpireDateTool, setName, setPauseAtState, setState, setStateRequest, setTool, setUUID, stateChanged, toolInput, toolInstanceException, toolOutput, toolParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CARS_ExpireManager

public CARS_ExpireManager()
Creates a new instance of CARS_ExpireManager

Method Detail

toolInit

protected void toolInit()
                 throws java.lang.Exception
Superclass must implement this method to actually init the tool

Overrides:
toolInit in class CARS_DefaultToolInterface
Throws:
java.lang.Exception

toolRun

protected void toolRun()
                throws java.lang.Exception
Superclass must implement this method to actually start the tool

Overrides:
toolRun in class CARS_DefaultToolInterface
Throws:
java.lang.Exception

toolExit

protected void toolExit()
                 throws java.lang.Exception
Superclass must implement this method to actually finish the tool

Overrides:
toolExit in class CARS_DefaultToolInterface
Throws:
java.lang.Exception

shutdown

public void shutdown()
shutdown the expire manager


setSession

public void setSession(javax.jcr.Session pSession)

getExpireNodes

public javax.jcr.NodeIterator getExpireNodes(javax.jcr.query.QueryManager pQM,
                                             java.util.Calendar pTime)
                                      throws javax.jcr.query.InvalidQueryException,
                                             javax.jcr.RepositoryException
getExpireNodes

Parameters:
pQM -
pTime -
Returns:
Throws:
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException

purge

public void purge()
           throws java.lang.Exception
Purge, search for objects which can be expired

Throws:
java.lang.Exception