| Modifier and Type | Field and Description |
|---|---|
protected NodeService |
nodeService |
protected org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream |
zipStream |
| Constructor and Description |
|---|
ZipDownloadExporter(File zipFile,
CheckOutCheckInService checkOutCheckInService,
NodeService nodeService,
RetryingTransactionHelper transactionHelper,
DownloadStatusUpdateService updateService,
DownloadStorage downloadStorage,
NodeRef downloadNodeRef,
long total,
long totalFileCount)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
void |
content(NodeRef nodeRef,
QName property,
InputStream content,
ContentData contentData,
int index)
Export content stream property value
|
void |
contentImpl(NodeRef nodeRef,
QName property,
InputStream content,
ContentData contentData,
int index)
Template method for actually dealing with the content.
|
void |
end()
End export
|
void |
endACL(NodeRef nodeRef)
End export of ACL
|
void |
endAspect(NodeRef nodeRef,
QName aspect)
End export of aspect
|
void |
endAspects(NodeRef nodeRef)
End export of aspects
|
void |
endAssoc(NodeRef nodeRef,
QName assoc)
End export of association
|
void |
endAssocs(NodeRef nodeRef)
End export of associations
|
void |
endNamespace(String prefix)
End export of namespace
|
void |
endNode(NodeRef nodeRef)
End export of node
|
void |
endProperties(NodeRef nodeRef)
End export of properties
|
void |
endProperty(NodeRef nodeRef,
QName property)
End export of property
|
void |
endReference(NodeRef nodeRef)
End export of node reference
|
void |
endValueCollection(NodeRef nodeRef,
QName property)
Export end of value collection
|
void |
endValueMLText(NodeRef nodeRef)
End export MLText
|
long |
getDone() |
long |
getFilesAdded() |
int |
getNextSequenceNumber() |
long |
getTotal() |
long |
getTotalFiles() |
void |
permission(NodeRef nodeRef,
AccessPermission permission)
Export permission
|
void |
start(ExporterContext context)
Start of Export
|
void |
startACL(NodeRef nodeRef)
Start export of ACL
|
void |
startAspect(NodeRef nodeRef,
QName aspect)
Start export of aspect
|
void |
startAspects(NodeRef nodeRef)
Start export of aspects
|
void |
startAssoc(NodeRef nodeRef,
QName assoc)
Start export of association
|
void |
startAssocs(NodeRef nodeRef)
Start export of associations
|
void |
startNamespace(String prefix,
String uri)
Start export of namespace
|
void |
startNode(NodeRef nodeRef)
Start export of node
|
void |
startProperties(NodeRef nodeRef)
Start export of properties
|
void |
startProperty(NodeRef nodeRef,
QName property)
Start export of property
|
void |
startReference(NodeRef nodeRef,
QName childName)
Start export of node reference
|
void |
startValueCollection(NodeRef nodeRef,
QName property)
Export start of value collection
|
void |
startValueMLText(NodeRef nodeRef,
Locale locale,
boolean isNull)
Start export MLText
|
void |
value(NodeRef nodeRef,
QName property,
Object value,
int index)
Export property value
|
void |
warning(String warning)
Export warning
|
protected org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipStream
protected NodeService nodeService
public ZipDownloadExporter(File zipFile, CheckOutCheckInService checkOutCheckInService, NodeService nodeService, RetryingTransactionHelper transactionHelper, DownloadStatusUpdateService updateService, DownloadStorage downloadStorage, NodeRef downloadNodeRef, long total, long totalFileCount)
zipFile - FilecheckOutCheckInService - CheckOutCheckInServicenodeService - NodeServicetransactionHelper - RetryingTransactionHelperupdateService - DownloadStatusUpdateServicedownloadStorage - DownloadStoragedownloadNodeRef - NodeReftotal - longtotalFileCount - longpublic void start(ExporterContext context)
Exporterpublic void startNode(NodeRef nodeRef)
Exporterpublic void contentImpl(NodeRef nodeRef, QName property, InputStream content, ContentData contentData, int index)
public void endNode(NodeRef nodeRef)
Exporterpublic void end()
Exporterpublic int getNextSequenceNumber()
public long getDone()
public long getTotal()
public long getFilesAdded()
public long getTotalFiles()
public void startNamespace(String prefix, String uri)
ExporterstartNamespace in interface Exporterprefix - namespace prefixuri - namespace uripublic void endNamespace(String prefix)
ExporterendNamespace in interface Exporterprefix - namespace prefixpublic void startReference(NodeRef nodeRef, QName childName)
ExporterstartReference in interface ExporternodeRef - the node referencepublic void endReference(NodeRef nodeRef)
ExporterendReference in interface ExporternodeRef - the node referencepublic void startAspects(NodeRef nodeRef)
ExporterstartAspects in interface ExporternodeRef - NodeRefpublic void startAspect(NodeRef nodeRef, QName aspect)
ExporterstartAspect in interface ExporternodeRef - the node referenceaspect - the aspectpublic void endAspect(NodeRef nodeRef, QName aspect)
Exporterpublic void endAspects(NodeRef nodeRef)
ExporterendAspects in interface ExporternodeRef - NodeRefpublic void startACL(NodeRef nodeRef)
Exporterpublic void permission(NodeRef nodeRef, AccessPermission permission)
Exporterpermission in interface ExporternodeRef - for node referencepermission - the permissionpublic void endACL(NodeRef nodeRef)
Exporterpublic void startProperties(NodeRef nodeRef)
ExporterstartProperties in interface ExporternodeRef - the node referencepublic void startProperty(NodeRef nodeRef, QName property)
ExporterstartProperty in interface ExporternodeRef - the node referenceproperty - the property namepublic void endProperty(NodeRef nodeRef, QName property)
ExporterendProperty in interface ExporternodeRef - the node referenceproperty - the property namepublic void endProperties(NodeRef nodeRef)
ExporterendProperties in interface ExporternodeRef - the node referencepublic void startValueCollection(NodeRef nodeRef, QName property)
ExporterstartValueCollection in interface ExporternodeRef - the node referenceproperty - the property namepublic void startValueMLText(NodeRef nodeRef, Locale locale, boolean isNull)
ExporterstartValueMLText in interface ExporternodeRef - the node referencelocale - LocaleisNull - booleanpublic void endValueMLText(NodeRef nodeRef)
ExporterendValueMLText in interface ExporternodeRef - NodeRefpublic void value(NodeRef nodeRef, QName property, Object value, int index)
Exporterpublic void content(NodeRef nodeRef, QName property, InputStream content, ContentData contentData, int index)
Exporterpublic void endValueCollection(NodeRef nodeRef, QName property)
ExporterendValueCollection in interface ExporternodeRef - the node referenceproperty - the property namepublic void startAssocs(NodeRef nodeRef)
ExporterstartAssocs in interface ExporternodeRef - NodeRefpublic void startAssoc(NodeRef nodeRef, QName assoc)
ExporterstartAssoc in interface ExporternodeRef - the node referenceassoc - the association namepublic void endAssoc(NodeRef nodeRef, QName assoc)
Exporterpublic void endAssocs(NodeRef nodeRef)
ExporterCopyright © 2005–2021 Alfresco Software. All rights reserved.