Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Automation

      Description

      Bindings

      CRUD

          nuxeo.repo('default').doc(uuid).fetch({done: cb, failed : cb})  (GET)
          nuxeo.repo('default').doc(uuid).create(doc, {done: cb, failed : cb}) (POST)
          nuxeo.repo('default').doc(uuid).update(doc, {done: cb, failed : cb}) (PUT)
          nuxeo.repo('default').doc(uuid).delete({done: cb, failed : cb}) (DELETE)
      

      Remarks :

      • repo() = repository() : is optional
      • doc() = document()

      Adapters

          nuxeo.repo('default').doc(uuid).children({page : 1, pagesize : 10, done: cb, failed : cb})
          nuxeo.repo('default').doc(uuid).search({query:query page : 1, pagesize : 10, done: cb, failed : cb})
          nuxeo.repo('default').doc(uuid).pageProvider({provider:provider page : 1, pagesize : 10, done: cb, failed : cb})
      

      Business adapters

          nuxeo.repo('default').doc(uuid).adapter(adapterName).fetch({done: cb, failed : cb} )  (GET)
          nuxeo.repo('default').doc(uuid).adapter(adapterName).create(doc, {done: cb, failed : cb}) (POST)
          nuxeo.repo('default').doc(uuid).adapter(adapterName).update(doc, {done: cb, failed : cb}) (PUT)
      

      Remarks :

      • adapter() = as()

      Operations

          nuxeo.repo('default').doc(uuid).op(opId).execute()
          nuxeo.repo('default').doc(uuid).children().op(opId).execute()
      

      Remarks :

      • nuxeo.repo('default').doc(uuid).op(opId) is the same object than nuxeo.op(opId) : just the endpoint url change

      Callback

      define callbacks as arguments :

      {..., done: cb, failed : cb}

      or

      define callbacks directly on intermediary fetch object

          nuxeo.repo('default').doc(uuid).done(cb).fail(cb).fetch()
      

      Objects

      Visibles Objects :

      Document
      DocumentList

      NB : also includes custom adapters returned by server side

      Technical objects

      repo() and doc() return a DocumentLocation

        Attachments

          Activity

            People

            • Assignee:
              tdelprat Thierry Delprat
              Reporter:
              tdelprat Thierry Delprat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: