protected String doHandleGet(UserSession ctx, String link, Map args) {
    PhotoFilter filter = ctx.getPhotoFilter();

    String un = ctx.getAsString(args, PhotoFilter.USER_NAME);
    if (StringUtil.isLegalUserName(un)) {
      filter.setUserName(un);
    }

    String tags = ctx.getAsString(args, PhotoFilter.TAGS);
    if (StringUtil.isLegalTagsString(tags)) {
      filter.setTags(new Tags(tags));
    }

    return PartUtil.SHOW_PHOTO_PAGE_NAME;
  }
示例#2
0
 public void clearDisplayedPhotos() {
   photoFilter.clear();
 }
示例#3
0
 public void addDisplayedPhoto(Photo photo) {
   photoFilter.addProcessedPhoto(photo);
 }