Package com.kheops.jmap.server
Class FormPhotoController
java.lang.Object
com.kheops.jmap.server.AbstractController
com.kheops.jmap.server.FormPhotoController
-
Field Summary
Fields inherited from class com.kheops.jmap.server.AbstractController
controllerFactory, server, userContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
createThumbnail
(byte[] data, int maxWidth, int maxHeight) static byte[]
createThumbnail
(BufferedImage bufferedImage, int maxWidth, int maxHeight) boolean
deletePhoto
(IAbstractForm form, long photoId) boolean
deletePhoto
(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) Deprecated.static FormPhotoController
getInstance
(int sessionId) Deprecated.static FormPhotoController
getInstance
(SessionUser sessionUser) Deprecated.static FormPhotoController
getInstance
(UserContext userContext) getPhoto
(IAbstractForm form, long photoId) getPhoto
(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) Deprecated.getPhotos
(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) Deprecated.getPhotos
(JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) getPhotosIds
(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) boolean
insertPhoto
(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) long
insertPhotoAndGetId
(JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) boolean
updatePhoto
(IAbstractForm form, FormPhoto document) Methods inherited from class com.kheops.jmap.server.AbstractController
getNextSequenceValue, getSystemDatabase, initializeSequence, isSequenceExists
-
Constructor Details
-
FormPhotoController
-
-
Method Details
-
getInstance
-
getInstance
Deprecated. -
getInstance
Deprecated. -
getPhoto
- Throws:
Exception
-
getPhoto
@Deprecated public FormPhoto getPhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) throws Exception Deprecated.- Throws:
Exception
-
getPhotos
public List<FormPhoto> getPhotos(JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) throws Exception - Throws:
Exception
-
getPhotos
@Deprecated public List<FormPhoto> getPhotos(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) throws Exception Deprecated.- Throws:
Exception
-
deletePhoto
- Throws:
Exception
-
deletePhoto
@Deprecated public boolean deletePhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) throws Exception Deprecated.- Throws:
Exception
-
insertPhoto
public boolean insertPhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) throws Exception - Throws:
Exception
-
insertPhotoAndGetId
public long insertPhotoAndGetId(JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) throws Exception - Throws:
Exception
-
updatePhoto
- Throws:
Exception
-
getPhotosIds
public List<Long> getPhotosIds(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) throws Exception - Throws:
Exception
-
createThumbnail
public static byte[] createThumbnail(byte[] data, int maxWidth, int maxHeight) -
createThumbnail
-