Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/Configuration.java

    r3088 r5549  
    7474    }
    7575
     76    public boolean isAdminUser(String name) {
     77        if (name != null) {
     78            return name.trim().length() > 0 // user name must be set (in case an empty entry is in admin users list)
     79                    && adminUsers.contains(name);
     80        }
     81        return false;
     82    }
     83   
    7684    public void setAdminUsers(Collection<String> adminUsers) {
    7785        LOG.debug("Setting adminUsers to {}", Arrays.toString(adminUsers.toArray()));
    7886        this.adminUsers = adminUsers;
    7987    }
    80 
     88   
     89   
    8190    /**
    8291     *
Note: See TracChangeset for help on using the changeset viewer.