StateHistory option

Build 1501 on 14/Nov/2017  This topic last edited on: 29/Oct/2012, at 16:11

StateHistory option, when specified, causes the output of the complete state history of the object: in swhich state was created and all the subsequent state changes, who did them and when. It is the equivalent for the data navigator of the ‘StateHistory’ extra used in directory listings – see http://forum.teradp.com/topic.asp?TOPIC_ID=564.

The XML output is the XML element ‘nav:states’, containing a list of action descriptions – one for each state – e.g. assuming that the video object with id 5933 has been created in the '/system/users/Guest' folder and susequently it has been moved to the '/system/users/Administrator' folder, executing ../do.ashx?cmd=objsnav&ids=5933&options=statehistory&max=4 produces:

  <video nav:objectType="video" id="obj5933" . . . xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">

    <nav:objectTypeAttrs mediaType="Video" deadlineGap="0" textElement="" textAttrib="" typeKind="" typeLink="" /> 

    <nav:states>

      <nav:actionDesc Time="2011-02-05T21:02:42.303Z" LoginGuid="ca488cbb-b80c-4c3e-a22e-3d6a35992ce5" UserId="1705" UserDesc="TeraDP\MiMo" ObjectId="9" ObjectDesc="/system/users/Guest"> 

        <user idref="obj1705" /> 

        <object idref="obj9" /> 

      </nav:actionDesc>

      <nav:actionDesc Time="2011-02-07T21:47:43.220Z" LoginGuid="4c2a975b-151b-4458-816d-fd483b444873" UserId="1705" UserDesc="TeraDP\MiMo" ObjectId="8" ObjectDesc="/system/users/Administrator"> 

        <user idref="obj1705" /> 

        <object idref="obj8" /> 

      </nav:actionDesc>

    </nav:states>

    <folderRef idref="obj8">

      <nav:refObject idref="obj8" /> 

    </folderRef>

    . . . 

  </video>