Class OperationFile
- java.lang.Object
-
- de.uplanet.lucy.server.dataobjects.impl.OperationFile
-
- All Implemented Interfaces:
de.uplanet.lucy.server.file.action.IOperationFile
public final class OperationFile extends Object implements de.uplanet.lucy.server.file.action.IOperationFile
-
-
Constructor Summary
Constructors Constructor Description OperationFile(IOperationFileItem p_operationFileItem, boolean p_bFileMove, boolean p_bDeleteMovedFileOnRollback)
OperationFile(de.uplanet.lucy.server.file.action.FILEITEM_OPERATION p_operation, String p_strId, IOperationFileItem p_operationFileItem, boolean p_bFileMove, boolean p_bDeleteMovedFileOnRollback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
File
getFile()
String
getFileName()
String
getId()
de.uplanet.lucy.server.file.action.FILEITEM_OPERATION
getOperation()
boolean
shouldUploadFileDeleteOnRollback()
boolean
shouldUploadFileMove()
-
-
-
Constructor Detail
-
OperationFile
public OperationFile(IOperationFileItem p_operationFileItem, boolean p_bFileMove, boolean p_bDeleteMovedFileOnRollback)
- Parameters:
p_operationFileItem
- The upload file (notnull
).p_bFileMove
-true
if the file should be moved otherwise the source file should be copied.p_bDeleteMovedFileOnRollback
-true
the moved file will deleted event if a transaction rollback is called.
-
OperationFile
public OperationFile(de.uplanet.lucy.server.file.action.FILEITEM_OPERATION p_operation, String p_strId, IOperationFileItem p_operationFileItem, boolean p_bFileMove, boolean p_bDeleteMovedFileOnRollback)
- Parameters:
p_operation
- mode The file operation mode.p_strId
- The file identifier (could benull
).p_operationFileItem
- The operation file itemp_bFileMove
-true
if the file should be moved otherwise the source file should be copied.p_bDeleteMovedFileOnRollback
-true
the moved file will deleted event if a transaction rollback is called.
-
-
Method Detail
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getFile
public File getFile()
- Specified by:
getFile
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getId
public String getId()
- Specified by:
getId
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getOperation
public de.uplanet.lucy.server.file.action.FILEITEM_OPERATION getOperation()
- Specified by:
getOperation
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
shouldUploadFileDeleteOnRollback
public boolean shouldUploadFileDeleteOnRollback()
- Specified by:
shouldUploadFileDeleteOnRollback
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
shouldUploadFileMove
public boolean shouldUploadFileMove()
- Specified by:
shouldUploadFileMove
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
-