jsdav-ext
Version:
jsDAV allows you to easily add WebDAV support to a NodeJS application. jsDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.
41 lines (35 loc) • 1.14 kB
JavaScript
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/
;
var jsDAV_iNode = require("./iNode");
var Exc = require("./../../shared/exceptions");
/**
* Implement this class to support locking
*/
var jsDAV_iLockable = module.exports = jsDAV_iNode.extend({
/**
* Returns an array with locks currently on the node
*
* @return jsDAV_Locks_LockInfo[]
*/
getLocks: function(callback) { callback(Exc.notImplementedYet()); },
/**
* Creates a new lock on the file.
*
* @param {jsDAV_Locks_LockInfo} lockInfo The lock information
* @return void
*/
lock: function(lockInfo, callback) { callback(Exc.notImplementedYet()); },
/**
* Unlocks a file
*
* @param {jsDAV_Locks_LockInfo} lockInfo The lock information
* @return void
*/
unlock: function(lockInfo, callback) { callback(Exc.notImplementedYet()); }
});