diff options
Diffstat (limited to 'node_modules/montage/data/ldapaccess/ldapstore.js')
-rwxr-xr-x | node_modules/montage/data/ldapaccess/ldapstore.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/montage/data/ldapaccess/ldapstore.js b/node_modules/montage/data/ldapaccess/ldapstore.js new file mode 100755 index 00000000..b92517f2 --- /dev/null +++ b/node_modules/montage/data/ldapaccess/ldapstore.js | |||
@@ -0,0 +1,38 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | /** | ||
7 | @module montage/data/ldapaccess/ldapstore | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/store | ||
10 | @requires montage/core/logger | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var Store = require("data/store").Store; | ||
14 | var logger = require("core/logger").logger("ldapstore"); | ||
15 | /** | ||
16 | @class module:montage/data/ldapaccess/ldapstore.LdapStore | ||
17 | @extends module:montage/core/core.Montage | ||
18 | */ | ||
19 | var LdapStore = exports.LdapStore = Montage.create(Store,/** @lends module:montage/data/ldapaccess/ldapstore.LdapStore# */ { | ||
20 | |||
21 | /** | ||
22 | Description TODO | ||
23 | @function | ||
24 | @param {Property} binder TODO | ||
25 | @returns {Boolean} true or false | ||
26 | */ | ||
27 | canServiceBlueprintBinder: { | ||
28 | value: function(binder) { | ||
29 | if ((binder !== null) && (binder.storePrototypeName === "LdapStore")) { | ||
30 | // TODO [PJYF Apr 28 2011] We need to check that the connection url points to the same DB | ||
31 | return true; | ||
32 | } | ||
33 | return false; | ||
34 | } | ||
35 | } | ||
36 | |||
37 | |||
38 | }); | ||