My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<appspec xmlns="http://www.clickframes.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
defaultPage="login" id="issuetracker" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Issue Tracker</title>
<description>
The Issue Tracker allows a team to record their progress on
collaborative tasks.
</description>
<outcomes>
<outcome id="error">
<title>Default Error Outcome</title>
<description>
Should an unexpected operational error occur during any
transition,
this outcome will define the destination (i.e. error)
page.
</description>
<pageRef>error</pageRef>
</outcome>
</outcomes>
<linkSets>
<linkSet id="global" global="true">
<title>Global Navigation</title>
<links>
<link>
<title>Home</title>
<pageRef>login</pageRef>
</link>
<link>
<title>Contact Us</title>
<pageRef>contact</pageRef>
</link>
<link>
<title>Privacy Policy</title>
<pageRef>privacy</pageRef>
</link>
<link>
<title>About</title>
<pageRef>about</pageRef>
</link>
<link>
<title>Logout</title>
<pageRef>logout</pageRef>
</link>
</links>
</linkSet>
<linkSet id="authenticated">
<title>Authenticated Navigation</title>
<links>
<link>
<title>View Issues</title>
<pageRef>viewIssues</pageRef>
</link>
<link>
<title>Add New Issue</title>
<pageRef>newIssue</pageRef>
</link>
<link>
<title>Change Password</title>
<pageRef>changePassword</pageRef>
</link>
</links>
</linkSet>
</linkSets>

<entities>
<entity id="user">
<title>User</title>
<description>User</description>
<properties>
<property id="username" primaryKey="true">
<title>Username</title>
<description>The username of the user</description>
</property>

<property id="password">
<title>Password</title>
<description>The password of the user</description>
</property>
</properties>
</entity>

<entity id="issue">
<title>Issue</title>
<description>Issue</description>
<properties>
<property id="id" primaryKey="true">
<title>Id</title>
</property>
<property id="title">
<title>Title</title>
</property>
<property id="description">
<title>Description</title>
</property>
<property id="priority">
<title>Priority</title>
<options>
<option value="high">High</option>
<option value="normal">Normal</option>
<option value="low">Low</option>
</options>
<default value="normal" />

</property>
<property id="assignee">
<title>Assignee</title>
<description>Whom is the project assigned to? The id of the user in the project</description>
<options>
<option value="jonathan">Jon</option>
<option value="steven">Steven</option>
<option value="evan">Evan</option>
<option value="nicole">Nicole</option>
<option value="vineet">Vineet</option>
<option value="will">Will</option>
</options>
</property>

<property id="owner" type="entity">
<entityRef entity="user" />
<title>Owner</title>
<description>Owner of this issue</description>
</property>

<property id="environment">
<title>Environment</title>
<description>The environment of where the issue was found. Valid values, 'Production', 'Testing' and 'Development'</description>
<options>
<option value="prod">Production</option>
<option value="test">Testing</option>
<option value="dev">Development</option>
</options>
</property>

<property id="attachment" type="file">
<title>Attachment</title>
<description>Attachments, if any</description>
</property>
</properties>
</entity>
</entities>

<pages>
<page id="login">
<title>Home</title>
<description>
This page introduces the user to Issue Tracker and
shows a login
form.
</description>
<contents>
<content>Welcome you Issue tracker. Login to continue.</content>
</contents>
<facts>
<fact>
Authentication will be handled by a back-end service defined
by the
client.
</fact>
<fact>
Three consecutive login failures within a 30 minute period
will lock
the user's account for one hour.
</fact>
</facts>
<forms>
<form id="loginForm">
<inputs>
<input id="username" type="text" loginUsername="true">
<entityPropertyRef entity="user"
property="username" />
<title>Username</title>
<validations>
<validation type="required"
description="Please enter your username." />
</validations>
</input>
<input id="password" type="password" loginPassword="true">
<entityPropertyRef entity="user"
property="password" />
<title>Password</title>
<validations>
<validation type="required"
description="Please enter your password." />
</validations>
</input>
</inputs>
<actions>
<action id="login" type="login">
<title>Login</title>
<outcomes>
<outcome id="loginSuccessful"
loginSuccessfulOutcome="true">
<title>Login successful</title>
<pageRef>viewIssues</pageRef>
<facts>
<fact>
Seam Authentication automatically displays welcome
message
</fact>
</facts>
</outcome>
<outcome id="loginFailed" loginFailedOutcome="true"
negative="true">
<title>Login failed</title>
<pageRef>login</pageRef>
<message>Sorry, your username or password are not correct.</message>
</outcome>
</outcomes>
</action>
</actions>
</form>
</forms>
<links>
<link>
<title>Create Account</title>
<pageRef>createAccount</pageRef>
</link>
</links>
</page>

