Exemple #1
0
 @RemoteMethod
 public String getPTById(String id) {
   return ptService.getPTById(id);
 }
Exemple #2
0
 @RemoteMethod
 public String getPTsByType(String type) {
   return ptService.getPTsByType(type);
 }
Exemple #3
0
 @RemoteMethod
 public Boolean updatePT(PictureTopic pt) {
   return ptService.updatePT(pt);
 }
Exemple #4
0
 @RemoteMethod
 public Boolean deletePTById(String id) {
   String basePath =
       WebContextFactory.get().getServletContext().getRealPath("/resources/topicimages/");
   return ptService.deletePTById(id, basePath);
 }
Exemple #5
0
 @RemoteMethod
 public String savePT(PictureTopic pt) {
   return ptService.savePT(pt);
 }