/**
  * 杂志设置的起始页 、以及单个杂志 的数据初始化
  *
  * @return
  */
 public String to() {
   Publisher publisher = this.getSessionPublisher();
   Admin admin = this.getSessionAdmin();
   categoryList = categoryService.queryAllChildCategories();
   if (publisher != null
       && (publisher.getLevel().equals(PojoConstant.PUBLISHER.LEVEL_0)
           || publisher.getLevel().equals(PojoConstant.PUBLISHER.LEVEL_1))) {
     this.publicationList =
         publicationService.getListByNameAndPublisherId(null, publisher.getId(), null, null, -1);
     return "config";
   } else if (admin != null) {
     this.publicationList =
         publicationService.getListByNameAndPublisherId(null, null, null, null, -1);
     return "config";
   } else {
     return "deny";
   }
 }
  /**
   * 新建或编辑杂志信息
   *
   * @return
   */
  public String doJson() {
    Publisher publisher = this.getSessionPublisher();
    publication.setPublisherId(publisher.getId()); // 出版商id

    this.jsonResult =
        publicationService.savePublication(
            publication, this.getSessionPublisherId(), publisher.getLevel());
    // 获取对应的杂质集合
    if (publisher != null
        && (publisher.getLevel().equals(PojoConstant.PUBLISHER.LEVEL_0)
            || publisher.getLevel().equals(PojoConstant.PUBLISHER.LEVEL_1))) {
      this.publicationList =
          publicationService.getListByNameAndPublisherId(null, publisher.getId(), null, null, -1);
    } else if (publisher != null && publisher.getLevel().equals(PojoConstant.PUBLISHER.LEVEL_2)) {
      this.publicationList =
          publicationService.getListByNameAndPublisherId(null, null, null, null, -1);
    }
    Map<String, Object> objMap = new HashMap<String, Object>();
    objMap.put("publicationList", this.publicationList);
    this.jsonResult.setData(objMap);

    return JSON;
  }