Package fr.becpg.repo.download
Class BeCPGCreateDownloadArchiveAction.SizeEstimator
java.lang.Object
fr.becpg.repo.download.BaseExporter
fr.becpg.repo.download.BeCPGCreateDownloadArchiveAction.SizeEstimator
- All Implemented Interfaces:
org.alfresco.service.cmr.view.Exporter
- Enclosing class:
- BeCPGCreateDownloadArchiveAction
-
Field Summary
FieldsFields inherited from class fr.becpg.repo.download.BaseExporter
nodeService -
Constructor Summary
ConstructorsConstructorDescriptionSizeEstimator(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService, org.alfresco.service.cmr.repository.NodeService nodeService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcontentImpl(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.longlonggetSize()Methods inherited from class fr.becpg.repo.download.BaseExporter
content, end, endACL, endAspect, endAspects, endAssoc, endAssocs, endNamespace, endNode, endProperties, endProperty, endReference, endValueCollection, endValueMLText, permission, start, startACL, startAspect, startAspects, startAssoc, startAssocs, startNamespace, startNode, startProperties, startProperty, startReference, startValueCollection, startValueMLText, value, warning
-
Field Details
-
size
private long size -
fileCount
private long fileCount
-
-
Constructor Details
-
SizeEstimator
SizeEstimator(org.alfresco.service.cmr.coci.CheckOutCheckInService checkOutCheckInService, org.alfresco.service.cmr.repository.NodeService nodeService) - Parameters:
checkOutCheckInService- CheckOutCheckInServicenodeService- NodeService
-
-
Method Details
-
contentImpl
protected 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) Description copied from class:BaseExporterTemplate method for actually dealing with the content. Called by the content method, after filtering for working copies.- Specified by:
contentImplin classBaseExporter- Parameters:
nodeRef- aNodeRefobjectproperty- aQNameobjectcontent- aInputStreamobjectcontentData- aContentDataobjectindex- a int
-
getSize
public long getSize() -
getFileCount
public long getFileCount()
-