|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.staticexport.A_CmsStaticExportHandler
org.opencms.staticexport.CmsAfterPublishStaticExportHandler
public class CmsAfterPublishStaticExportHandler
Implementation for the interface.I_CmsStaticExportHandler
This handler exports all changes immediately after something is published.
I_CmsStaticExportHandler| Field Summary |
|---|
| Fields inherited from class org.opencms.staticexport.A_CmsStaticExportHandler |
|---|
m_busy |
| Constructor Summary | |
|---|---|
CmsAfterPublishStaticExportHandler()
|
|
| Method Summary | |
|---|---|
void |
doExportAfterPublish(List resources,
I_CmsReport report)
Does the actual static export. |
List |
getAllResources(CmsObject cms)
Gets all resources within the folder tree. |
protected List |
getRelatedFilesToPurge(String exportFileName,
String vfsName)
Returns a list of related files to purge. |
void |
performEventPublishProject(CmsUUID publishHistoryId,
I_CmsReport report)
Scrubs files from the export folder that might have been changed. |
| Methods inherited from class org.opencms.staticexport.A_CmsStaticExportHandler |
|---|
getSiblingsList, isBusy, purgeFile, scrubExportFolders |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.staticexport.I_CmsStaticExportHandler |
|---|
isBusy |
| Constructor Detail |
|---|
public CmsAfterPublishStaticExportHandler()
| Method Detail |
|---|
public void doExportAfterPublish(List resources,
I_CmsReport report)
throws CmsException,
IOException,
ServletException
resources - a list of CmsPublishedREsources to start the static export withreport - an I_CmsReport instance to print output message, or null to write messages to the log file
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
public List getAllResources(CmsObject cms)
throws CmsException
Since the long min and max value do not work with the sql timestamp function in the driver, we must calculate some different, but usable start and endtime values first.
cms - the cms context
CmsException - if something goes wrong
public void performEventPublishProject(CmsUUID publishHistoryId,
I_CmsReport report)
I_CmsStaticExportHandler
performEventPublishProject in interface I_CmsStaticExportHandlerperformEventPublishProject in class A_CmsStaticExportHandlerpublishHistoryId - the CmsUUID of the published projectreport - an I_CmsReport instance to print output message,
or null to write messages to the log fileI_CmsStaticExportHandler.performEventPublishProject(org.opencms.util.CmsUUID, org.opencms.report.I_CmsReport)
protected List getRelatedFilesToPurge(String exportFileName,
String vfsName)
A_CmsStaticExportHandler
getRelatedFilesToPurge in class A_CmsStaticExportHandlerexportFileName - the previous exported rfs filename (already purged)vfsName - the vfs name of the resource (to be used to compute more sofisticated sets of related files to purge
A_CmsStaticExportHandler.getRelatedFilesToPurge(java.lang.String, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||