Package org.osforce.connect.entity.gallery

Examples of org.osforce.connect.entity.gallery.Album


      model.put("teamMember", teamMember);
    } else if(StringUtils.equals(Event.NAME, activity.getEntity())) {
      Event event = eventService.getEvent(activity.getLinkedId());
      model.put("event", event);
    } else if(StringUtils.equals(Album.NAME, activity.getEntity())) {
      Album album = albumService.getAlbum(activity.getLinkedId());
      model.put("album", album);
    } else if(StringUtils.equals(Photo.NAME, activity.getEntity())) {
      Photo photo = photoService.getPhoto(activity.getLinkedId());
      model.put("photo", photo);
    } else if(StringUtils.equals(Question.NAME, activity.getEntity())) {
View Full Code Here


    if(photo.getModifiedId()!=null) {
      User modifiedBy = userDao.get(photo.getModifiedId());
      photo.setModifiedBy(modifiedBy);
    }
    if(photo.getAlbumId()!=null) {
      Album album = albumDao.get(photo.getAlbumId());
      photo.setAlbum(album);
    }
    if(photo.getRealFileId()!=null) {
      Attachment realFile = attachmentDao.get(photo.getRealFileId());
      photo.setRealFile(realFile);
View Full Code Here

  }

  @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);
  }
View Full Code Here

  }

  @Override
  protected void doTask(Map<Object, Object> context) throws Exception {
    Long albumId = (Long) context.get("albumId");
    Album album = albumService.getAlbum(albumId);
    String template = (String) context.get("template");
    Activity activity = new Activity();
    activity.setLinkedId(albumId);
    activity.setEntity(Album.NAME);
    activity.setType(Album.NAME);
    activity.setDescription(template);
    activity.setFormat(Activity.FORMAT_FTL);
    activity.setProjectId(album.getProjectId());
    activity.setEnteredId(album.getModifiedId());
    activityService.createActivity(activity);
  }
View Full Code Here

TOP

Related Classes of org.osforce.connect.entity.gallery.Album

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.