diff options
author | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
commit | 313a62245400e6c8cfa6d2f02c603cc7f01ddfc6 (patch) | |
tree | c207d1290be0e894a57b03098bbb7bbe5f2aee86 /node_modules/montage/data/restaccess/restblueprint.js | |
parent | 2496e0d0b0ac5f8c53b12de77f0feda69ce4a2f4 (diff) | |
parent | 392a559e90357d48c910a07617261483b2b45476 (diff) | |
download | ninja-313a62245400e6c8cfa6d2f02c603cc7f01ddfc6.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'node_modules/montage/data/restaccess/restblueprint.js')
-rwxr-xr-x | node_modules/montage/data/restaccess/restblueprint.js | 138 |
1 files changed, 0 insertions, 138 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 | }); | ||