File tree Expand file tree Collapse file tree 2 files changed +65
-2
lines changed Expand file tree Collapse file tree 2 files changed +65
-2
lines changed Original file line number Diff line number Diff line change 29
29
return new Gitana . Job ( this . getCluster ( ) , this ) ;
30
30
} ,
31
31
32
+ /**
33
+ * @override
34
+ */
35
+ getUri : function ( )
36
+ {
37
+ return "/jobs/" + this . getId ( ) ;
38
+ } ,
39
+
32
40
/**
33
41
* @returns {String } the type id of the job
34
42
*/
164
172
getPausedTimestamp : function ( )
165
173
{
166
174
return this . get ( "paused_timestamp" ) ;
167
- }
175
+ } ,
176
+
177
+ //////////////////////////////////////////////////////////////////////////////////////////
178
+ //
179
+ // ATTACHMENTS
180
+ //
181
+ //////////////////////////////////////////////////////////////////////////////////////////
182
+
183
+ /**
184
+ * Hands back an attachments map.
185
+ *
186
+ * @chained attachment map
187
+ *
188
+ * @param local
189
+ *
190
+ * @public
191
+ */
192
+ listAttachments : Gitana . Methods . listAttachments ( ) ,
193
+
194
+ /**
195
+ * Picks off a single attachment
196
+ *
197
+ * @chained attachment
198
+ *
199
+ * @param attachmentId
200
+ */
201
+ attachment : function ( attachmentId )
202
+ {
203
+ return this . listAttachments ( ) . select ( attachmentId ) ;
204
+ } ,
205
+
206
+ /**
207
+ * Creates an attachment.
208
+ *
209
+ * When using this method from within the JS driver, it really only works for text-based content such
210
+ * as JSON or text.
211
+ *
212
+ * @chained attachment
213
+ *
214
+ * @param attachmentId (use null or false for default attachment)
215
+ * @param contentType
216
+ * @param data
217
+ */
218
+ attach : Gitana . Methods . attach ( ) ,
219
+
220
+ /**
221
+ * Deletes an attachment.
222
+ *
223
+ * @param attachmentId
224
+ */
225
+ unattach : Gitana . Methods . unattach ( ) ,
226
+
227
+ /**
228
+ * Generates a URI to a preview resource.
229
+ */
230
+ getPreviewUri : Gitana . Methods . getPreviewUri ( )
168
231
} ) ;
169
232
170
233
} ) ( window ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gitanajs" ,
3
- "version" : " 1.0.303 " ,
3
+ "version" : " 1.0.304 " ,
4
4
"repository" : {
5
5
"type" : " git" ,
6
6
"url" : " git://github.com/gitana/gitana-javascript-driver.git"
You can’t perform that action at this time.
0 commit comments