From 9669b268c6f3953d61d91ecf6c69d9eaa79228b6 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 11 Sep 2015 17:31:09 +0200 Subject: [PATCH] add role to properties module --- .../src/de/hsadmin/remote/PropertyRemote.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 {