<page id="logout">
<title>Logout</title>
<description>Accessing this page will logout the current user</description>
<actions>
<action id="accessPage" type="logout">
<title>Logout user</title>
<outcomes>
<outcome id="logoutSuccessful">
<title>Logout successful</title>
<pageRef>login</pageRef>
<message>Logged out</message>
</outcome>
</outcomes>
</action>
</actions>
</page>

<page id="createAccount">
<title>Create An Account</title>
<description>
This page shows the user an account creation form.
Login not
required.
</description>
<forms>
<form id="createAccountForm">
<inputs>
<input type="text">
<entityPropertyRef entity="user"
property="username" />
<title>Username</title>
<validations>
<validation type="required" description="Please enter a username." />
</validations>
</input>
<input id="password" type="password">
<entityPropertyRef entity="user"
property="password" />
<title>Password</title>
<validations>
<validation type="required" description="Please enter a password." />
<validation type="length(min=6)"
description="Password must be at least 6 characters." />
</validations>
</input>
<input type="password">
<title>Repeat Password</title>
<description>User must enter password twice so it can be
validated for accuracy.</description>
<validations>
<validation type="required"
description="Please repeat your password." />
<validation type="matchesInput(password)"></validation>
</validations>
</input>
</inputs>
<actions>
<action id="createAccount" type="create">
<title>Create account</title>
<outcomes>
<outcome id="accountCreated">
<title>Account created</title>
<description>
User's account has been successfully
created.
</description>
<pageRef>login</pageRef>
<message>
Your account has been created. Please log in.
</message>
</outcome>
</outcomes>
</action>
</actions>
</form>
</forms>
</page>
<page id="changePassword" login-required="true">
<title>Change Password</title>
<description>
This page lets the user change his password. Login
required.
</description>
<facts>
<fact>
The user may not change their password to any of their ten
previous
passwords.
</fact>
</facts>
<forms>
<form id="changePasswordForm">
<inputs>
<input type="password">
<title>Current Password</title>
<validations>
<validation type="required"
description="Please enter your current password." />
</validations>
</input>
<input type="password">
<title>New Password</title>
<validations>
<validation type="required"
description="Please enter a new password." />
<validation type="length(min=6)"
description="New password must be at least 6 characters." />
</validations>
</input>
<input type="password">
<title>Repeat New Password</title>
<validations>
<validation type="required"
description="Please repeat your new password." />
<validation type="length(min=6)"
description="New password must be at least 6 characters." />
</validations>
</input>
</inputs>
<actions>
<action>
<title>Change Password</title>
<outcomes>
<outcome id="passwordChanged">
<title>Password changed successfully</title>
<pageRef>viewIssues</pageRef>
<message>
Your password has been changed.
</message>
</outcome>
<outcome id="wrongOldPassword" negative="true">
<title>Current password is incorrect</title>
<pageRef>changePassword</pageRef>
<message>
Sorry, the current password you entered is
incorrect.
</message>
</outcome>
<outcome id="passwordsDontMatch" negative="true">
<title>New passwords do not match</title>
<pageRef>changePassword</pageRef>
<message>
Sorry, new passwords do not match.
</message>
</outcome>
</outcomes>
</action>
</actions>
</form>
</forms>
<linkSetRefs>
<linkSetRef id="authenticated" />
</linkSetRefs>
</page>
<page id="viewIssues" login-required="true">
<title>View Issues</title>
<description>
This page shows the user all of his team's issues.
</description>
<linkSetRefs>
<linkSetRef id="authenticated" />
</linkSetRefs>
<outputLists>
<outputList entityRef="issue" id="teamIssues">
<title>My Team's Issues</title>
<description>All issues belonging to user's team</description>
<facts>
<fact>A link per issue listed to view the issue</fact>
</facts>
<links>
<link>
<title>View Issue</title>
<pageRef>viewIssue</pageRef>
</link>
<link>
<title>Edit Issue</title>
<pageRef>editIssue</pageRef>
</link>
</links>
</outputList>
</outputLists>
</page>
<page id="newIssue" login-required="true">
<title>Add New Issue</title>
<description>
This page provides a form for submitting a new issue.
</description>
<forms>
<form id="newIssueForm">
<inputs>
<input type="text" id="title">
<entityPropertyRef entity="issue"
property="title" />
<title>Issue Title</title>
<validations>
<validation type="required"
description="Please enter an issue title." />
</validations>
</input>
<input type="textarea" id="description">
<entityPropertyRef entity="issue"
property="description" />
<title>Description</title>
<validations>
<validation type="required"
description="Please enter a description for your issue." />
</validations>
</input>

