Showing
1 changed file
with
12 additions
and
11 deletions
... | @@ -14,10 +14,10 @@ import java.sql.Timestamp; | ... | @@ -14,10 +14,10 @@ import java.sql.Timestamp; |
14 | import java.util.List; | 14 | import java.util.List; |
15 | 15 | ||
16 | /** | 16 | /** |
17 | - * Vue de publisherVersion.xhtml | 17 | + * publisherVersion.xhtml's view |
18 | - * Permet la création, l'affichage et la modification d'une version d'éditeur. | 18 | + * Handles create, read and "update" of publisher versions. |
19 | - * La création d'une version crée l'éditeur et sa version initiale. | 19 | + * Create creates the Publisher and its first PublisherVersion |
20 | - * Le modification crée une nouvelle version liée à l'éditeur. | 20 | + * Update creates a new PublisherVersion linked to the Publisher |
21 | */ | 21 | */ |
22 | @Named | 22 | @Named |
23 | @ViewScoped | 23 | @ViewScoped |
... | @@ -52,7 +52,8 @@ public class PublisherVersionView implements Serializable { | ... | @@ -52,7 +52,8 @@ public class PublisherVersionView implements Serializable { |
52 | private transient List<PublisherAction> publisherActions; | 52 | private transient List<PublisherAction> publisherActions; |
53 | 53 | ||
54 | /** | 54 | /** |
55 | - * S'appuie sur PublisherService et SharedService | 55 | + * Uses PublisherService to get its data and SharedService to get countries |
56 | + * | ||
56 | * @param publisherService | 57 | * @param publisherService |
57 | * @param sharedService | 58 | * @param sharedService |
58 | */ | 59 | */ |
... | @@ -68,21 +69,21 @@ public class PublisherVersionView implements Serializable { | ... | @@ -68,21 +69,21 @@ public class PublisherVersionView implements Serializable { |
68 | 69 | ||
69 | @PostConstruct | 70 | @PostConstruct |
70 | /** | 71 | /** |
71 | - * Charge les pays. | 72 | + * Loads countries |
72 | */ | 73 | */ |
73 | public void init() { | 74 | public void init() { |
74 | availableCountries = sharedService.getAllCountries(); | 75 | availableCountries = sharedService.getAllCountries(); |
75 | } | 76 | } |
76 | 77 | ||
77 | /** | 78 | /** |
78 | - * Active le mode édition | 79 | + * Activates edition mode |
79 | */ | 80 | */ |
80 | public void edit() { | 81 | public void edit() { |
81 | editMode = true; | 82 | editMode = true; |
82 | } | 83 | } |
83 | 84 | ||
84 | /** | 85 | /** |
85 | - * Annule l'édition en cours. | 86 | + * Cancels current edition |
86 | */ | 87 | */ |
87 | public void cancel() { | 88 | public void cancel() { |
88 | if (!newPublisher) { | 89 | if (!newPublisher) { |
... | @@ -100,7 +101,7 @@ public class PublisherVersionView implements Serializable { | ... | @@ -100,7 +101,7 @@ public class PublisherVersionView implements Serializable { |
100 | email = null; | 101 | email = null; |
101 | uRL = null; | 102 | uRL = null; |
102 | publisherHistory = null; | 103 | publisherHistory = null; |
103 | - // Je ne pense pas que la ligne suivante soit nécessaire | 104 | + // I don't think the following line is useful |
104 | publisher = null; | 105 | publisher = null; |
105 | 106 | ||
106 | editMode = true; | 107 | editMode = true; |
... | @@ -108,7 +109,7 @@ public class PublisherVersionView implements Serializable { | ... | @@ -108,7 +109,7 @@ public class PublisherVersionView implements Serializable { |
108 | } | 109 | } |
109 | 110 | ||
110 | /** | 111 | /** |
111 | - * Enregistre la version courante. | 112 | + * Saves current version |
112 | */ | 113 | */ |
113 | public void save() { | 114 | public void save() { |
114 | logger.debug("save()"); | 115 | logger.debug("save()"); |
... | @@ -220,7 +221,7 @@ public class PublisherVersionView implements Serializable { | ... | @@ -220,7 +221,7 @@ public class PublisherVersionView implements Serializable { |
220 | 221 | ||
221 | } | 222 | } |
222 | 223 | ||
223 | - // get, set et is | 224 | + // Accessors |
224 | public int getPublisherVersionId() { | 225 | public int getPublisherVersionId() { |
225 | return publisherVersionId; | 226 | return publisherVersionId; |
226 | } | 227 | } | ... | ... |
-
Please register or login to post a comment