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
2016-11-16 15:03:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3112b3a42145d5f8b5f439c64fa285deb3c529f2
3112b3a4
1 parent
bcebd399
Refactoring création publisher avec version initiale.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/org/legrog/web/publisher/PublisherService.java
src/main/java/org/legrog/web/publisher/PublisherServiceSpring.java
src/main/java/org/legrog/web/publisher/PublisherService.java
View file @
3112b3a
...
...
@@ -11,7 +11,7 @@ import java.util.List;
*/
public
interface
PublisherService
{
void
add
PublisherWithVersion
(
Publisher
publisher
,
PublisherVersion
publisherVersion
);
void
add
NewPublisher
(
PublisherVersion
publisherVersion
);
void
addVersionToPublisher
(
Publisher
publisher
,
PublisherVersion
publisherVersion
);
...
...
src/main/java/org/legrog/web/publisher/PublisherServiceSpring.java
View file @
3112b3a
...
...
@@ -34,7 +34,8 @@ public class PublisherServiceSpring implements PublisherService {
@Inject
SharedService
sharedService
;
public
void
addPublisherWithVersion
(
Publisher
publisher
,
PublisherVersion
publisherVersion
)
{
public
void
addNewPublisher
(
PublisherVersion
publisherVersion
)
{
Publisher
publisher
=
new
Publisher
();
Set
<
PublisherVersion
>
publisherVersions
=
new
HashSet
<>();
publisherVersions
.
add
(
publisherVersion
);
publisher
.
setVersions
(
publisherVersions
);
...
...
@@ -44,7 +45,6 @@ public class PublisherServiceSpring implements PublisherService {
this
.
savePublisherVersion
(
publisherVersion
);
this
.
savePublisher
(
publisher
);
}
public
void
addVersionToPublisher
(
Publisher
publisher
,
PublisherVersion
publisherVersion
)
{
logger
.
trace
(
"debut addVersionToPublisher, publisherVersion = {}"
,
publisherVersion
);
Set
<
PublisherVersion
>
publisherVersionSet
=
publisher
.
getVersions
();
...
...
Please
register
or
login
to post a comment