<input type="dropdown" id="priority">
<entityPropertyRef entity="issue"
property="priority" />
</input>

<input type="dropdown" id="assignee">
<entityPropertyRef entity="issue"
property="assignee" />
<validations>
<validation type="required" description="Please check one assignee" />
</validations>
</input>
<!--
<input type="multiple"> <title>Components</title>
<validations> <validation type="required" description="You
must choose at least one component." /> </validations>
<options> <option value="view">View Layer</option> <option
value="model">Model Layer</option> <option
value="controller">Controller Layer</option> </options>
</input>
-->
<input type="radio" id="environment">
<entityPropertyRef entity="issue"
property="environment" />
</input>
<input type="upload" id="attachment">
<entityPropertyRef entity="issue"
property="attachment" />
</input>
</inputs>
<actions>
<action id="create" type="create">
<title>Save New Issue</title>
<outcomes>
<outcome id="issueSaved">
<title>Issue Saved</title>
<pageRef>viewIssue</pageRef>
<message>
Issue saved successfully.
</message>
</outcome>
</outcomes>
</action>
</actions>
</form>
</forms>
<linkSetRefs>
<linkSetRef id="authenticated" />
</linkSetRefs>
<links>
<link>
<title>Cancel</title>
<pageRef>viewIssues</pageRef>
</link>
</links>
</page>
<page id="viewIssue" login-required="true">
<title>View Issue</title>
<description>
This page displays the details of an issue.
</description>
<params>
<param type="text" id="issueId" required="true">
<entityPropertyRef entity="issue" property="id" />
<title>Issue ID</title>
<description>
Unique identifier of issue to be viewed.
</description>
</param>
</params>
<outputs>
<output id="issue" entity="issue">
<title>Issue</title>
<description>The issue viewed on this page</description>
</output>
</outputs>
<actions>
<action id="resolve" type="update">
<title>Resolve Issue</title>
<outcomes>
<outcome id="issueResolved">
<title>Issue Resolved</title>
<pageRef>viewIssues</pageRef>
<message>
Issue resolved!
</message>
</outcome>
</outcomes>
</action>
</actions>
<linkSetRefs>
<linkSetRef id="authenticated" />
</linkSetRefs>
<links>
<link>
<title>Edit Issue</title>
<pageRef>editIssue</pageRef>
</link>
</links>
</page>
<page id="editIssue" login-required="true">
<title>Edit Issue</title>
<description>
This page allows the user to modify an existing issue.
</description>
<params>
<param type="text" required="true" id="issueId">
<entityPropertyRef entity="issue" property="id" />
<title>Issue ID</title>
<description>
Unique identifier of issue to be modified.
</description>
</param>
</params>

<outputs>
<output entity="issue" id="issue">
<title>Issue</title>
<description>The issue being edited</description>
</output>
</outputs>

<forms>
<form id="editIssueForm">
<inputs>
<input type="text" id="issueTitle">
<entityPropertyRef entity="issue"
property="title" />
<title>Issue Title</title>
<validations>
<validation type="required"
description="Please enter an issue title." />
</validations>
</input>
<input type="textarea" id="description">
<entityPropertyRef entity="issue"
property="description" />
<title>Description</title>
<validations>
<validation type="required"
description="Please enter a description for your issue." />
</validations>
</input>
<input type="dropdown" id="priority">
<entityPropertyRef entity="issue"
property="priority" />
<title>Priority</title>
<validations>
<validation type="required" description="Please enter a priority." />
</validations>
</input>
<input type="dropdown" id="owner">
<entityPropertyRef entity="issue"
property="assignee" />
<validations>
<validation type="required" description="Please enter an owner." />
</validations>
</input>
<input type="radio" id="environment">
<entityPropertyRef entity="issue"
property="environment" />
<validations>
<validation type="required"
description="Please enter an environment." />
</validations>
</input>
<input type="upload" id="attachment">
<entityPropertyRef entity="issue"
property="attachment" />
</input>
</inputs>

