Package fr.becpg.repo.download
Class AbstractDownloadExporter
java.lang.Object
fr.becpg.repo.download.AbstractDownloadExporter
- Direct Known Subclasses:
AbstractSearchDownloadExporter,ExcelDataListDownloadExporter
Abstract AbstractDownloadExporter class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.alfresco.service.cmr.repository.NodeRefprotected org.alfresco.repo.download.DownloadStorageprivate longprivate longprivate static org.apache.commons.logging.Logprivate intprotected Fileprotected org.alfresco.repo.transaction.RetryingTransactionHelperprotected org.alfresco.repo.download.DownloadStatusUpdateService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDownloadExporter(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper, org.alfresco.repo.download.DownloadStatusUpdateService updateService, org.alfresco.repo.download.DownloadStorage downloadStorage, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef, Long nbOfLines) Constructor for ExcelSearchDownloadExporter. -
Method Summary
Modifier and TypeMethodDescriptionlongGetter for the fieldfileCount.longGetter for the fieldfilesAddedCount.intgetNextSequenceNumber.longgetNextFilesAddedCount.voidsetTempFile(File tempFile) Setter for the fieldtempFile.voidupdateStatus.
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
downloadNodeRef
private org.alfresco.service.cmr.repository.NodeRef downloadNodeRef -
sequenceNumber
private int sequenceNumber -
filesAddedCount
private long filesAddedCount -
fileCount
private long fileCount -
transactionHelper
protected org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper -
downloadStorage
protected org.alfresco.repo.download.DownloadStorage downloadStorage -
updateService
protected org.alfresco.repo.download.DownloadStatusUpdateService updateService -
tempFile
-
-
Constructor Details
-
AbstractDownloadExporter
protected AbstractDownloadExporter(org.alfresco.repo.transaction.RetryingTransactionHelper transactionHelper, org.alfresco.repo.download.DownloadStatusUpdateService updateService, org.alfresco.repo.download.DownloadStorage downloadStorage, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef, Long nbOfLines) Constructor for ExcelSearchDownloadExporter.
- Parameters:
transactionHelper- aRetryingTransactionHelperobject.updateService- aDownloadStatusUpdateServiceobject.downloadStorage- aDownloadStorageobject.downloadNodeRef- aNodeRefobject.nbOfLines- aLongobject.
-
-
Method Details
-
getFilesAddedCount
public long getFilesAddedCount()Getter for the field
filesAddedCount.- Returns:
- a long.
-
getFileCount
public long getFileCount()Getter for the field
fileCount.- Returns:
- a long.
-
updateStatus
public void updateStatus()updateStatus.
-
getNextSequenceNumber
public int getNextSequenceNumber()getNextSequenceNumber.
- Returns:
- a int.
-
incFilesAddedCount
public long incFilesAddedCount()getNextFilesAddedCount.
- Returns:
- a int.
-
setTempFile
Setter for the field
tempFile.- Parameters:
tempFile- aFileobject
-