Page MenuHomeSealhub

ResourceManager.html
No OneTemporary

ResourceManager.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: ResourceManager</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: ResourceManager</h1>
<section>
<header>
<h2>
ResourceManager
</h2>
</header>
<article>
<div class="container-overview">
<dt>
<h2>Constructor</h2>
<h4 class="name" id="ResourceManager"><span class="type-signature"></span>new ResourceManager<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
Manages resources in the database
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="node_modules_prometheus-resource-manager_resource-manager.js.html">node_modules/prometheus-resource-manager/resource-manager.js</a>, <a href="node_modules_prometheus-resource-manager_resource-manager.js.html#line10">line 10</a>
</li></ul></dd>
</dl>
</dd>
</div>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
<h4 class="name" id="idExists"><span class="type-signature"></span>idExists<span class="signature">(prometheus_id, type<span class="signature-attributes">opt</span>, callback)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
Calls callback function with `true` if a resource with given ID exists in the database. Otherwise,
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>prometheus_id</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="attributes">
</td>
<td class="description last">the id to test for</td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">type of the resource. If provided, callback value will be true only if a resource with a given id AND of a provided type exists</td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type"><a href="ResourceManager.html#idExistsCallback">ResourceManager~idExistsCallback</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="node_modules_prometheus-resource-manager_resource-manager.js.html">node_modules/prometheus-resource-manager/resource-manager.js</a>, <a href="node_modules_prometheus-resource-manager_resource-manager.js.html#line41">line 41</a>
</li></ul></dd>
</dl>
</dd>
</dl>
<h3 class="subsection-title">Type Definitions</h3>
<dl>
<dt>
<h4 class="name" id="idExistsCallback"><span class="type-signature"></span>idExistsCallback<span class="signature">(exists)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
Callback for idExists
</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>exists</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last">true if a resource with given id exists</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="node_modules_prometheus-resource-manager_resource-manager.js.html">node_modules/prometheus-resource-manager/resource-manager.js</a>, <a href="node_modules_prometheus-resource-manager_resource-manager.js.html#line62">line 62</a>
</li></ul></dd>
</dl>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-database-accessor.html">database-accessor</a></li><li><a href="module-field-type-manager.html">field-type-manager</a></li><li><a href="module-resource-type-manager.html">resource-type-manager</a></li></ul><h3>Classes</h3><ul><li><a href="AssociationInterface.html">AssociationInterface</a></li><li><a href="field-type-manager-Association.html">Association</a></li><li><a href="FieldType.html">FieldType</a></li><li><a href="Resource.html">Resource</a></li><li><a href="ResourceManager.html">ResourceManager</a></li><li><a href="ResourceType.html">ResourceType</a></li><li><a href="ResourceTypeField.html">ResourceTypeField</a></li></ul><h3>Global</h3><ul><li><a href="global.html#construct_resource_type">construct_resource_type</a></li></ul>
</nav>
<br clear="both">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha11</a> on Mon Dec 08 2014 13:12:25 GMT+0100 (CET)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>

File Metadata

Mime Type
text/html
Expires
Wed, Aug 13, 18:06 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
872528
Default Alt Text
ResourceManager.html (7 KB)

Event Timeline