HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2015-09-11 9669b268c6f3953d61d91ecf6c69d9eaa79228b6
add role to properties module
1 files modified
16 ■■■■■ changed files
hsarback/src/de/hsadmin/remote/PropertyRemote.java 16 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/remote/PropertyRemote.java
@@ -22,6 +22,7 @@
            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 @@
        }
    }
    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 {