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:46:04 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c73439639cb40915eb8c11b6bba3ae545da71ea
6c734396
1 parent
3112b3a4
Refactoring création publisher avec version initiale et correction typo.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
src/main/java/org/legrog/web/publisher/PublisherVersionView.java
View file @
6c73439
...
...
@@ -47,7 +47,7 @@ public class PublisherVersionView implements Serializable {
private
String
publisherURL
;
private
boolean
publisherActive
;
private
String
publisherHistory
;
private
User
publisherVer
i
sionAuthor
;
private
User
publisherVersionAuthor
;
private
Timestamp
publisherVersionDatetime
;
private
Publisher
publisher
;
...
...
@@ -126,20 +126,19 @@ public class PublisherVersionView implements Serializable {
PublisherVersion
publisherVersion
;
publisherVersion
=
publisherService
.
getPublisherVersion
(
publisherVersionId
);
publisherVer
i
sionAuthor
=
publisherVersion
.
getPublisherVersionAuthor
();
publisherVersionAuthor
=
publisherVersion
.
getPublisherVersionAuthor
();
publisherVersionDatetime
=
publisherVersion
.
getPublisherVersionDatetime
();
}
public
void
add
()
{
Publisher
publisher
=
new
Publisher
();
PublisherVersion
publisherVersion
=
new
PublisherVersion
();
setValues
(
publisherVersion
);
publisherService
.
add
PublisherWithVersion
(
publisher
,
publisherVersion
);
publisherService
.
add
NewPublisher
(
publisherVersion
);
newPublisher
=
false
;
publisherVersionId
=
publisherVersion
.
getPublisherVersionId
();
this
.
publisher
=
publisher
;
publisher
=
publisherVersion
.
getPublisher
()
;
getImmutableValues
();
...
...
@@ -306,12 +305,12 @@ public class PublisherVersionView implements Serializable {
this
.
publisherHistory
=
publisherHistory
;
}
public
User
getPublisherVer
i
sionAuthor
()
{
return
publisherVer
i
sionAuthor
;
public
User
getPublisherVersionAuthor
()
{
return
publisherVersionAuthor
;
}
public
void
setPublisherVer
isionAuthor
(
User
publisherVeri
sionAuthor
)
{
this
.
publisherVer
isionAuthor
=
publisherVeri
sionAuthor
;
public
void
setPublisherVer
sionAuthor
(
User
publisherVer
sionAuthor
)
{
this
.
publisherVer
sionAuthor
=
publisherVer
sionAuthor
;
}
public
Timestamp
getPublisherVersionDatetime
()
{
...
...
Please
register
or
login
to post a comment