Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-02-14 10:50:57 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3eb3d52cab2b7508e69ef272ccbb6dbbbac24b08
3eb3d52c
1 parent
9f06ce72
Comments in English
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
View file @
3eb3d52
...
...
@@ -14,10 +14,10 @@ import java.sql.Timestamp;
import
java.util.List
;
/**
*
Vue de publisherVersion.xhtml
*
Permet la création, l'affichage et la modification d'une version d'éditeur
.
*
La création d'une version crée l'éditeur et sa version initiale.
*
Le modification crée une nouvelle version liée à l'éditeur.
*
publisherVersion.xhtml's view
*
Handles create, read and "update" of publisher versions
.
*
Create creates the Publisher and its first PublisherVersion
*
Update creates a new PublisherVersion linked to the Publisher
*/
@Named
@ViewScoped
...
...
@@ -52,7 +52,8 @@ public class PublisherVersionView implements Serializable {
private
transient
List
<
PublisherAction
>
publisherActions
;
/**
* S'appuie sur PublisherService et SharedService
* Uses PublisherService to get its data and SharedService to get countries
*
* @param publisherService
* @param sharedService
*/
...
...
@@ -68,21 +69,21 @@ public class PublisherVersionView implements Serializable {
@PostConstruct
/**
*
Charge les pays.
*
Loads countries
*/
public
void
init
()
{
availableCountries
=
sharedService
.
getAllCountries
();
}
/**
* Activ
e le mode édition
* Activ
ates edition mode
*/
public
void
edit
()
{
editMode
=
true
;
}
/**
*
Annule l'édition en cours.
*
Cancels current edition
*/
public
void
cancel
()
{
if
(!
newPublisher
)
{
...
...
@@ -100,7 +101,7 @@ public class PublisherVersionView implements Serializable {
email
=
null
;
uRL
=
null
;
publisherHistory
=
null
;
//
Je ne pense pas que la ligne suivante soit nécessaire
//
I don't think the following line is useful
publisher
=
null
;
editMode
=
true
;
...
...
@@ -108,7 +109,7 @@ public class PublisherVersionView implements Serializable {
}
/**
*
Enregistre la version courante.
*
Saves current version
*/
public
void
save
()
{
logger
.
debug
(
"save()"
);
...
...
@@ -220,7 +221,7 @@ public class PublisherVersionView implements Serializable {
}
//
get, set et i
s
//
Accessor
s
public
int
getPublisherVersionId
()
{
return
publisherVersionId
;
}
...
...
Please
register
or
login
to post a comment