updated to POI 4.0.0

This commit is contained in:
2018-10-26 14:02:50 +02:00
parent 8c4f304d18
commit 4eb6bb77e2
4 changed files with 446 additions and 446 deletions

View File

@ -71,7 +71,7 @@ public class LoginView implements Serializable {
} else { } else {
LOGGER.error(hint + " Reason: " + ex.toString()); LOGGER.error(hint + " Reason: " + ex.toString());
} }
FacesUtil.addErrorMessage("Login failed"); FacesUtil.addGlobalErrorMessage("Login failed", hint);
AccountEntity account = accountService.getAccountEntity(username, false); AccountEntity account = accountService.getAccountEntity(username, false);
if (account != null) { if (account != null) {
@ -119,11 +119,11 @@ public class LoginView implements Serializable {
boolean passwordResetted = accountService.resetPassword(username, password, resetPasswordToken); boolean passwordResetted = accountService.resetPassword(username, password, resetPasswordToken);
if (passwordResetted) { if (passwordResetted) {
// TODO add email notification on updated user account // TODO add email notification on updated user account
FacesUtil.addInfoMessage("Password resetted"); FacesUtil.addGlobalInfoMessage("Password resetted", null);
return login(); return login();
} else { } else {
// TODO add email notificaton on failed password reset // TODO add email notificaton on failed password reset
FacesUtil.addErrorMessage("Password reset failed"); FacesUtil.addGlobalErrorMessage("Password reset failed", null);
return login(); return login();
} }
} }

View File

@ -26,9 +26,9 @@ public class LostPasswordView implements Serializable {
public String initPasswordReset() { public String initPasswordReset() {
if (accountService.initPasswordReset(userName)) { if (accountService.initPasswordReset(userName)) {
passwordResetStarted = true; passwordResetStarted = true;
FacesUtil.addInfoMessage("Password reset started, please check your email account"); FacesUtil.addGlobalInfoMessage("Password reset started.", "Please check your email account.");
} else { } else {
FacesUtil.addErrorMessage("Error while resetting password. Please contact your administrator"); FacesUtil.addGlobalErrorMessage("Error while resetting password.", "Please contact your administrator.");
} }
return "/login.xhtml"; // TODO make configurable, get from LoginView? return "/login.xhtml"; // TODO make configurable, get from LoginView?
} }

View File

@ -161,7 +161,7 @@ public class WorkbookApp {
newCell.setCellStyle(newCellStyle); newCell.setCellStyle(newCellStyle);
} }
switch (oldCell.getCellTypeEnum()) { switch (oldCell.getCellType()) {
case STRING: case STRING:
newCell.setCellValue(oldCell.getStringCellValue()); newCell.setCellValue(oldCell.getStringCellValue());
break; break;

14
pom.xml
View File

@ -42,7 +42,7 @@
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId> <artifactId>mockito-core</artifactId>
<version>2.21.0</version> <version>2.23.0</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -58,7 +58,7 @@
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>
<version>3.7</version> <version>3.8.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
@ -84,7 +84,7 @@
<dependency> <dependency>
<groupId>com.sun.mail</groupId> <groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId> <artifactId>javax.mail</artifactId>
<version>1.6.1</version> <version>1.6.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.microsoft.ews-java-api</groupId> <groupId>com.microsoft.ews-java-api</groupId>
@ -132,14 +132,14 @@
<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId> <artifactId>hibernate-core</artifactId>
<version>5.0.10.Final</version> <version>5.1.14.Final</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId> <artifactId>pdfbox</artifactId>
<version>2.0.11</version> <version>2.0.12</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.freemarker</groupId> <groupId>org.freemarker</groupId>
@ -154,7 +154,7 @@
<dependency> <dependency>
<groupId>com.sun.faces</groupId> <groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId> <artifactId>jsf-api</artifactId>
<version>2.2.17</version> <version>2.2.18</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -166,7 +166,7 @@
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId> <artifactId>poi-ooxml</artifactId>
<version>3.17</version> <version>4.0.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.inversoft</groupId> <groupId>com.inversoft</groupId>