org.opencms.staticexport
Class CmsAfterPublishStaticExportHandler

java.lang.Object
  extended byorg.opencms.staticexport.CmsAfterPublishStaticExportHandler
All Implemented Interfaces:
I_CmsStaticExportHandler

public class CmsAfterPublishStaticExportHandler
extends Object
implements I_CmsStaticExportHandler

Implementation for the I_CmsStaticExportHandler interface.

This handler exports all changes immediately after something is published.

Since:
6.0.0
Version:
$Revision: 1.13 $
Author:
Michael Moossen
See Also:
I_CmsStaticExportHandler

Field Summary
protected  boolean m_busy
          Indicates if this content handler is busy.
 
Constructor Summary
CmsAfterPublishStaticExportHandler()
           
 
Method Summary
 void doExportAfterPublish(List resources, I_CmsReport report)
          Does the actual static export.
 boolean isBusy()
          Returns true if this static export handler is currently performing a static export operation.
 void performEventPublishProject(CmsUUID publishHistoryId, I_CmsReport report)
          Scrubs files from the export folder that might have been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_busy

protected boolean m_busy
Indicates if this content handler is busy.

Constructor Detail

CmsAfterPublishStaticExportHandler

public CmsAfterPublishStaticExportHandler()
Method Detail

doExportAfterPublish

public void doExportAfterPublish(List resources,
                                 I_CmsReport report)
                          throws CmsException,
                                 IOException,
                                 ServletException
Does the actual static export.

Parameters:
resources - a list of CmsPublishedREsources to start the static export with
report - an I_CmsReport instance to print output message, or null to write messages to the log file
Throws:
CmsException - in case of errors accessing the VFS
IOException - in case of erros writing to the export output stream
ServletException - in case of errors accessing the servlet

isBusy

public boolean isBusy()
Description copied from interface: I_CmsStaticExportHandler
Returns true if this static export handler is currently performing a static export operation.

Specified by:
isBusy in interface I_CmsStaticExportHandler
Returns:
true if this static export handler is currently performing a static export operation
See Also:
I_CmsStaticExportHandler.isBusy()

performEventPublishProject

public void performEventPublishProject(CmsUUID publishHistoryId,
                                       I_CmsReport report)
Description copied from interface: I_CmsStaticExportHandler
Scrubs files from the export folder that might have been changed.

Specified by:
performEventPublishProject in interface I_CmsStaticExportHandler
Parameters:
publishHistoryId - the CmsUUID of the published project
report - an I_CmsReport instance to print output message, or null to write messages to the log file
See Also:
I_CmsStaticExportHandler.performEventPublishProject(org.opencms.util.CmsUUID, org.opencms.report.I_CmsReport)