update lastConsentTermsOfUseDate instead of consentTermsOfUseDate
This commit is contained in:
parent
03dad9cb1e
commit
94a8b1abf9
|
@ -80,7 +80,7 @@ public class RepositoryController {
|
|||
Repository repository = repositoryService.getRepositoryById(terms.getId());
|
||||
repository.setConsentTermsOfUse(terms.getConsentTermsOfUse());
|
||||
repository.setFullTextDownload(terms.getFullTextDownload());
|
||||
repository.setConsentTermsOfUseDate(date);
|
||||
repository.setLastConsentTermsOfUseDate(date);
|
||||
repositoryService.updateRepository(repository, SecurityContextHolder.getContext().getAuthentication());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ public class RepositoryTerms {
|
|||
private Boolean consentTermsOfUse;
|
||||
private Boolean fullTextDownload;
|
||||
private Date consentTermsOfUseDate;
|
||||
private Date lastConsentTermsOfUseDate;
|
||||
|
||||
public RepositoryTerms() {
|
||||
}
|
||||
|
@ -52,4 +53,12 @@ public class RepositoryTerms {
|
|||
public void setConsentTermsOfUseDate(Date consentTermsOfUseDate) {
|
||||
this.consentTermsOfUseDate = consentTermsOfUseDate;
|
||||
}
|
||||
|
||||
public Date getLastConsentTermsOfUseDate() {
|
||||
return lastConsentTermsOfUseDate;
|
||||
}
|
||||
|
||||
public void setLastConsentTermsOfUseDate(Date lastConsentTermsOfUseDate) {
|
||||
this.lastConsentTermsOfUseDate = lastConsentTermsOfUseDate;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue