Showing
3 changed files
with
288 additions
and
0 deletions
doc/publisherVersion.save.add.puml
0 → 100644
1 | +@startuml | ||
2 | +actor Contributor | ||
3 | +participant publisherVersion.xhtml | ||
4 | +participant PublisherVersionView | ||
5 | +participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >> | ||
6 | +participant SharedServiceDefault as SharedServiceDefault << SharedService >> | ||
7 | +participant publisher | ||
8 | +participant publisherVersions as publisherVersions << Set<PublisherVersion> >> | ||
9 | +participant publisherVersion | ||
10 | +participant PublisherVersionRepository | ||
11 | +participant PublisherRepository | ||
12 | + | ||
13 | +Contributor -> publisherVersion.xhtml : Save | ||
14 | +activate publisherVersion.xhtml | ||
15 | +publisherVersion.xhtml -> PublisherVersionView: save() | ||
16 | +activate PublisherVersionView | ||
17 | + | ||
18 | +alt newPublisher | ||
19 | +PublisherVersionView -> PublisherVersionView: add() | ||
20 | +activate PublisherVersionView | ||
21 | +PublisherVersionView -> PublisherVersionView: getNewPublisherVersion() | ||
22 | +activate PublisherVersionView | ||
23 | +create publisherVersion | ||
24 | +PublisherVersionView -> publisherVersion: new | ||
25 | +PublisherVersionView -> publisherVersion: setValues(publisherAddressCountry, addressLocality, addressRegion, email, publisherHistory, publisherName, postalCode, postOfficeBoxNumber, ...) | ||
26 | +activate publisherVersion | ||
27 | +publisherVersion -> PublisherVersionView | ||
28 | +deactivate publisherVersion | ||
29 | +PublisherVersionView -> PublisherVersionView: publisherVersion | ||
30 | + | ||
31 | +deactivate PublisherVersionView | ||
32 | +PublisherVersionView -> PublisherServiceDefault: addNewPublisher(publisherVersion) | ||
33 | +activate PublisherServiceDefault | ||
34 | +create publisher | ||
35 | +PublisherServiceDefault -> publisher: new | ||
36 | +create publisherVersions | ||
37 | +PublisherServiceDefault -> publisherVersions: new | ||
38 | +PublisherServiceDefault -> publisherVersions: add(publisherVersion) | ||
39 | +activate publisherVersions | ||
40 | +publisherVersions -> PublisherServiceDefault | ||
41 | +deactivate publisherVersions | ||
42 | +PublisherServiceDefault -> publisher: setVersions(publisherVersions) | ||
43 | +activate publisher | ||
44 | +publisher -> PublisherServiceDefault | ||
45 | +deactivate publisher | ||
46 | +PublisherServiceDefault -> publisherVersion: setPublisher(publisher) | ||
47 | +activate publisherVersion | ||
48 | +publisherVersion -> PublisherServiceDefault | ||
49 | +deactivate publisherVersion | ||
50 | +PublisherServiceDefault -> SharedServiceDefault: getCurrentUser() | ||
51 | +activate SharedServiceDefault | ||
52 | +SharedServiceDefault -> PublisherServiceDefault: currentUser | ||
53 | +deactivate SharedServiceDefault | ||
54 | +PublisherServiceDefault -> publisherVersion:setPublisherVersionCreator(currentUser) | ||
55 | +activate publisherVersion | ||
56 | +publisherVersion -> PublisherServiceDefault | ||
57 | +deactivate publisherVersion | ||
58 | +PublisherServiceDefault -> publisherVersion:setPublisherVersionDatetime(currentDatetime) | ||
59 | +activate publisherVersion | ||
60 | +publisherVersion -> PublisherServiceDefault | ||
61 | +deactivate publisherVersion | ||
62 | +PublisherServiceDefault -> PublisherServiceDefault:savePublisherVersion(publisherVersion) | ||
63 | +activate PublisherServiceDefault | ||
64 | + | ||
65 | +PublisherServiceDefault -> PublisherVersionRepository:save(publisherVersion) | ||
66 | +activate PublisherVersionRepository | ||
67 | +PublisherVersionRepository -> PublisherServiceDefault | ||
68 | +deactivate PublisherVersionRepository | ||
69 | + | ||
70 | + | ||
71 | +PublisherServiceDefault -> PublisherServiceDefault | ||
72 | +deactivate PublisherServiceDefault | ||
73 | +PublisherServiceDefault -> PublisherServiceDefault:savePublisher(publisher) | ||
74 | +activate PublisherServiceDefault | ||
75 | + | ||
76 | +PublisherServiceDefault -> PublisherRepository:save(publisher) | ||
77 | +activate PublisherRepository | ||
78 | +PublisherRepository -> PublisherServiceDefault | ||
79 | +deactivate PublisherRepository | ||
80 | + | ||
81 | +PublisherServiceDefault -> PublisherServiceDefault | ||
82 | +deactivate PublisherServiceDefault | ||
83 | + | ||
84 | +PublisherServiceDefault -> PublisherVersionView: publisherVersion | ||
85 | +deactivate PublisherServiceDefault | ||
86 | +PublisherVersionView -> PublisherVersionView | ||
87 | + | ||
88 | +deactivate PublisherVersionView | ||
89 | + | ||
90 | +else | ||
91 | +PublisherVersionView -> PublisherVersionView: update() | ||
92 | +activate PublisherVersionView | ||
93 | +PublisherVersionView -> PublisherVersionView | ||
94 | +deactivate PublisherVersionView | ||
95 | +end | ||
96 | + | ||
97 | +PublisherVersionView -> publisherVersion.xhtml | ||
98 | +deactivate PublisherVersionView | ||
99 | +publisherVersion.xhtml -> Contributor | ||
100 | +deactivate publisherVersion.xhtml | ||
101 | + | ||
102 | +@enduml | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
doc/publisherVersion.save.update.puml
0 → 100644
1 | +@startuml | ||
2 | +actor Contributor | ||
3 | +participant publisherVersion.xhtml | ||
4 | +participant PublisherVersionView | ||
5 | +participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >> | ||
6 | +participant SharedServiceDefault as SharedServiceDefault << SharedService >> | ||
7 | +participant publisher | ||
8 | +participant publisherVersions as publisherVersions << Set<PublisherVersion> >> | ||
9 | +participant publisherVersion | ||
10 | +participant PublisherVersionRepository | ||
11 | +participant PublisherRepository | ||
12 | + | ||
13 | +Contributor -> publisherVersion.xhtml : Save | ||
14 | +activate publisherVersion.xhtml | ||
15 | +publisherVersion.xhtml -> PublisherVersionView: save() | ||
16 | +activate PublisherVersionView | ||
17 | + | ||
18 | +alt newPublisher | ||
19 | +PublisherVersionView -> PublisherVersionView: add() | ||
20 | +activate PublisherVersionView | ||
21 | +PublisherVersionView -> PublisherVersionView | ||
22 | +deactivate PublisherVersionView | ||
23 | + | ||
24 | +else | ||
25 | +PublisherVersionView -> PublisherVersionView: update() | ||
26 | +activate PublisherVersionView | ||
27 | + | ||
28 | +PublisherVersionView -> PublisherVersionView: getNewPublisherVersion() | ||
29 | +activate PublisherVersionView | ||
30 | +create publisherVersion | ||
31 | +PublisherVersionView -> publisherVersion: new | ||
32 | +PublisherVersionView -> publisherVersion: setValues(publisherAddressCountry, addressLocality, addressRegion, email, publisherHistory, publisherName, postalCode, postOfficeBoxNumber, ...) | ||
33 | +activate publisherVersion | ||
34 | +publisherVersion -> PublisherVersionView | ||
35 | +deactivate publisherVersion | ||
36 | +PublisherVersionView -> PublisherVersionView: publisherVersion | ||
37 | +deactivate PublisherVersionView | ||
38 | +PublisherVersionView -> PublisherServiceDefault: addVersionToPublisher(publisher, publisherVersion) | ||
39 | +activate PublisherServiceDefault | ||
40 | +PublisherServiceDefault -> publisher: getVersions() | ||
41 | +activate publisher | ||
42 | +publisher -> PublisherServiceDefault: publisherVersions | ||
43 | +deactivate publisher | ||
44 | +PublisherServiceDefault -> publisherVersions: add(publisherVersion) | ||
45 | +activate publisherVersions | ||
46 | +publisherVersions -> PublisherServiceDefault | ||
47 | +deactivate publisherVersions | ||
48 | +PublisherServiceDefault -> publisher: setVersions(publisherVersions) | ||
49 | +activate publisher | ||
50 | +publisher -> PublisherServiceDefault | ||
51 | +deactivate publisher | ||
52 | +PublisherServiceDefault -> publisherVersion: setPublisher(publisher) | ||
53 | +activate publisherVersion | ||
54 | +publisherVersion -> PublisherServiceDefault | ||
55 | +deactivate publisherVersion | ||
56 | +PublisherServiceDefault -> SharedServiceDefault: getCurrentUser() | ||
57 | +activate SharedServiceDefault | ||
58 | +SharedServiceDefault -> PublisherServiceDefault: currentUser | ||
59 | +deactivate SharedServiceDefault | ||
60 | +PublisherServiceDefault -> publisherVersion:setPublisherVersionCreator(currentUser) | ||
61 | +activate publisherVersion | ||
62 | +publisherVersion -> PublisherServiceDefault | ||
63 | +deactivate publisherVersion | ||
64 | +PublisherServiceDefault -> publisherVersion:setPublisherVersionDatetime(currentDatetime) | ||
65 | +activate publisherVersion | ||
66 | +publisherVersion -> PublisherServiceDefault | ||
67 | +deactivate publisherVersion | ||
68 | + | ||
69 | +PublisherServiceDefault -> PublisherServiceDefault:savePublisherVersion(publisherVersion) | ||
70 | +activate PublisherServiceDefault | ||
71 | + | ||
72 | +PublisherServiceDefault -> PublisherVersionRepository:save(publisherVersion) | ||
73 | +activate PublisherVersionRepository | ||
74 | +PublisherVersionRepository -> PublisherServiceDefault | ||
75 | +deactivate PublisherVersionRepository | ||
76 | + | ||
77 | + | ||
78 | +PublisherServiceDefault -> PublisherServiceDefault | ||
79 | +deactivate PublisherServiceDefault | ||
80 | +PublisherServiceDefault -> PublisherServiceDefault:savePublisher(publisher) | ||
81 | +activate PublisherServiceDefault | ||
82 | + | ||
83 | +PublisherServiceDefault -> PublisherRepository:save(publisher) | ||
84 | +activate PublisherRepository | ||
85 | +PublisherRepository -> PublisherServiceDefault | ||
86 | +deactivate PublisherRepository | ||
87 | +PublisherServiceDefault -> PublisherServiceDefault | ||
88 | +deactivate PublisherServiceDefault | ||
89 | + | ||
90 | + | ||
91 | +PublisherServiceDefault -> PublisherVersionView: publisherVersion | ||
92 | +deactivate PublisherServiceDefault | ||
93 | +PublisherVersionView -> PublisherVersionView | ||
94 | +deactivate PublisherVersionView | ||
95 | +end | ||
96 | + | ||
97 | +PublisherVersionView -> publisherVersion.xhtml | ||
98 | +deactivate PublisherVersionView | ||
99 | +publisherVersion.xhtml -> Contributor | ||
100 | +deactivate publisherVersion.xhtml | ||
101 | + | ||
102 | +@enduml | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
doc/publisherVersion.validate.puml
0 → 100644
1 | +@startuml | ||
2 | +actor Validator | ||
3 | +participant listPublisherVersions.xhtml | ||
4 | +participant ListPublisherVersionView | ||
5 | +participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >> | ||
6 | +participant SharedServiceDefault as SharedServiceDefault << SharedService >> | ||
7 | + | ||
8 | +participant publisherVersion | ||
9 | +participant publisher | ||
10 | +participant publisherAction | ||
11 | + | ||
12 | +participant PublisherRepository | ||
13 | +participant PublisherActionRepository | ||
14 | + | ||
15 | +Validator -> listPublisherVersions.xhtml: Validate | ||
16 | +activate listPublisherVersions.xhtml | ||
17 | +listPublisherVersions.xhtml -> ListPublisherVersionView: validate(publisherVersion) | ||
18 | +activate ListPublisherVersionView | ||
19 | +ListPublisherVersionView -> PublisherServiceDefault: validatePublisherVersion(publisherVersion) | ||
20 | +activate PublisherServiceDefault | ||
21 | +PublisherServiceDefault -> publisherVersion: getPublisher() | ||
22 | +activate publisherVersion | ||
23 | +publisherVersion -> PublisherServiceDefault: publisher | ||
24 | +deactivate publisherVersion | ||
25 | +PublisherServiceDefault -> publisher: setValidatedVersion(publisherVersion) | ||
26 | +activate publisher | ||
27 | +publisher -> PublisherServiceDefault | ||
28 | +deactivate publisher | ||
29 | +create publisherAction | ||
30 | +PublisherServiceDefault -> publisherAction: new | ||
31 | + | ||
32 | +PublisherServiceDefault -> SharedServiceDefault: getCurrentUser() | ||
33 | +activate SharedServiceDefault | ||
34 | +SharedServiceDefault -> PublisherServiceDefault: currentUser | ||
35 | +deactivate SharedServiceDefault | ||
36 | +PublisherServiceDefault -> publisherAction: setPublisherActionActor(currentUser) | ||
37 | +activate publisherAction | ||
38 | +publisherAction -> PublisherServiceDefault | ||
39 | +deactivate publisherAction | ||
40 | +PublisherServiceDefault -> publisherAction: setPublisherActionDatetime(currentDatetime) | ||
41 | +activate publisherAction | ||
42 | +publisherAction -> PublisherServiceDefault | ||
43 | +deactivate publisherAction | ||
44 | +PublisherServiceDefault -> publisherAction: setActionType(ActionType.VALIDATE) | ||
45 | +activate publisherAction | ||
46 | +publisherAction -> PublisherServiceDefault | ||
47 | +deactivate publisherAction | ||
48 | +PublisherServiceDefault -> publisherAction: setPublisherVersion(publisherVersion) | ||
49 | +activate publisherAction | ||
50 | +publisherAction -> PublisherServiceDefault | ||
51 | +deactivate publisherAction | ||
52 | +PublisherServiceDefault -> publisherAction: setPublisher(publisher) | ||
53 | +activate publisherAction | ||
54 | +publisherAction -> PublisherServiceDefault | ||
55 | +deactivate publisherAction | ||
56 | + | ||
57 | +PublisherServiceDefault -> PublisherServiceDefault: savePublisher(publisher) | ||
58 | +activate PublisherServiceDefault | ||
59 | +PublisherServiceDefault -> PublisherRepository: save(publisher) | ||
60 | +activate PublisherRepository | ||
61 | +PublisherRepository -> PublisherServiceDefault | ||
62 | +deactivate PublisherRepository | ||
63 | +PublisherServiceDefault -> PublisherServiceDefault | ||
64 | +deactivate PublisherServiceDefault | ||
65 | + | ||
66 | +PublisherServiceDefault -> PublisherServiceDefault: index(publisher) | ||
67 | +activate PublisherServiceDefault | ||
68 | +PublisherServiceDefault -> PublisherServiceDefault | ||
69 | +note right: Traité dans la partie indexation et recherche | ||
70 | +deactivate PublisherServiceDefault | ||
71 | + | ||
72 | +PublisherServiceDefault -> PublisherActionRepository: save(publisherAction) | ||
73 | +activate PublisherActionRepository | ||
74 | +PublisherActionRepository -> PublisherServiceDefault | ||
75 | +deactivate PublisherActionRepository | ||
76 | + | ||
77 | +PublisherServiceDefault -> ListPublisherVersionView: publisherAction | ||
78 | +deactivate PublisherServiceDefault | ||
79 | +ListPublisherVersionView -> listPublisherVersions.xhtml | ||
80 | +deactivate ListPublisherVersionView | ||
81 | +listPublisherVersions.xhtml -> Validator | ||
82 | +deactivate listPublisherVersions.xhtml | ||
83 | + | ||
84 | +@enduml | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment