コード例 #1
0
 @AfterReturning(
     "execution(* org.osforce.connect.service.gallery.PhotoService.createPhoto(..)) ||"
         + "execution(* org.osforce.connect.service.gallery.PhotoService.updatePhoto(..))")
 public void updatePhoto(JoinPoint jp) {
   Photo photo = (Photo) jp.getArgs()[0];
   Map<Object, Object> context = CollectionUtil.newHashMap();
   context.put("photoId", photo.getId());
   context.put("template", TEMPLATE_PHOTO_UPDATE);
   photoActivityStreamTask.doAsyncTask(context);
 }
コード例 #2
0
 @AfterReturning(
     "execution(* org.osforce.connect.service.gallery.AlbumService.createAlbum(..)) ||"
         + "execution(* org.osforce.connect.service.gallery.AlbumService.updateAlbum(..))")
 public void updateAlbum(JoinPoint jp) {
   Album album = (Album) jp.getArgs()[0];
   Map<Object, Object> context = CollectionUtil.newHashMap();
   context.put("albumId", album.getId());
   context.put("template", TEMPLATE_ALBUM_UPDATE);
   albumActivityStreamTask.doAsyncTask(context);
 }