<actions>
<action id="updateIssue" type="update">
<title>Update Issue</title>
<outcomes>
<outcome id="issueUpdated">
<title>Issue Saved</title>
<pageRef>viewIssue</pageRef>
<message>
Issue saved successfully.
</message>
</outcome>
</outcomes>
</action>
</actions>
</form>
</forms>

<linkSetRefs>
<linkSetRef id="authenticated" />
</linkSetRefs>
<links>
<link>
<title>Cancel</title>
<pageRef>viewIssue</pageRef>
</link>
</links>
</page>
<page id="contact">
<title>Contact Issue Tracker</title>
<description>
This page displays our corporate contact information,
including
address, phone number, and key e-mail addresses.
</description>
</page>
<page id="privacy">
<title>Privacy Policy</title>
<description>
This page displays the corporate privacy policy.
</description>
<links>
<link>
<title>Contact Legal Department</title>
<href>mailto:legal@issuetracker.com
</href>
</link>
</links>
</page>

<page id="about">
<title>About this demo</title>
<description>This application is 100% generated from the XML specification. The application is generated by running the
Seam2 plugin against the appspec.</description>
<contents>
<content id="about">This application is 100% generated from the XML specification. The application is generated by running the
Seam2 plugin against the appspec.</content>
</contents>
<links>
<link>
<title>Google code project</title>
<href>http://code.google.com/p/clickframes-seam-issuetracker-demo/</href>
</link>
<link>
<title>Browse source code</title>
<href>http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/#svn/trunk</href>
</link>
<link>
<title>View Appspec.xml</title>
<href>http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/appspec.xml</href>
</link>
<link>
<title>View Techspec.xml</title>
<href>http://code.google.com/p/clickframes-seam-issuetracker-demo/source/browse/trunk/src/main/clickframes/techspec.xml</href>
<facts>
<fact>The techspec.xml file contains a list of all the plugins which should be run for this project</fact>
</facts>
</link>
</links>
</page>

<page id="error">
<title>Operational Error</title>
<description>
Should an unexpected operational error occur during any
transition,
this page will appear with instructions on available
support
resources.
</description>
</page>

<page id="debug">
<title>Database Debug</title>
<description>This page displays all data stored in the system.</description>

<outputLists>
<outputList entityRef="user" id="userList">
<title>All Users</title>
<description>Display all Users in the system.</description>
</outputList>

<outputList entityRef="issue" id="issueList">
<title>All Issues</title>
<description>Display all Issues in the system.</description>
</outputList>
</outputLists>
</page>
</pages>

<emails>
<email id="newAccountMessage">
<title>New Account Message</title>
<description>
This e-mail is sent to all new users upon creating
an
account.
</description>
<emailSubject>Welcome to Issue Tracker</emailSubject>
<emailText>
<![CDATA[
Dear FIRSTNAME LASTNAME,
Your account has been created.
Please log in at APPLICATIONURL with your username USERNAME.
Regards,
Issue Tracker
]]>
</emailText>
<facts>
<fact>
E-mail shall include the user's first and last name.
</fact>
<fact>
E-mail shall include a URL where the user may log in.
</fact>
<fact>
E-mail shall include the user's username.
</fact>
</facts>
</email>
</emails>
</appspec>

Change log

r39 by vineet.manohar on Feb 19, 2010   Diff
regenerated code after adding many to one
support
Go to: 
Project members, sign in to write a code review

Older revisions

r38 by vineet.manohar on Feb 16, 2010   Diff
updated with latest generated code
r37 by vineet.manohar on Feb 12, 2010   Diff
checked in latest generated code
r34 by vineet.manohar on Feb 5, 2010   Diff
work in progress when implementing
file upload/download
All revisions of this file

File info

Size: 25559 bytes, 743 lines
Powered by Google Project Hosting