add role to properties module

This commit is contained in:
Peter Hormanns 2015-09-11 17:31:09 +02:00
parent 041111d845
commit 9669b268c6

View File

@ -22,6 +22,7 @@ public class PropertyRemote implements IRemote {
Map<String, String> whereParams) throws HSAdminException {
String user = runAsUser;
List<Map<String, Object>> result = new ArrayList<Map<String,Object>>();
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<Map<String, Object>> result) {
final HashMap<String, Object> propertyProperties = new HashMap<String, Object>();
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<String, Object> add(String runAsUser, String ticket,
Map<String, Object> setParams) throws HSAdminException {