aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/data/ldapaccess
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /node_modules/montage/data/ldapaccess
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'node_modules/montage/data/ldapaccess')
-rwxr-xr-xnode_modules/montage/data/ldapaccess/ldapblueprint.js135
-rwxr-xr-xnode_modules/montage/data/ldapaccess/ldapobjectid.js20
-rwxr-xr-xnode_modules/montage/data/ldapaccess/ldapselectorevaluator.js24
-rwxr-xr-xnode_modules/montage/data/ldapaccess/ldapstore.js38
4 files changed, 217 insertions, 0 deletions
diff --git a/node_modules/montage/data/ldapaccess/ldapblueprint.js b/node_modules/montage/data/ldapaccess/ldapblueprint.js
new file mode 100755
index 00000000..32444fef
--- /dev/null
+++ b/node_modules/montage/data/ldapaccess/ldapblueprint.js
@@ -0,0 +1,135 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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/ldapblueprint
8 @requires montage/core/core
9 @requires montage/data/blueprint
10 @requires montage/data/ldapaccess/ldapselectorevaluator
11 @requires montage/core/logger
12*/
13var Montage = require("montage").Montage;
14var Blueprint = require("data/blueprint").Blueprint;
15var BlueprintBinder = require("data/blueprint").BlueprintBinder;
16var ToOneAttribute = require("data/blueprint").ToOneAttribute;
17var ToManyAttribute = require("data/blueprint").ToManyAttribute;
18var ToOneRelationship = require("data/blueprint").ToOneRelationship;
19var ToManyRelationship = require("data/blueprint").ToManyRelationship;
20var LdapSelectorEvaluator = require("data/ldapaccess/ldapselectorevaluator").LdapSelectorEvaluator; // registering the evaluators
21var logger = require("core/logger").logger("ldapblueprint");
22
23/**
24 @class module:montage/data/ldapaccess/ldapblueprint.LdapBlueprintBinder
25 @extends module:montage/data/blueprint.BlueprintBinder
26*/
27var LdapBlueprintBinder = exports.LdapBlueprintBinder = Montage.create(BlueprintBinder,/** @lends module:montage/data/ldapaccess/ldapblueprint.LdapBlueprintBinder# */ {
28
29/**
30 Description TODO
31 @type {Property} URL
32 @default {String} "montage/data/ldapaccess/ldapstore"
33 */
34 storeModuleId: {
35 value: "montage/data/ldapaccess/ldapstore"
36 },
37/**
38 Description TODO
39 @type {Property}
40 @default {String} "LdapStore"
41 */
42 storePrototypeName: {
43 value: "LdapStore"
44 },
45/**
46 Description TODO
47 @function
48 @returns LdapBlueprint.create()
49 */
50 createBlueprint: {
51 value: function() {
52 return LdapBlueprint.create();
53 }
54 }
55
56
57})
58/**
59 @class module:montage/data/idapaccess/ldapblueprint.LdapBlueprint
60*/
61var LdapBlueprint = exports.LdapBlueprint = Montage.create(Blueprint,/** @lends module:montage/data/idapaccess/ldapblueprint.LdapBlueprint# */ {
62
63/**
64 Conventional method to crete new attribute.<br>
65 This can be overwritten by specific stores.
66 @function
67 @returns LdapToOneAttribute.create()
68 */
69 createToOneAttribute: {
70 value: function() {
71 return LdapToOneAttribute.create();
72 }
73 },
74
75 /**
76 Conventional method to create a new attribute.<br>
77 This can be overwritten by specific stores.
78 @function
79 @returns {Function} LdapToManyAttribute.create()
80 */
81 createToManyAttribute: {
82 value: function() {
83 return LdapToManyAttribute.create();
84 }
85 },
86
87/**
88 Conventional method to create a new attribute.<br>
89 This can be overwritten by specific stores.
90 @function
91 @returns {Function} LdapToOneRelationship.create()
92 */
93 createToOneRelationship: {
94 value: function() {
95 return LdapToOneRelationship.create();
96 }
97 },
98
99/**
100 Conventional method to create a new attribute.<br>
101 This can be overwritten by specific stores.
102 @function
103 @returns {Function} LdapToManyRelationship.create()
104 */
105 createToManyRelationship: {
106 value: function() {
107 return LdapToManyRelationship.create();
108 }
109 }
110
111});
112/**
113 @class module:montage/data/ldapaccess/ldapblueprint.LdapToOneAttribute
114*/
115var LdapToOneAttribute = exports.LdapToOneAttribute = Montage.create(ToOneAttribute,/** @lends module:montage/data/ldapaccess/ldapblueprint.LdapToOneAttribute# */ {
116
117});
118/**
119 @class module:montage/data/ldapaccess/ldapblueprint.LdapToOneRelationship
120*/
121var LdapToOneRelationship = exports.LdapToOneRelationship = Montage.create(ToOneRelationship,/** @lends module:montage/data/ldapaccess/ldapblueprint.LdapToOneRelationship# */ {
122
123});
124/**
125 @class module:montage/data/ldapaccess/ldapblueprint.LdapToManyAttribute
126*/
127var LdapToManyAttribute = exports.LdapToManyAttribute = Montage.create(ToManyAttribute,/** @lends module:montage/data/ldapaccess/ldapblueprint.LdapToManyAttribute# */ {
128
129});
130/**
131 @class module:montage/data/ldapaccess/ldapblueprint.LdapToManyRelationship
132*/
133var LdapToManyRelationship = exports.LdapToManyRelationship = Montage.create(ToManyRelationship/** @lends module:montage/data/ldapaccess/ldapblueprint.LdapToManyRelationship# */, {
134
135});
diff --git a/node_modules/montage/data/ldapaccess/ldapobjectid.js b/node_modules/montage/data/ldapaccess/ldapobjectid.js
new file mode 100755
index 00000000..642f7c5e
--- /dev/null
+++ b/node_modules/montage/data/ldapaccess/ldapobjectid.js
@@ -0,0 +1,20 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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/ldapobjectid
8 @requires montage/core/core
9 @requires montage/core/logger
10*/
11var Montage = require("montage").Montage;
12var logger = require("core/logger").logger("ldapobjectid");
13/**
14 @class module:montage/data/ldapaccess/ldapobjectid.LdapObjectId
15 @extends module:montage/core/core.Montage
16*/
17var LdapObjectId = exports.LdapObjectId = Montage.create(Montage,/** @lends module:montage/data/ldapaccess/ldapobjectid.LdapObjectId # */ {
18
19
20});
diff --git a/node_modules/montage/data/ldapaccess/ldapselectorevaluator.js b/node_modules/montage/data/ldapaccess/ldapselectorevaluator.js
new file mode 100755
index 00000000..a14bee2e
--- /dev/null
+++ b/node_modules/montage/data/ldapaccess/ldapselectorevaluator.js
@@ -0,0 +1,24 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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/ldapselectorevaluator
8 @requires montage/core/core
9 @requires montage/data/selector
10 @requires montage/core/logger
11*/
12var Montage = require("montage").Montage;
13var SelectorEvaluator = require("data/selector").SelectorEvaluator;
14var Selector = require("data/selector").Selector;
15var logger = require("core/logger").logger("ldapselectorevaluator");
16/**
17 @class module:montage/data/ldapaccess/ldapselectorevaluator.LdapSelectorEvaluator
18 @extends module:montage/data/selector.SelectorEvaluator
19*/
20var LdapSelectorEvaluator = exports.LdapSelectorEvaluator = Montage.create(SelectorEvaluator,/** @lends module:montage/data/ldapaccess/ldapselectorevaluator.LdapSelectorEvaluator# */ {
21
22
23});
24Selector.registry.registerEvaluator(LdapSelectorEvaluator);
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>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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*/
12var Montage = require("montage").Montage;
13var Store = require("data/store").Store;
14var logger = require("core/logger").logger("ldapstore");
15/**
16 @class module:montage/data/ldapaccess/ldapstore.LdapStore
17 @extends module:montage/core/core.Montage
18*/
19var LdapStore = exports.LdapStore = Montage.create(Store,/** @lends module:montage/data/ldapaccess/ldapstore.LdapStore# */ {
20
21/**
22 Description TODO