it.eng.spagobi.tools.massiveExport.work
Class MassiveExportWork
java.lang.Object
it.eng.spagobi.tools.massiveExport.work.MassiveExportWork
- All Implemented Interfaces:
- commonj.work.Work, java.lang.Runnable
public class MassiveExportWork
- extends java.lang.Object
- implements commonj.work.Work
Thread of massive export; cycle on documetns to be exported calling engine for export
, meanwhile keeps updated the record of the export, finally create the zip and store it in temporary table
- Author:
- gavardi
Constructor Summary |
MassiveExportWork(java.util.List<BIObject> documents,
it.eng.spago.security.IEngUserProfile userProfile,
LowFunctionality functionality,
java.lang.Integer progressThreadId,
java.lang.String zipKey,
boolean splittingFilter,
java.lang.String outputMIMEType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREPARED
public static final java.lang.String PREPARED
- See Also:
- Constant Field Values
STARTED
public static final java.lang.String STARTED
- See Also:
- Constant Field Values
DOWNLOAD
public static final java.lang.String DOWNLOAD
- See Also:
- Constant Field Values
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
OUTPUT_XLS
public static final java.lang.String OUTPUT_XLS
- See Also:
- Constant Field Values
OUTPUT_XLSX
public static final java.lang.String OUTPUT_XLSX
- See Also:
- Constant Field Values
MassiveExportWork
public MassiveExportWork(java.util.List<BIObject> documents,
it.eng.spago.security.IEngUserProfile userProfile,
LowFunctionality functionality,
java.lang.Integer progressThreadId,
java.lang.String zipKey,
boolean splittingFilter,
java.lang.String outputMIMEType)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
createZipFile
public java.io.File createZipFile(java.util.List<java.io.File> filesToZip,
java.util.Map<java.lang.String,java.lang.String> randomNamesToName)
throws java.util.zip.ZipException,
java.io.IOException
- Zip file placed under resource_directory/massiveExport/functionalityCd
- Parameters:
filesToZip
- randomNamesToName
-
- Returns:
-
- Throws:
java.util.zip.ZipException
java.io.IOException
createErrorFile
public java.io.File createErrorFile(BIObject biObj,
java.lang.Throwable error,
java.util.Map randomNamesToName)
isDaemon
public boolean isDaemon()
- Specified by:
isDaemon
in interface commonj.work.Work
release
public void release()
- Specified by:
release
in interface commonj.work.Work
getBiObjects
public java.util.List getBiObjects()
setBiObjects
public void setBiObjects(java.util.List biObjects)
isCompleteWithoutError
public boolean isCompleteWithoutError()
- Checks if is complete without error.
- Returns:
- true, if is complete without error
getProfile
public it.eng.spago.security.IEngUserProfile getProfile()
setProfile
public void setProfile(it.eng.spago.security.IEngUserProfile profile)
deleteDBRowInCaseOfError
public void deleteDBRowInCaseOfError(IProgressThreadDAO threadDAO,
java.lang.Integer progressThreadId)