예제 #1
0
  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
 protected void makeWebPageBody(UserSession ctx, WebPart page) {
   page.addString("noteHeading", ctx.cfg().getInformation());
   String msg1 = ctx.cfg().getContinueWithShowPhoto();
   page.addString("note", msg1);
 }