Package com.kheops.jmap.server
Class FormPhotoController
java.lang.Object
com.kheops.jmap.server.AbstractController
com.kheops.jmap.server.FormPhotoController
- 
Field SummaryFields inherited from class com.kheops.jmap.server.AbstractControllercontrollerFactory, server, userContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic byte[]createThumbnail(byte[] data, int maxWidth, int maxHeight) static byte[]createThumbnail(BufferedImage bufferedImage, int maxWidth, int maxHeight) booleandeletePhoto(IAbstractForm form, long photoId) booleandeletePhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) Deprecated.static FormPhotoControllergetInstance(int sessionId) Deprecated.static FormPhotoControllergetInstance(SessionUser sessionUser) Deprecated.static FormPhotoControllergetInstance(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) booleaninsertPhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) longinsertPhotoAndGetId(JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) booleanupdatePhoto(IAbstractForm form, FormPhoto document) Methods inherited from class com.kheops.jmap.server.AbstractControllergetNextSequenceValue, getSystemDatabase, initializeSequence, isSequenceExists
- 
Constructor Details- 
FormPhotoController
 
- 
- 
Method Details- 
getInstance
- 
getInstanceDeprecated.
- 
getInstanceDeprecated.
- 
getPhoto- Throws:
- Exception
 
- 
getPhoto@Deprecated public FormPhoto getPhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, long photoId) throws Exception Deprecated.- Throws:
- Exception
 
- 
getPhotospublic 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
 
- 
insertPhotopublic boolean insertPhoto(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) throws Exception - Throws:
- Exception
 
- 
insertPhotoAndGetIdpublic long insertPhotoAndGetId(JMapServerVectorLayer serverLayer, IAbstractForm form, FormPhoto document, String objectId) throws Exception - Throws:
- Exception
 
- 
updatePhoto- Throws:
- Exception
 
- 
getPhotosIdspublic List<Long> getPhotosIds(JMapServerProject serverProject, JMapServerVectorLayer serverLayer, IAbstractForm form, String objectId) throws Exception - Throws:
- Exception
 
- 
createThumbnailpublic static byte[] createThumbnail(byte[] data, int maxWidth, int maxHeight) 
- 
createThumbnail
 
-