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