aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/data/restaccess
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/data/restaccess')
-rwxr-xr-xnode_modules/montage/data/restaccess/restblueprint.js138
-rwxr-xr-xnode_modules/montage/data/restaccess/restobjectid.js21
-rwxr-xr-xnode_modules/montage/data/restaccess/restselectorevaluator.js24
-rwxr-xr-xnode_modules/montage/data/restaccess/reststore.js186
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>
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/restaccess/restblueprint
8 @requires montage/core/core
9 @requires montage/data/blueprint
10 @requires montage/data/restaccess/restselectorevaluator
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 RestSelectorEvaluator = require("data/restaccess/restselectorevaluator").RestSelectorEvaluator; // registering the evaluators
21var logger = require("core/logger").logger("restblueprint");
22
23/**
24 @class module:montage/data/restaccess/restblueprint.RestBlueprintBinder
25 @extends module:montage/data/blueprint.BlueprintBinder
26*/
27var 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*/
64var 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*/
118var 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*/
124var 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*/
130var 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*/
136var 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>
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/restobjectid
8 @requires montage/data/objectid
9 @requires montage/core/logger
10*/
11var Montage = require("montage").Montage;
12var ObjectId = require("data/objectid").ObjectId;
13var logger = require("core/logger").logger("restobjectid");
14/**
15 @class module:montage/data/restaccess/restobjectid.RestObjectId
16 @extends module:montage/data/objectid.ObjectId
17*/
18var 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>
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/restaccess/restselectorevaluator
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("restselectorevaluator");
16/**
17 @class module:montage/data/restaccess/restselectorevaluator.RestSelectorEvaluator
18 @extends module:montage/data/selector.SelectorEvaluator
19*/
20var RestSelectorEvaluator = exports.RestSelectorEvaluator = Montage.create(SelectorEvaluator,/** @lends module:montage/data/restaccess/restselectorevaluator.RestSelectorEvaluator# */ {
21
22
23});
24Selector.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>
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/restaccess/reststore
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 Promise = require("core/promise").Promise;
15var logger = require("core/logger").logger("reststore");
16
17/**
18 @class module:montage/data/restaccess/reststore.RestStore
19 @extends module:montage/data/store.Store
20*/
21var RestStore = exports.RestStore = Montage.create(Store,/** @lends module:montage/data/restaccess/reststore.RestStore# */ {
22
23/**
24 Description TODO
25 @function