Showing
3 changed files
with
10 additions
and
14 deletions
... | @@ -17,9 +17,10 @@ import java.util.List; | ... | @@ -17,9 +17,10 @@ import java.util.List; |
17 | import java.util.stream.Collectors; | 17 | import java.util.stream.Collectors; |
18 | 18 | ||
19 | /** | 19 | /** |
20 | - * Vue de listPublisherVersions.xhtml | 20 | + * listPublisherVersions.xhtml's view |
21 | - * Permet de voir l'ensemble des actions des éditeurs. | 21 | + * |
22 | - * Permet de voir l'ensemble des actions d'un éditeur. | 22 | + * Provides all PublisherAction |
23 | + * Provides all PublisherAction for a Publisher | ||
23 | */ | 24 | */ |
24 | @Named | 25 | @Named |
25 | @RequestScoped | 26 | @RequestScoped |
... | @@ -50,6 +51,7 @@ public class ListPublisherActionsView implements Serializable { | ... | @@ -50,6 +51,7 @@ public class ListPublisherActionsView implements Serializable { |
50 | ListPublisherActionsView() { | 51 | ListPublisherActionsView() { |
51 | //no args constructor to make it proxyable | 52 | //no args constructor to make it proxyable |
52 | } | 53 | } |
54 | + | ||
53 | @PostConstruct | 55 | @PostConstruct |
54 | @RequestAction | 56 | @RequestAction |
55 | public void init() { | 57 | public void init() { | ... | ... |
... | @@ -19,9 +19,8 @@ import java.util.List; | ... | @@ -19,9 +19,8 @@ import java.util.List; |
19 | import java.util.stream.Collectors; | 19 | import java.util.stream.Collectors; |
20 | 20 | ||
21 | /** | 21 | /** |
22 | - * Vue de listPublisherVersions.xhtml | 22 | + * listPublisherVersions.xhtml's view |
23 | - * Permet de voir l'ensemble des versions des éditeurs. | 23 | + * |
24 | - * Permet de voir l'ensemble des versions d'un éditeur et de valider l'une d'elles. | ||
25 | */ | 24 | */ |
26 | @Named | 25 | @Named |
27 | @RequestScoped | 26 | @RequestScoped |
... | @@ -86,22 +85,17 @@ public class ListPublisherVersionsView implements Serializable { | ... | @@ -86,22 +85,17 @@ public class ListPublisherVersionsView implements Serializable { |
86 | /** | 85 | /** |
87 | * Returns last validation action for Publisher | 86 | * Returns last validation action for Publisher |
88 | * | 87 | * |
89 | - * @param publisher | 88 | + * @param publisher Publisher we want last Validate PublisherAction |
90 | * @return PublisherAction | 89 | * @return PublisherAction |
91 | */ | 90 | */ |
92 | public PublisherAction getLastValidate(Publisher publisher) { | 91 | public PublisherAction getLastValidate(Publisher publisher) { |
93 | return publisherService.getLastValidate(publisher); | 92 | return publisherService.getLastValidate(publisher); |
94 | } | 93 | } |
95 | 94 | ||
96 | - // View Action being executed at view loading | ||
97 | - /* | ||
98 | - public void setView() { | ||
99 | - } | ||
100 | -*/ | ||
101 | /** | 95 | /** |
102 | * Validates a PublisherVersion for its Publisher | 96 | * Validates a PublisherVersion for its Publisher |
103 | * | 97 | * |
104 | - * @param publisherVersion | 98 | + * @param publisherVersion PublisherVersion to validate |
105 | */ | 99 | */ |
106 | public void validate(PublisherVersion publisherVersion) { | 100 | public void validate(PublisherVersion publisherVersion) { |
107 | logger.trace("validate"); | 101 | logger.trace("validate"); | ... | ... |
... | @@ -46,7 +46,7 @@ public interface PublisherService { | ... | @@ -46,7 +46,7 @@ public interface PublisherService { |
46 | PublisherAction validatePublisherVersion(@NotNull PublisherVersion publisherVersion); | 46 | PublisherAction validatePublisherVersion(@NotNull PublisherVersion publisherVersion); |
47 | 47 | ||
48 | /** | 48 | /** |
49 | - * @return all persisted PublisherVersions* | 49 | + * @return all persisted PublisherVersions |
50 | */ | 50 | */ |
51 | List<PublisherVersion> getAllPublisherVersions(); | 51 | List<PublisherVersion> getAllPublisherVersions(); |
52 | 52 | ... | ... |
-
Please register or login to post a comment