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-15 17:36:33 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4847f8637d21bdd05e8e1a5f94297bfe488bb5a1
4847f863
1 parent
901e4a28
Comments in English
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
src/main/java/org/legrog/web/publisher/ListPublisherActionsView.java
src/main/java/org/legrog/web/publisher/ListPublisherVersionsView.java
src/main/java/org/legrog/web/publisher/PublisherService.java
src/main/java/org/legrog/web/publisher/ListPublisherActionsView.java
View file @
4847f86
...
...
@@ -17,9 +17,10 @@ import java.util.List;
import
java.util.stream.Collectors
;
/**
* Vue de listPublisherVersions.xhtml
* Permet de voir l'ensemble des actions des éditeurs.
* Permet de voir l'ensemble des actions d'un éditeur.
* listPublisherVersions.xhtml's view
*
* Provides all PublisherAction
* Provides all PublisherAction for a Publisher
*/
@Named
@RequestScoped
...
...
@@ -50,6 +51,7 @@ public class ListPublisherActionsView implements Serializable {
ListPublisherActionsView
()
{
//no args constructor to make it proxyable
}
@PostConstruct
@RequestAction
public
void
init
()
{
...
...
src/main/java/org/legrog/web/publisher/ListPublisherVersionsView.java
View file @
4847f86
...
...
@@ -19,9 +19,8 @@ import java.util.List;
import
java.util.stream.Collectors
;
/**
* Vue de listPublisherVersions.xhtml
* Permet de voir l'ensemble des versions des éditeurs.
* Permet de voir l'ensemble des versions d'un éditeur et de valider l'une d'elles.
* listPublisherVersions.xhtml's view
*
*/
@Named
@RequestScoped
...
...
@@ -86,22 +85,17 @@ public class ListPublisherVersionsView implements Serializable {
/**
* Returns last validation action for Publisher
*
* @param publisher
* @param publisher
Publisher we want last Validate PublisherAction
* @return PublisherAction
*/
public
PublisherAction
getLastValidate
(
Publisher
publisher
)
{
return
publisherService
.
getLastValidate
(
publisher
);
}
// View Action being executed at view loading
/*
public void setView() {
}
*/
/**
* Validates a PublisherVersion for its Publisher
*
* @param publisherVersion
* @param publisherVersion
PublisherVersion to validate
*/
public
void
validate
(
PublisherVersion
publisherVersion
)
{
logger
.
trace
(
"validate"
);
...
...
src/main/java/org/legrog/web/publisher/PublisherService.java
View file @
4847f86
...
...
@@ -46,7 +46,7 @@ public interface PublisherService {
PublisherAction
validatePublisherVersion
(
@NotNull
PublisherVersion
publisherVersion
);
/**
* @return all persisted PublisherVersions
*
* @return all persisted PublisherVersions
*/
List
<
PublisherVersion
>
getAllPublisherVersions
();
...
...
Please
register
or
login
to post a comment