diff --git a/cli/pom.xml b/cli/pom.xml
index 73a0245..90ca6ee 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -14,6 +14,11 @@
HSAdmin-Cli
+
+ de.hsadmin
+ framework
+ 1.0-SNAPSHOT
+
de.hsadmin
framework
@@ -37,12 +42,12 @@
jline
jline
- 2.14.2
+ 2.14.5
commons-cli
commons-cli
- 1.3.1
+ 1.4
diff --git a/cli/src/main/java/de/hsadmin/jscli/console/ConsoleWrapper.java b/cli/src/main/java/de/hsadmin/jscli/console/ConsoleWrapper.java
index 478af11..25dad42 100644
--- a/cli/src/main/java/de/hsadmin/jscli/console/ConsoleWrapper.java
+++ b/cli/src/main/java/de/hsadmin/jscli/console/ConsoleWrapper.java
@@ -13,6 +13,7 @@ import jline.console.history.FileHistory;
public class ConsoleWrapper implements PasswordReader {
private ConsoleReader cons;
+ private FileHistory history;
private String prompt;
public void open(final String prompt) throws JSCliException {
@@ -22,7 +23,8 @@ public class ConsoleWrapper implements PasswordReader {
cons.setExpandEvents(false);
cons.setPrompt(prompt);
final String userHome = System.getProperty("user.home");
- cons.setHistory(new FileHistory(new File(userHome + "/.hsscript_history")));
+ history = new FileHistory(new File(userHome + "/.hsscript_history"));
+ cons.setHistory(history);
} catch (IOException e) {
throw new JSCliException(e);
}
@@ -37,6 +39,12 @@ public class ConsoleWrapper implements PasswordReader {
return line;
} catch (IOException e) {
throw new JSCliException(e);
+ } finally {
+ try {
+ history.flush();
+ } catch (IOException e) {
+ // dont care about
+ }
}
}
diff --git a/cust-services/src/main/java/de/hsadmin/bo/customer/MemberShareAction.java b/cust-services/src/main/java/de/hsadmin/bo/customer/MemberShareAction.java
index 5e27fbd..65c674f 100644
--- a/cust-services/src/main/java/de/hsadmin/bo/customer/MemberShareAction.java
+++ b/cust-services/src/main/java/de/hsadmin/bo/customer/MemberShareAction.java
@@ -8,7 +8,7 @@ public enum MemberShareAction {
/** Zeichnung */
SUBSCRIPTION,
- /** Kündigung */
+ /** Kuendigung */
UNSUBSCRIPTION
}
diff --git a/cust-services/src/main/java/de/hsadmin/bo/pac/PacEntityListener.java b/cust-services/src/main/java/de/hsadmin/bo/pac/PacEntityListener.java
index 2201453..859c7e8 100644
--- a/cust-services/src/main/java/de/hsadmin/bo/pac/PacEntityListener.java
+++ b/cust-services/src/main/java/de/hsadmin/bo/pac/PacEntityListener.java
@@ -1,7 +1,5 @@
package de.hsadmin.bo.pac;
-import java.util.Date;
-
//import javax.jms.JMSException;
//import javax.jms.Queue;
//import javax.jms.QueueConnection;
diff --git a/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java b/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java
index 0a0331c..0f12b17 100644
--- a/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java
+++ b/web/src/main/java/de/hsadmin/web/GenericEditorFactory.java
@@ -34,6 +34,9 @@ public class GenericEditorFactory implements IEditorFactory, Serializable {
if ("domainoptions".equals(inputName)) {
return getDomainOptionsEditor(action, propertyInfo, session, whereContext);
}
+ if ("validsubdomainnames".equals(inputName)) {
+ return getValidsubdomainnamesEditor(action, propertyInfo, session, whereContext);
+ }
}
if ("emailaddress".equals(module) || "emailalias".equals(module)) {
if ("target".equals(inputName)) {
@@ -64,6 +67,12 @@ public class GenericEditorFactory implements IEditorFactory, Serializable {
}
+ private IHSEditor getValidsubdomainnamesEditor(final String action, final PropertyInfo propertyInfo, final HSAdminSession session,
+ final Map whereContext) {
+ return PanelToolbar.ACTION_EDIT.equals(action) ? getEditor(action, propertyInfo) : new NullEditor();
+ }
+
+
private IHSEditor getDomainOptionsEditor(final String action, final PropertyInfo propertyInfo, final HSAdminSession session, final Map whereContext) {
return PanelToolbar.ACTION_EDIT.equals(action) ? new DomainOptionsEditor(propertyInfo, session, whereContext) : new NullEditor();
}
diff --git a/web/src/main/resources/de/hsadmin/web/main_de.properties b/web/src/main/resources/de/hsadmin/web/main_de.properties
index d3d3c57..691d80c 100644
--- a/web/src/main/resources/de/hsadmin/web/main_de.properties
+++ b/web/src/main/resources/de/hsadmin/web/main_de.properties
@@ -96,7 +96,7 @@ quota_softlimit=Quota (Soft-Limit)
quota_hardlimit=Quota (Hard-Limit)
target=Postfach/Weiterleitung
owner=Domain-Administrator
-validsubdomainnames=gültige Subdomain
+validsubdomainnames=gültige Subdomains ('*' für Wildcard)
encoding=Zeichen-Kodierung
localpart=lokaler Teil
subdomain=Subdomain