Exemplo n.º 1
0
  public String get() {
    ProcessModule processModule = (ProcessModule) this.processModuleService.get(this.moduleid);

    JSONSerializer json = JsonUtil.getJSONSerializer(new String[] {"createtime"});

    StringBuffer sb = new StringBuffer("{success:true,data:");
    sb.append(json.serialize(processModule));
    sb.append("}");
    setJsonString(sb.toString());

    return "success";
  }
Exemplo n.º 2
0
  public String get() {
    ArchTemplate archTemplate = (ArchTemplate) this.archTemplateService.get(this.templateId);

    JSONSerializer jsonSerializer = JsonUtil.getJSONSerializer();

    StringBuffer sb = new StringBuffer("{success:true,data:");
    sb.append(jsonSerializer.serialize(archTemplate));
    sb.append("}");
    setJsonString(sb.toString());

    return "success";
  }
Exemplo n.º 3
0
 /*     */ public String get() /*     */ {
   /*  94 */ News news = (News) this.newsService.get(this.newsId);
   /*     */
   /*  96 */ JSONSerializer json =
       JsonUtil.getJSONSerializer(new String[] {"createtime", "expTime", "updateTime"});
   /*     */
   /*  98 */ StringBuffer sb = new StringBuffer("{success:true,data:");
   /*  99 */ sb.append(json.serialize(news));
   /* 100 */ sb.append("}");
   /* 101 */ setJsonString(sb.toString());
   /*     */
   /* 103 */ return "success";
   /*     */ }
Exemplo n.º 4
0
  public String list() {
    QueryFilter filter = new QueryFilter(getRequest());
    List list = this.processModuleService.getAll(filter);

    StringBuffer buff =
        new StringBuffer("{success:true,'totalCounts':")
            .append(filter.getPagingBean().getTotalItems())
            .append(",result:");

    JSONSerializer json = JsonUtil.getJSONSerializer(new String[] {"createtime"});
    buff.append(json.serialize(list));
    buff.append("}");

    this.jsonString = buff.toString();

    return "success";
  }
Exemplo n.º 5
0
 /*     */ public String list() /*     */ {
   /*  57 */ QueryFilter filter = new QueryFilter(getRequest());
   /*  58 */ List list = this.newsService.getAll(filter);
   /*     */
   /*  61 */ StringBuffer buff =
       new StringBuffer("{success:true,'totalCounts':")
           /*  62 */ .append(filter.getPagingBean().getTotalItems())
           .append(",result:");
   /*  63 */ JSONSerializer json =
       JsonUtil.getJSONSerializer(new String[] {"createtime", "expTime", "updateTime"});
   /*  64 */ buff.append(json.serialize(list));
   /*  65 */ buff.append("}");
   /*     */
   /*  67 */ this.jsonString = buff.toString();
   /*     */
   /*  69 */ return "success";
   /*     */ }