|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.staticexport.A_CmsStaticExportHandler
public abstract class A_CmsStaticExportHandler
Abstract base implementation for the interface.I_CmsStaticExportHandler
This class provides several util methods to be used by static export handlers.
I_CmsStaticExportHandler| Field Summary | |
|---|---|
protected boolean |
m_busy
Indicates if this content handler is busy. |
| Constructor Summary | |
|---|---|
A_CmsStaticExportHandler()
|
|
| Method Summary | |
|---|---|
protected java.util.List |
addMovedLinkSources(CmsObject cms,
java.util.List publishedResources)
Add the link sources of moved resources to the list of published resources. |
protected abstract java.util.List |
getRelatedFilesToPurge(java.lang.String exportFileName,
java.lang.String vfsName)
Returns a list of related files to purge. |
protected java.util.List |
getSiblingsList(CmsObject cms,
java.lang.String resPath)
Returns a list containing the root paths of all siblings of a resource. |
boolean |
isBusy()
Returns true if this static export handler is currently
performing a static export operation. |
abstract void |
performEventPublishProject(CmsUUID publishHistoryId,
I_CmsReport report)
Scrubs files from the export folder that might have been changed. |
protected void |
purgeFile(java.lang.String rfsFilePath,
java.lang.String vfsName)
Deletes the given file from the RFS if it exists, also deletes all parameter variations of the file. |
java.util.List |
scrubExportFolders(CmsUUID publishHistoryId)
Scrubs all files from the export folder that might have been changed, so that the export is newly created after the next request to the resource. |
protected void |
scrubResource(CmsObject cms,
CmsPublishedResource res,
java.util.Set scrubbedFolders,
java.util.Set scrubbedFiles)
Scrub a single file or folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_busy
| Constructor Detail |
|---|
public A_CmsStaticExportHandler()
| Method Detail |
|---|
public boolean isBusy()
I_CmsStaticExportHandlertrue if this static export handler is currently
performing a static export operation.
isBusy in interface I_CmsStaticExportHandlertrue if this static export handler is currently
performing a static export operationI_CmsStaticExportHandler.isBusy()
public abstract void performEventPublishProject(CmsUUID publishHistoryId,
I_CmsReport report)
I_CmsStaticExportHandler
performEventPublishProject in interface I_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)public java.util.List scrubExportFolders(CmsUUID publishHistoryId)
publishHistoryId - id of the last published project
CmsPublishedResource objects to export
protected java.util.List addMovedLinkSources(CmsObject cms,
java.util.List publishedResources)
cms - the cms contextpublishedResources - the published resources
protected abstract java.util.List getRelatedFilesToPurge(java.lang.String exportFileName,
java.lang.String vfsName)
exportFileName - 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
protected java.util.List getSiblingsList(CmsObject cms,
java.lang.String resPath)
cms - the export user contextresPath - the path of the resource to get the siblings for
protected void purgeFile(java.lang.String rfsFilePath,
java.lang.String vfsName)
rfsFilePath - the path of the RFS file to deletevfsName - the VFS name of the file to delete (required for logging)
protected void scrubResource(CmsObject cms,
CmsPublishedResource res,
java.util.Set scrubbedFolders,
java.util.Set scrubbedFiles)
cms - an export cms objectres - the resource to checkscrubbedFolders - the list of already scrubbed foldersscrubbedFiles - the list of already scrubbed files
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||