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