|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.outerj.daisy.tools.importexport.export.BaseExportListener
public abstract class BaseExportListener
Provides some base functionality that is likely useful for different ExportListener implementations.
| Nested Class Summary | |
|---|---|
static class |
BaseExportListener.FailureInfo
|
static class |
BaseExportListener.ItemFailureInfo
Failure info for non-documents. |
| Constructor Summary | |
|---|---|
BaseExportListener()
|
|
| Method Summary | |
|---|---|
void |
failed(ImpExpVariantKey variantKey,
Throwable e)
Called when exporting a document fails. |
void |
failedItem(String itemType,
String itemName,
Throwable e)
|
void |
generateSax(ContentHandler contentHandler)
|
List |
getBrokenLinks()
Gets list of broken links. |
List<BaseExportListener.FailureInfo> |
getFailed()
|
List<BaseExportListener.ItemFailureInfo> |
getFailedItems()
|
Set<ImpExpVariantKey> |
getLinks()
|
List<ImpExpVariantKey> |
getSkippedBecauseNoLiveVersion()
|
List<ImpExpVariantKey> |
getSkippedBecauseRetired()
|
List<ImpExpVariantKey> |
getSucceeded()
|
void |
hasLink(ImpExpVariantKey sourceVariantKeyk,
ImpExpVariantKey targetVariantKey,
LinkType linkType)
Reports that a document contains a link to another document. |
void |
skippedBecauseNoLiveVersion(ImpExpVariantKey variantKey)
|
void |
skippedBecauseRetired(ImpExpVariantKey variantKey)
|
void |
success(ImpExpVariantKey variantKey)
Called when the export of a document succeeded. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.outerj.daisy.tools.importexport.export.ExportListener |
|---|
endDocumentProgress, info, isInterrupted, startDocumentProgress, updateDocumentProgress |
| Constructor Detail |
|---|
public BaseExportListener()
| Method Detail |
|---|
public void failed(ImpExpVariantKey variantKey,
Throwable e)
throws Exception
ExportListenerThe implementation can decide to simply log this or throw an exception in order to stop the whole export.
failed in interface ExportListenerExceptionpublic void success(ImpExpVariantKey variantKey)
ExportListener
success in interface ExportListenerpublic void skippedBecauseRetired(ImpExpVariantKey variantKey)
skippedBecauseRetired in interface ExportListenerpublic void skippedBecauseNoLiveVersion(ImpExpVariantKey variantKey)
skippedBecauseNoLiveVersion in interface ExportListener
public void hasLink(ImpExpVariantKey sourceVariantKeyk,
ImpExpVariantKey targetVariantKey,
LinkType linkType)
ExportListener
hasLink in interface ExportListenerpublic Set<ImpExpVariantKey> getLinks()
public List<ImpExpVariantKey> getSucceeded()
public List<BaseExportListener.FailureInfo> getFailed()
public List<ImpExpVariantKey> getSkippedBecauseRetired()
public List<ImpExpVariantKey> getSkippedBecauseNoLiveVersion()
public List getBrokenLinks()
public void failedItem(String itemType,
String itemName,
Throwable e)
failedItem in interface ExportListenerpublic List<BaseExportListener.ItemFailureInfo> getFailedItems()
public void generateSax(ContentHandler contentHandler)
throws SAXException
SAXException
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||