Jean-Francois Leveque

Refactoring création publisher avec version initiale et correction typo.

......@@ -47,7 +47,7 @@ public class PublisherVersionView implements Serializable {
private String publisherURL;
private boolean publisherActive;
private String publisherHistory;
private User publisherVerisionAuthor;
private User publisherVersionAuthor;
private Timestamp publisherVersionDatetime;
private Publisher publisher;
......@@ -126,20 +126,19 @@ public class PublisherVersionView implements Serializable {
PublisherVersion publisherVersion;
publisherVersion = publisherService.getPublisherVersion(publisherVersionId);
publisherVerisionAuthor = publisherVersion.getPublisherVersionAuthor();
publisherVersionAuthor = publisherVersion.getPublisherVersionAuthor();
publisherVersionDatetime = publisherVersion.getPublisherVersionDatetime();
}
public void add() {
Publisher publisher = new Publisher();
PublisherVersion publisherVersion = new PublisherVersion();
setValues(publisherVersion);
publisherService.addPublisherWithVersion(publisher, publisherVersion);
publisherService.addNewPublisher(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 getPublisherVerisionAuthor() {
return publisherVerisionAuthor;
public User getPublisherVersionAuthor() {
return publisherVersionAuthor;
}
public void setPublisherVerisionAuthor(User publisherVerisionAuthor) {
this.publisherVerisionAuthor = publisherVerisionAuthor;
public void setPublisherVersionAuthor(User publisherVersionAuthor) {
this.publisherVersionAuthor = publisherVersionAuthor;
}
public Timestamp getPublisherVersionDatetime() {
......