/**
  *
  * @param TemporaryFile $file
  * @return FileInfoRepresentation
  */
 private function buildFileRepresentation(TemporaryFile $file)
 {
     $reference = new FileInfoRepresentation();
     return $reference->build($file->getId(), $file->getCreatorId(), $file->getDescription(), $file->getName(), $file->getSize(), $file->getType(), null, null);
 }
 public function removeTemporaryFile(Tracker_Artifact_Attachment_TemporaryFile $file)
 {
     $this->removeTemporaryFileInDB($file->getId());
     $this->removeTemporaryFileFomFileSystem($file);
 }