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-07 14:16:08 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8511a19f74b83d8d192f77a99bea3ff41f9e01b
f8511a19
1 parent
20474c54
Ajout d'@Override sur les implémentations
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
src/main/java/org/legrog/web/publisher/PublisherServiceDefault.java
src/main/java/org/legrog/web/xyz/SharedServiceDefault.java
src/main/java/org/legrog/web/publisher/PublisherServiceDefault.java
View file @
f8511a1
...
...
@@ -45,6 +45,7 @@ public class PublisherServiceDefault implements PublisherService {
PublisherServiceDefault
()
{
}
@Override
public
PublisherVersion
addNewPublisher
(
PublisherVersion
publisherVersion
)
{
Publisher
publisher
=
new
Publisher
();
Set
<
PublisherVersion
>
publisherVersions
=
new
HashSet
<>();
...
...
@@ -58,6 +59,7 @@ public class PublisherServiceDefault implements PublisherService {
return
publisherVersion
;
}
@Override
public
PublisherVersion
addVersionToPublisher
(
Publisher
publisher
,
PublisherVersion
publisherVersion
)
{
logger
.
trace
(
"debut addVersionToPublisher, publisherVersion = {}"
,
publisherVersion
);
Set
<
PublisherVersion
>
publisherVersionSet
=
publisher
.
getVersions
();
...
...
@@ -72,6 +74,7 @@ public class PublisherServiceDefault implements PublisherService {
return
publisherVersion
;
}
@Override
public
PublisherAction
validatePublisherVersion
(
PublisherVersion
publisherVersion
)
{
Publisher
publisher
=
publisherVersion
.
getPublisher
();
publisher
.
setValidatedVersion
(
publisherVersion
);
...
...
@@ -101,22 +104,27 @@ public class PublisherServiceDefault implements PublisherService {
}
// get
@Override
public
List
<
PublisherVersion
>
getAllPublisherVersions
()
{
return
publisherVersionRepository
.
findAll
();
}
@Override
public
PublisherVersion
getPublisherVersion
(
Integer
publisherVersionId
)
{
return
publisherVersionRepository
.
findOne
(
publisherVersionId
);
}
@Override
public
PublisherAction
getLastValidate
(
Publisher
publisher
)
{
return
publisherActionRepository
.
findFirstByActionTypeAndPublisherOrderByPublisherActionDatetimeDesc
(
ActionType
.
VALIDATE
,
publisher
);
}
@Override
public
List
<
PublisherAction
>
getAllPublisherActions
()
{
return
publisherActionRepository
.
findAll
();
}
@Override
public
List
<
PublisherAction
>
getAllPublisherVersionActions
(
PublisherVersion
publisherVersion
)
{
return
publisherActionRepository
.
findByPublisherVersion
(
publisherVersion
);
}
...
...
src/main/java/org/legrog/web/xyz/SharedServiceDefault.java
View file @
f8511a1
...
...
@@ -30,15 +30,18 @@ public class SharedServiceDefault implements SharedService {
private
List
<
DisplayNameMask
>
allDisplayNameMasks
;
@Override
public
Country
addCountry
(
Country
country
)
{
countryRepository
.
save
(
country
);
return
country
;
}
@Override
public
List
<
Country
>
getAllCountries
()
{
return
countryRepository
.
findAll
();
}
@Override
public
List
<
DisplayNameMask
>
getAllDisplayNameMasks
()
{
if
(
allDisplayNameMasks
==
null
)
{
...
...
@@ -52,12 +55,15 @@ public class SharedServiceDefault implements SharedService {
return
allDisplayNameMasks
;
}
@Override
public
List
<
AccountRole
>
getAvailableUserRoles
()
{
return
accountRoleRepository
.
findAll
();
}
@Override
public
List
<
AccountProperty
>
getAvailableUserProperties
()
{
return
accountPropertyRepository
.
findAll
();
}
@Override
public
Account
getCurrentUser
()
{
// TODO Remplacer l'astuce par une vraie récupération de l'utilisateur
List
<
Account
>
accounts
=
userService
.
getAllUsers
();
...
...
Please
register
or
login
to post a comment