Class ImageAndDocumentService
- java.lang.Object
-
- de.narimo.georepo.server.api.documents.ImageAndDocumentService
-
public class ImageAndDocumentService extends Object
-
-
Constructor Summary
Constructors Constructor Description ImageAndDocumentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptImageOrDocument(javax.servlet.ServletContext ctx, int layerId, int gfid, int diffImageId, String workspace, DocumentType documentType)intaddImageOrDocument(javax.servlet.ServletContext ctx, de.narimo.commons.dto.geometa.User user, String workspace, InputStream fileInputStream, String filename, int layerId, int gfid, DocumentType documentType)byte[]getFeatureImageOrDocument(javax.servlet.ServletContext ctx, String workspace, int layerId, int gfid, String filename, DocumentType documentType)List<String>getFeatureImages(int layerId, int gfid)List<FeatureDocument>getFeatureImagesOrDocuments(de.narimo.commons.dto.geometa.User user, String workspace, int layerId, int gfid, DocumentType documentType)StringgetFileExtension(String filename)
-
-
-
Method Detail
-
getFeatureImages
public List<String> getFeatureImages(int layerId, int gfid) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getFeatureImagesOrDocuments
public List<FeatureDocument> getFeatureImagesOrDocuments(de.narimo.commons.dto.geometa.User user, String workspace, int layerId, int gfid, DocumentType documentType) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getFeatureImageOrDocument
public byte[] getFeatureImageOrDocument(javax.servlet.ServletContext ctx, String workspace, int layerId, int gfid, String filename, DocumentType documentType) throws IOException, IIOException, SQLException- Throws:
IOExceptionIIOExceptionSQLException
-
addImageOrDocument
public int addImageOrDocument(javax.servlet.ServletContext ctx, de.narimo.commons.dto.geometa.User user, String workspace, InputStream fileInputStream, String filename, int layerId, int gfid, DocumentType documentType) throws IOException, SQLException- Throws:
IOExceptionSQLException
-
acceptImageOrDocument
public void acceptImageOrDocument(javax.servlet.ServletContext ctx, int layerId, int gfid, int diffImageId, String workspace, DocumentType documentType) throws IOException- Throws:
IOException
-
-