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
ConstructorDescriptionOperationFile
(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
-
Constructor Details
-
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 Details
-
getFileName
- Specified by:
getFileName
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getContentType
- Specified by:
getContentType
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getFile
- Specified by:
getFile
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getId
- Specified by:
getId
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
getNewId
- Specified by:
getNewId
in interfacede.uplanet.lucy.server.file.action.IOperationFile
-
setNewId
- Specified by:
setNewId
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
-