Concessione : Fixed abstract management

This commit is contained in:
Fabio Sinibaldi 2021-09-22 17:46:46 +02:00
parent eb2b549e0f
commit 577ee3d831
2 changed files with 7 additions and 0 deletions

View File

@ -405,6 +405,11 @@ public class ConcessioniMongoManager extends MongoManager{
sectionParent = ws .createFolder(new FolderOptions(
"relazione","Relazione di scavo : "+content.getTitolo(),base));
else if(content instanceof AbstractRelazione)
sectionParent = ws .createFolder(new FolderOptions(
"abstract_relazione","Abstract relazione di scavo : "+content.getTitolo(),base));
else if (content instanceof UploadedImage)
sectionParent = ws .createFolder(new FolderOptions(
"imgs","Immagini rappresentative : "+content.getTitolo(),base));

View File

@ -293,6 +293,8 @@ public class ConcessioniOverMongoTest extends BasicServiceTestUnit{
//Upload files
upload(storage,target,c.getMongo_id(),Paths.RELAZIONE,"relazione.pdf");
upload(storage,target,c.getMongo_id(),Paths.ABSTRACT_RELAZIONE,"relazione.pdf");
upload(storage,target,c.getMongo_id(),Paths.POSIZIONAMENTO,"pos.shp","pos.shx");
// Clash on workspaces