Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/rpc/JsonRest.js

  • Provides:

    • dojox.rpc.JsonRest
  • Requires:

    • dojox.json.ref in common
    • dojox.rpc.Rest in common
  • dirtyObjects

    • type
      Array
  • dojox.rpc.Rest

    • alias - dojox.rpc.Rest
  • dojox.json.ref.refAttribute

    • alias - service._schema
    • type
      String
  • jr

    • type
      Object
  • dojox.rpc.JsonRest

    • type
      Object
  • dojox.rpc.JsonRest.serviceClass

    • alias - dojox.rpc.Rest
  • dojox.rpc.JsonRest.conflictDateHeader

    • type
      String
  • dojox.rpc.JsonRest.commit

    • parameters:
      • kwArgs
    • summary
      Saves the dirty data using REST Ajax methods
    • type
      Function
  • dojox.rpc.JsonRest.sendToServer

    • parameters:
      • actions
      • kwArgs
    • type
      Function
  • dojox.rpc.JsonRest.sendToServer.conflictDateHeader

  • dojox.rpc.JsonRest.getDirtyObjects

    • type
      Function
  • dojox.rpc.JsonRest.revert

    • parameters:
      • service
    • summary
      Reverts all the changes made to JSON/REST data
    • type
      Function
  • dojox.rpc.JsonRest.changing

    • parameters:
      • object
      • _deleting
    • summary
      adds an object to the list of dirty objects.  This object
      contains a reference to the object itself as well as a
      cloned and trimmed version of old object for use with
      revert.
    • type
      Function
  • dojox.rpc.JsonRest.deleteObject

    • parameters:
      • object: (typeof object)
        to delete
    • summary
      deletes an object
    • type
      Function
  • dojox.rpc.JsonRest.getConstructor

    • parameters:
      • service: (typeof Function|String)
      • schema
    • summary
      Creates or gets a constructor for objects from this service
    • type
      Function
  • dojox.rpc.JsonRest.fetch

    • parameters:
      • absoluteId
    • summary
      Fetches a resource by an absolute path/id and returns a dojo.Deferred.
    • type
      Function
  • dojox.rpc.JsonRest.getIdAttribute

    • parameters:
      • service
    • summary
      Return the ids attribute used by this service (based on it's schema).
      Defaults to "id", if not other id is defined
    • type
      Function
  • dojox.rpc.JsonRest.getServiceAndId

    • parameters:
      • absoluteId: (typeof String)
        This is the absolute id of the object
    • summary
      Returns the REST service and the local id for the given absolute id. The result
      is returned as an object with a service property and an id property
    • type
      Function
  • dojox.rpc.JsonRest.services

    • type
      Object
  • dojox.rpc.JsonRest.schemas

    • type
      Object
  • dojox.rpc.JsonRest.registerService

    • parameters:
      • service: (typeof Function)
        This is the service to register
      • servicePath: (typeof String)
        This is the path that is used for all the ids for the objects returned by service
      • schema: (typeof Object)
        This is a JSON Schema object to associate with objects returned by this service
    • summary
      Registers a service for as a JsonRest service, mapping it to a path and schema
    • type
      Function
  • dojox.rpc.JsonRest.byId

    • parameters:
      • service
      • id
    • type
      Function
  • dojox.rpc.JsonRest.query

    • parameters:
      • service
      • id
      • args
    • type
      Function
  • dojox.rpc.JsonRest._loader

    • parameters:
      • callback
    • type
      Function
  • dojox.rpc.JsonRest.isDirty

    • parameters:
      • item
    • type
      Function
  • dojox.rpc

    • type
      Object
  • dojox

    • type
      Object