Package com.gitblit.utils.JsonUtils

Examples of com.gitblit.utils.JsonUtils.ExcludeField


    if (ticket == null) {
      return null;
    }
    try {
      Gson gson = gson(
          new ExcludeField("com.gitblit.models.TicketModel$Attachment.content"),
          new ExcludeField("com.gitblit.models.TicketModel$Attachment.deleted"),
          new ExcludeField("com.gitblit.models.TicketModel$Comment.deleted"));
      return gson.toJson(ticket);
    } catch (Exception e) {
      // won't happen
    }
    return null;
View Full Code Here


    if (change == null) {
      return null;
    }
    try {
      Gson gson = gson(
          new ExcludeField("com.gitblit.models.TicketModel$Attachment.content"));
      return gson.toJson(change);
    } catch (Exception e) {
      // won't happen
    }
    return null;
View Full Code Here

TOP

Related Classes of com.gitblit.utils.JsonUtils.ExcludeField

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.