Commit ac895bc4 authored by François Agneray's avatar François Agneray

Add property public to the entity dataset

parent 666ed8ea
3.4.0
\ No newline at end of file
3.5.0
\ No newline at end of file
......@@ -65,6 +65,7 @@ final class DatasetAction extends AbstractAction
'vo',
'data_path',
'config',
'public',
'id_dataset_family'
);
foreach ($fields as $a) {
......@@ -117,6 +118,7 @@ final class DatasetAction extends AbstractAction
$dataset->setVo($parsedBody['vo']);
$dataset->setDataPath($parsedBody['data_path']);
$dataset->setConfig($parsedBody['config']);
$dataset->setPublic($parsedBody['public']);
$this->em->flush();
}
}
......@@ -84,6 +84,7 @@ final class DatasetListAction extends AbstractAction
'vo',
'data_path',
'config',
'public',
'project_name'
);
foreach ($fields as $a) {
......@@ -136,6 +137,7 @@ final class DatasetListAction extends AbstractAction
$dataset->setVo($parsedBody['vo']);
$dataset->setDataPath($parsedBody['data_path']);
$dataset->setConfig($parsedBody['config']);
$dataset->setPublic($parsedBody['public']);
$dataset->setProject($project);
$dataset->setDatasetFamily($datasetFamily);
......
......@@ -83,6 +83,13 @@ class Dataset implements \JsonSerializable
* @Column(type="json", nullable=true)
*/
protected $config;
/**
* @var bool
*
* @Column(type="boolean", nullable=false)
*/
protected $public;
/**
* @var Anis\Entity\Project
......@@ -198,6 +205,16 @@ class Dataset implements \JsonSerializable
$this->config = $config;
}
public function getPublic()
{
return $this->public;
}
public function setPublic($public)
{
$this->public = $public;
}
public function getProject()
{
return $this->project;
......@@ -235,6 +252,7 @@ class Dataset implements \JsonSerializable
'vo' => $this->getVo(),
'data_path' => $this->getDataPath(),
'config' => $this->getConfig(),
'public' => $this->getPublic(),
'project_name' => $this->getProject()->getName(),
'id_dataset_family' => $this->getDatasetFamily()->getId()
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment