feat(documents) : bouton reload explorateur + liaison d'un fichier du partage SMB à un ticket
This commit is contained in:
@@ -53,10 +53,18 @@ class TaskDocument
|
||||
#[Groups(['task_document:read', 'task:read'])]
|
||||
private ?string $originalName = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
#[Groups(['task_document:read', 'task:read'])]
|
||||
private ?string $fileName = null;
|
||||
|
||||
/**
|
||||
* Chemin relatif sur le partage SMB lorsque le document est un lien vers un fichier du partage
|
||||
* (au lieu d'un fichier uploadé stocké sur disque). Mutuellement exclusif avec fileName.
|
||||
*/
|
||||
#[ORM\Column(length: 1024, nullable: true)]
|
||||
#[Groups(['task_document:read', 'task:read'])]
|
||||
private ?string $sharePath = null;
|
||||
|
||||
#[ORM\Column(length: 100)]
|
||||
#[Groups(['task_document:read', 'task:read'])]
|
||||
private ?string $mimeType = null;
|
||||
@@ -108,13 +116,30 @@ class TaskDocument
|
||||
return $this->fileName;
|
||||
}
|
||||
|
||||
public function setFileName(string $fileName): static
|
||||
public function setFileName(?string $fileName): static
|
||||
{
|
||||
$this->fileName = $fileName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSharePath(): ?string
|
||||
{
|
||||
return $this->sharePath;
|
||||
}
|
||||
|
||||
public function setSharePath(?string $sharePath): static
|
||||
{
|
||||
$this->sharePath = $sharePath;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isShareLink(): bool
|
||||
{
|
||||
return null !== $this->sharePath;
|
||||
}
|
||||
|
||||
public function getMimeType(): ?string
|
||||
{
|
||||
return $this->mimeType;
|
||||
|
||||
Reference in New Issue
Block a user