<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: File</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: File</h1> <section> <header> <h2> File </h2> </header> <article> <div class="container-overview"> <h4 class="name" id="File"><span class="type-signature"></span>new File<span class="signature">(obj)</span><span class="type-signature"></span></h4> <div class="description"> <p>Create a file from the server's object representation.</p> </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>obj</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last"><p>Data from the server, which doesn't follow typical javaScript naming conventions.</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line14">line 14</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="action"><span class="type-signature">(readonly) </span>action<span class="type-signature"> :string</span></h4> <div class="description"> <p>Action taken at the head, one of 'add', 'edit', 'delete', 'branch', 'move_add', 'move_delete', 'integrate', 'import', 'purge', or 'archive'.</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line65">line 65</a> </li></ul></dd> </dl> <h4 class="name" id="change"><span class="type-signature">(readonly) </span>change<span class="type-signature"> :string</span></h4> <div class="description"> <p>ID of the changelist that created this file revision.</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line52">line 52</a> </li></ul></dd> </dl> <h4 class="name" id="date"><span class="type-signature">(readonly) </span>date<span class="type-signature"> :Date</span></h4> <div class="description"> <p>Date of when the file revision was created</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Date</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line93">line 93</a> </li></ul></dd> </dl> <h4 class="name" id="depotFile"><span class="type-signature"></span>depotFile<span class="type-signature"> :string</span></h4> <div class="description"> <p>The absolute depot path of the file</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line20">line 20</a> </li></ul></dd> </dl> <h4 class="name" id="name"><span class="type-signature">(readonly) </span>name<span class="type-signature"> :string</span></h4> <div class="description"> <p>For consistency with Node operations</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line106">line 106</a> </li></ul></dd> </dl> <h4 class="name" id="pathId"><span class="type-signature">(readonly) </span>pathId<span class="type-signature"> :Array.<string></span></h4> <div class="description"> <p>For consistency with Node operations</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Array.<string></span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line119">line 119</a> </li></ul></dd> </dl> <h4 class="name" id="revision"><span class="type-signature">(readonly) </span>revision<span class="type-signature"> :number</span></h4> <div class="description"> <p>File's revision number.</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line35">line 35</a> </li></ul></dd> </dl> <h4 class="name" id="type"><span class="type-signature">(readonly) </span>type<span class="type-signature"> :string</span></h4> <div class="description"> <p>File type - one of 'text', 'binary', 'symlink', 'apple', 'resource', 'unicode', 'utf16'</p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="models_File.js.html">models/File.js</a>, <a href="models_File.js.html#line79">line 79</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="HelixWebServicesClient.html">HelixWebServicesClient</a></li><li><a href="models.Depot.html">Depot</a></li><li><a href="models.Dir.html">Dir</a></li><li><a href="models.File.html">File</a></li></ul><h3>Mixins</h3><ul><li><a href="Node.html">Node</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addSessionExpiredHandler">addSessionExpiredHandler</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0-dev</a> on Wed Jun 24 2015 12:48:36 GMT-0700 (PDT) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/build/doc/helix_web_services_client_js/models.File.html | |||||
#2 | 14151 | tjuricek |
Add depot tree control and selection to the create projects page. Styling and error checking is kept to a minimum for the time being. Our goal is just internal workflow and feedback. |
||
#1 | 14108 | tjuricek |
Added models for handling Perforce server depot listing and traversal. This is not complete, however, the models are a start to making it easy to generate a tree control. (Most tree controls in the wild assume you know the tree structure from the start, which is not true in our case.) The tricky bit is making it easy to build the tree out given that you're visiting only one directory at a time. |