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