diff --git a/hsarback/src/de/hsadmin/remote/PropertyRemote.java b/hsarback/src/de/hsadmin/remote/PropertyRemote.java index 2f84044..a4d7595 100644 --- a/hsarback/src/de/hsadmin/remote/PropertyRemote.java +++ b/hsarback/src/de/hsadmin/remote/PropertyRemote.java @@ -22,6 +22,7 @@ public class PropertyRemote implements IRemote { Map whereParams) throws HSAdminException { String user = runAsUser; List> result = new ArrayList>(); + addRolesModule(result); Transaction transaction = new Transaction(user); try { if (transaction.login(user, ticket)) { @@ -82,6 +83,21 @@ public class PropertyRemote implements IRemote { } } + private void addRolesModule(final List> result) { + final HashMap propertyProperties = new HashMap(); + propertyProperties.put("module", "role"); + propertyProperties.put("name", "role"); + propertyProperties.put("searchable", "equals"); + propertyProperties.put("readwriteable", "read"); + propertyProperties.put("type", "string"); + propertyProperties.put("displaySequence", "1"); + propertyProperties.put("displayVisible", "always"); + propertyProperties.put("minLength", "0"); + propertyProperties.put("maxLength", "20"); + propertyProperties.put("validationRegexp", "[A-Z_]*"); + result.add(propertyProperties); + } + @Override public Map add(String runAsUser, String ticket, Map setParams) throws HSAdminException {