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-28 14:34:19 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a80eb99c70fff4a95eba85fa30aac31b11688768
a80eb99c
1 parent
c6381bac
Passage correctif SonarQube
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
16 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/PublisherSearchView.java
src/main/java/org/legrog/web/publisher/ListPublisherActionsView.java
View file @
a80eb99
...
...
@@ -40,7 +40,7 @@ public class ListPublisherActionsView implements Serializable {
/**
* Uses PublisherService to get actions
*
* @param publisherService
* @param publisherService
injected PublisherService
*/
@Inject
public
ListPublisherActionsView
(
PublisherService
publisherService
)
{
...
...
src/main/java/org/legrog/web/publisher/ListPublisherVersionsView.java
View file @
a80eb99
...
...
@@ -38,6 +38,20 @@ public class ListPublisherVersionsView implements Serializable {
private
boolean
viewAll
;
private
transient
List
<
PublisherVersion
>
publisherVersions
;
/**
* Uses PublisherService to access data
*
* @param publisherService injected PublisherService
*/
@Inject
public
ListPublisherVersionsView
(
PublisherService
publisherService
)
{
this
.
publisherService
=
publisherService
;
}
ListPublisherVersionsView
()
{
//no args constructor to make it proxyable
}
@PostConstruct
@RequestAction
public
void
init
()
{
...
...
@@ -68,20 +82,6 @@ public class ListPublisherVersionsView implements Serializable {
}
/**
* Uses PublisherService to access data
*
* @param publisherService
*/
@Inject
public
ListPublisherVersionsView
(
PublisherService
publisherService
)
{
this
.
publisherService
=
publisherService
;
}
ListPublisherVersionsView
()
{
//no args constructor to make it proxyable
}
/**
* Returns last validation action for Publisher
*
* @param publisher Publisher we want last Validate PublisherAction
...
...
src/main/java/org/legrog/web/publisher/PublisherSearchView.java
View file @
a80eb99
...
...
@@ -4,12 +4,13 @@ import org.legrog.entities.PublisherVersion;
import
org.legrog.entities.SearchingException
;
import
javax.inject.Inject
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* View behind publisherSearch.xhtml
*/
public
class
PublisherSearchView
{
public
class
PublisherSearchView
implements
Serializable
{
transient
PublisherService
publisherService
;
...
...
@@ -27,6 +28,12 @@ public class PublisherSearchView {
//no args constructor to make it proxyable
}
/**
*
* @param string String which you expect to find in indexed publishers
* @return List<PublisherVersion>
* @throws SearchingException when getting an error from PublisherSearchRepository
*/
public
List
<
PublisherVersion
>
search
(
String
string
)
throws
SearchingException
{
return
publisherService
.
search
(
string
);
}
...
...
Please
register
or
login
to post a comment