com.ibm.tivoli.maximo.miniapps.treegrid

Class ReplyBuilder

  • All Implemented Interfaces:
    com.ibm.json.java.JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map


    public class ReplyBuilder
    extends ChangesBuilder
    Simple class to create a new TreeGrid Reply Object. A TreeGrid reply can contain UPDATES to rows, and even new rows. addChange() is used to UPDATE existing client side records, while addNewRow() is used to add rows to the client side model does not currently exist.
    See Also:
    Serialized Form
    • Field Detail

      • OK_INSTANCE_READONLY

        public static final ReplyBuilder OK_INSTANCE_READONLY
        Single Instance of the ReplyBuilder that can be shared for a simple OK reply. Do NOT modify this instance!
      • OK_RELOAD_MODEL_INSTANCE_READONLY

        public static final ReplyBuilder OK_RELOAD_MODEL_INSTANCE_READONLY
        Single Instance of the ReplyBuilder that can be shared for a simple OK that will request a model data reload reply. Do NOT modify this instance!
      • OK_PROCESS_SYNC_REQUESTS_READONLY

        public static final ReplyBuilder OK_PROCESS_SYNC_REQUESTS_READONLY
        Single Instance of the ReplyBuilder that can be shared for a simple OK that will send another request to ther server to process any outstanding SYNC events in the Maximo UI. reply. Do NOT modify this instance!
    • Constructor Detail

      • ReplyBuilder

        public ReplyBuilder()
      • ReplyBuilder

        public ReplyBuilder(int result)
    • Method Detail

      • newErrorReply

        public static com.ibm.json.java.JSONObject newErrorReply(java.lang.String msg,
                                                                 java.lang.Throwable e)
        Creates an Error Reply
        Parameters:
        msg -
        e -
        Returns:
      • newErrorReply

        public static com.ibm.json.java.JSONObject newErrorReply(java.lang.String msg)
      • IO

        public com.ibm.json.java.JSONObject IO()