2020-11-19 17:38:56 +01:00
|
|
|
package org.gcube.application.geoportal.service.model.internal.rest;
|
|
|
|
|
2020-11-20 17:03:42 +01:00
|
|
|
import java.util.ArrayList;
|
2020-11-19 17:38:56 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2020-11-20 17:03:42 +01:00
|
|
|
import javax.xml.bind.annotation.XmlElement;
|
|
|
|
import javax.xml.bind.annotation.XmlElements;
|
2020-11-19 17:38:56 +01:00
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
2020-11-20 17:03:42 +01:00
|
|
|
import org.gcube.application.geoportal.model.concessioni.LayerConcessione;
|
|
|
|
import org.gcube.application.geoportal.model.concessioni.RelazioneScavo;
|
2020-11-19 17:38:56 +01:00
|
|
|
import org.gcube.application.geoportal.model.content.AssociatedContent;
|
2020-11-20 17:03:42 +01:00
|
|
|
import org.gcube.application.geoportal.model.content.OtherContent;
|
|
|
|
import org.gcube.application.geoportal.model.content.UploadedImage;
|
|
|
|
import org.gcube.application.geoportal.model.gis.SDILayerDescriptor;
|
2020-11-19 17:38:56 +01:00
|
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
@XmlRootElement
|
|
|
|
@Data
|
|
|
|
public class AddSectionToConcessioneRequest {
|
|
|
|
|
|
|
|
public static enum Section{
|
|
|
|
RELAZIONE,UPLOADED_IMG,PIANTA,POSIZIONAMENTO,OTHER
|
|
|
|
}
|
|
|
|
|
|
|
|
@XmlRootElement
|
|
|
|
@Data
|
|
|
|
public static class SHUBFileDescriptor {
|
|
|
|
private String filename;
|
|
|
|
private String shubID;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Section section;
|
2020-11-20 17:03:42 +01:00
|
|
|
@XmlElements({
|
|
|
|
@XmlElement(type=OtherContent.class),
|
|
|
|
@XmlElement(type=RelazioneScavo.class),
|
|
|
|
@XmlElement(type=SDILayerDescriptor.class),
|
|
|
|
@XmlElement(type=LayerConcessione.class),
|
|
|
|
@XmlElement(type=UploadedImage.class),
|
|
|
|
})
|
2020-11-19 17:38:56 +01:00
|
|
|
private AssociatedContent toRegister;
|
2020-11-20 17:03:42 +01:00
|
|
|
private List<SHUBFileDescriptor> streams=new ArrayList<AddSectionToConcessioneRequest.SHUBFileDescriptor>();
|
2020-11-19 17:38:56 +01:00
|
|
|
|
|
|
|
}
|