Check-out info

Build 1501 on 14/Nov/2017  This topic last edited on: 5/Aug/2014, at 16:53

The virtual XML used by GNQuery includes also check-out informations. They are indentified by an extra ‘nav:checkOuts’ XML element containing ‘nav:checkOut’ elements.

Example:

<gn4:story id="obj33478". . .>

  <nav:checkOuts>

      <nav:checkOut Code="Content" Time="..." UserId="..." ClientSpecId="...">

      <user idref="...">

          <nav:refObject idref="..." /> 

      </user>

      <clientSpec idref="...">

          <nav:refObject idref="..." /> 

      </clientSpec>

      </nav:checkOut>

      <nav:checkOut Code="Normal" Time="..." LoginGuid="..." UserId="...">

      <user idref="...">

          <nav:refObject idref="..." /> 

      </user>

      </nav:checkOut>

  </nav:checkOuts>

  . . .

</gn4:story>

Get all the articles checked out by a specific user:

gn4:article[nav:checkOuts/nav:checkOut/gn4:user/nav:refObject/gn4:user/@name='TeraDP\\mimo' and nav:checkOuts/nav:checkOut/@Code = 'Content']

Get all the articles checked out after a specific time:

gn4:article[nav:checkOuts/nav:checkOut/@Time >= '2012-08-03T00:00:00.00Z']