diff options
author | Kruti Shah | 2012-06-20 15:12:48 -0700 |
---|---|---|
committer | Kruti Shah | 2012-06-20 15:12:48 -0700 |
commit | 1fe1202ba87d6de9b0f0d8efee78f955c5350210 (patch) | |
tree | 26ff4c6c5a94accfd5801f124244d3eef152a5c7 /node_modules/montage/data/restaccess | |
parent | 1ce4bd7033a413c7697888e5712f278219d6d095 (diff) | |
parent | 782b66c783df4a9c36fa240cc77900e69b9130cf (diff) | |
download | ninja-1fe1202ba87d6de9b0f0d8efee78f955c5350210.tar.gz |
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'node_modules/montage/data/restaccess')
4 files changed, 0 insertions, 369 deletions
diff --git a/node_modules/montage/data/restaccess/restblueprint.js b/node_modules/montage/data/restaccess/restblueprint.js deleted file mode 100755 index a15d499e..00000000 --- a/node_modules/montage/data/restaccess/restblueprint.js +++ /dev/null | |||
@@ -1,138 +0,0 @@ | |||
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/restaccess/restblueprint | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/blueprint | ||
10 | @requires montage/data/restaccess/restselectorevaluator | ||
11 | @requires montage/core/logger | ||
12 | */ | ||
13 | var Montage = require("montage").Montage; | ||
14 | var Blueprint = require("data/blueprint").Blueprint; | ||
15 | var BlueprintBinder = require("data/blueprint").BlueprintBinder; | ||
16 | var ToOneAttribute = require("data/blueprint").ToOneAttribute; | ||
17 | var ToManyAttribute = require("data/blueprint").ToManyAttribute; | ||
18 | var ToOneRelationship = require("data/blueprint").ToOneRelationship; | ||
19 | var ToManyRelationship = require("data/blueprint").ToManyRelationship; | ||
20 | var RestSelectorEvaluator = require("data/restaccess/restselectorevaluator").RestSelectorEvaluator; // registering the evaluators | ||
21 | var logger = require("core/logger").logger("restblueprint"); | ||
22 | |||
23 | /** | ||
24 | @class module:montage/data/restaccess/restblueprint.RestBlueprintBinder | ||
25 | @extends module:montage/data/blueprint.BlueprintBinder | ||
26 | */ | ||
27 | var RestBlueprintBinder = exports.SqlBlueprintBinder = Montage.create(BlueprintBinder,/** @lends module:montage/data/restaccess/restblueprint.RestBlueprintBinder# */ { | ||
28 | |||
29 | /** | ||
30 | Description TODO | ||
31 | @type {Property} URL | ||
32 | @default {String} "montage/data/restaccess/reststore" | ||
33 | */ | ||
34 | storeModuleId: { | ||
35 | value: "montage/data/restaccess/reststore" | ||
36 | }, | ||
37 | |||
38 | /** | ||
39 | Description TODO | ||
40 | @type {Property} Function | ||
41 | @default {String} "RestStore" | ||
42 | */ | ||
43 | storePrototypeName: { | ||
44 | value: "RestStore" | ||
45 | }, | ||
46 | |||
47 | /** | ||
48 | Description TODO | ||
49 | @function | ||
50 | @returns {Function} RestBlueprint.create() | ||
51 | */ | ||
52 | createBlueprint: { | ||
53 | value: function() { | ||
54 | return RestBlueprint.create(); | ||
55 | } | ||
56 | } | ||
57 | |||
58 | |||
59 | }) | ||
60 | |||
61 | /** | ||
62 | @class module:montage/data/restaccess/restblueprint.RestBlueprint | ||
63 | */ | ||
64 | var RestBlueprint = exports.RestBlueprint = Montage.create(Blueprint,/** @lends module:montage/data/restaccess/restblueprint.RestBlueprint# */ { | ||
65 | |||
66 | /** | ||
67 | Conventional method to crete new attribute.<br> | ||
68 | This can be overwritten by specific stores. | ||
69 | @function | ||
70 | @returns {Function} RestToOneAttribute.create() | ||
71 | */ | ||
72 | createToOneAttribute: { | ||
73 | value: function() { | ||
74 | return RestToOneAttribute.create(); | ||
75 | } | ||
76 | }, | ||
77 | |||
78 | /** | ||
79 | Conventional method to crete new attribute.<br> | ||
80 | This can be overwritten by specific stores. | ||
81 | @function | ||
82 | @returns {Function} RestToManyAttribute.create() | ||
83 | */ | ||
84 | createToManyAttribute: { | ||
85 | value: function() { | ||
86 | return RestToManyAttribute.create(); | ||
87 | } | ||
88 | }, | ||
89 | |||
90 | /** | ||
91 | Conventional method to crete new attribute.<br> | ||
92 | This can be overwritten by specific stores. | ||
93 | @function | ||
94 | @returns {Function} RestToOneRelationship.create() | ||
95 | */ | ||
96 | createToOneRelationship: { | ||
97 | value: function() { | ||
98 | return RestToOneRelationship.create(); | ||
99 | } | ||
100 | }, | ||
101 | |||
102 | /** | ||
103 | Conventional method to crete new attribute.<br> | ||
104 | This can be overwritten by specific stores. | ||
105 | @function | ||
106 | @returns {Function} RestToManyRelationship.create() | ||
107 | */ | ||
108 | createToManyRelationship: { | ||
109 | value: function() { | ||
110 | return RestToManyRelationship.create(); | ||
111 | } | ||
112 | } | ||
113 | |||
114 | }); | ||
115 | /** | ||
116 | @class module:montage/data/restaccess/restblueprint.RestToOneAttribute | ||
117 | */ | ||
118 | var RestToOneAttribute = exports.RestToOneAttribute = Montage.create(ToOneAttribute,/** @lends module:montage/data/restaccess/restblueprint.RestToOneAttribute# */ { | ||
119 | |||
120 | }); | ||
121 | /** | ||
122 | @class module:montage/data/restaccess/restblueprint.RestToOneRelationship | ||
123 | */ | ||
124 | var RestToOneRelationship = exports.RestToOneRelationship = Montage.create(ToOneRelationship,/** @lends module:montage/data/restaccess/restblueprint.RestToOneRelationship# */ { | ||
125 | |||
126 | }); | ||
127 | /** | ||
128 | @class module:montage/data/restaccess/restblueprint.RestToManyAttribute | ||
129 | */ | ||
130 | var RestToManyAttribute = exports.RestToManyAttribute = Montage.create(ToManyAttribute,/** @lends module:montage/data/restaccess/restblueprint.RestToManyAttribute# */ { | ||
131 | |||
132 | }); | ||
133 | /** | ||
134 | @class module:montage/data/restaccess/restblueprint.RestToManyRelationship | ||
135 | */ | ||
136 | var RestToManyRelationship = exports.RestToManyRelationship = Montage.create(ToManyRelationship,/** @lends module:montage/data/restaccess/restblueprint.RestToManyRelationship# */ { | ||
137 | |||
138 | }); | ||
diff --git a/node_modules/montage/data/restaccess/restobjectid.js b/node_modules/montage/data/restaccess/restobjectid.js deleted file mode 100755 index f70bb4fd..00000000 --- a/node_modules/montage/data/restaccess/restobjectid.js +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
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/restobjectid | ||
8 | @requires montage/data/objectid | ||
9 | @requires montage/core/logger | ||
10 | */ | ||
11 | var Montage = require("montage").Montage; | ||
12 | var ObjectId = require("data/objectid").ObjectId; | ||
13 | var logger = require("core/logger").logger("restobjectid"); | ||
14 | /** | ||
15 | @class module:montage/data/restaccess/restobjectid.RestObjectId | ||
16 | @extends module:montage/data/objectid.ObjectId | ||
17 | */ | ||
18 | var RestObjectId = exports.RestObjectId = Montage.create(ObjectId,/** @lends module:montage/data/restaccess/restobjectid.RestObjectId# */ { | ||
19 | |||
20 | |||
21 | }); | ||
diff --git a/node_modules/montage/data/restaccess/restselectorevaluator.js b/node_modules/montage/data/restaccess/restselectorevaluator.js deleted file mode 100755 index 17789b02..00000000 --- a/node_modules/montage/data/restaccess/restselectorevaluator.js +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
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/restaccess/restselectorevaluator | ||
8 | @requires montage/core/core | ||
9 | @requires montage/data/selector | ||
10 | @requires montage/core/logger | ||
11 | */ | ||
12 | var Montage = require("montage").Montage; | ||
13 | var SelectorEvaluator = require("data/selector").SelectorEvaluator; | ||
14 | var Selector = require("data/selector").Selector; | ||
15 | var logger = require("core/logger").logger("restselectorevaluator"); | ||
16 | /** | ||
17 | @class module:montage/data/restaccess/restselectorevaluator.RestSelectorEvaluator | ||
18 | @extends module:montage/data/selector.SelectorEvaluator | ||
19 | */ | ||
20 | var RestSelectorEvaluator = exports.RestSelectorEvaluator = Montage.create(SelectorEvaluator,/** @lends module:montage/data/restaccess/restselectorevaluator.RestSelectorEvaluator# */ { | ||
21 | |||
22 | |||
23 | }); | ||
24 | Selector.registry.registerEvaluator(RestSelectorEvaluator); | ||
diff --git a/node_modules/montage/data/restaccess/reststore.js b/node_modules/montage/data/restaccess/reststore.js deleted file mode 100755 index 9df05c2f..00000000 --- a/node_modules/montage/data/restaccess/reststore.js +++ /dev/null | |||
@@ -1,186 +0,0 @@ | |||
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/restaccess/reststore | ||
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 Promise = require("core/promise").Promise; | ||
15 | var logger = require("core/logger").logger("reststore"); | ||