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 Details

    • OperationFile

      public OperationFile(IOperationFileItem p_operationFileItem, boolean p_bFileMove, boolean p_bDeleteMovedFileOnRollback)
      Parameters:
      p_operationFileItem - The upload file (not null).
      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 be null).
      p_operationFileItem - The operation file item
      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.
  • Method Details

    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface de.uplanet.lucy.server.file.action.IOperationFile
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface de.uplanet.lucy.server.file.action.IOperationFile
    • getFile

      public File getFile()
      Specified by:
      getFile in interface de.uplanet.lucy.server.file.action.IOperationFile
    • getId

      public String getId()
      Specified by:
      getId in interface de.uplanet.lucy.server.file.action.IOperationFile
    • getNewId

      public String getNewId()
      Specified by:
      getNewId in interface de.uplanet.lucy.server.file.action.IOperationFile
    • setNewId

      public void setNewId(String p_id)
      Specified by:
      setNewId in interface de.uplanet.lucy.server.file.action.IOperationFile
    • getOperation

      public de.uplanet.lucy.server.file.action.FILEITEM_OPERATION getOperation()
      Specified by:
      getOperation in interface de.uplanet.lucy.server.file.action.IOperationFile
    • shouldUploadFileDeleteOnRollback

      public boolean shouldUploadFileDeleteOnRollback()
      Specified by:
      shouldUploadFileDeleteOnRollback in interface de.uplanet.lucy.server.file.action.IOperationFile
    • shouldUploadFileMove

      public boolean shouldUploadFileMove()
      Specified by:
      shouldUploadFileMove in interface de.uplanet.lucy.server.file.action.IOperationFile