Пример #1
0
 @Override
 public void setPropertyOnUser(User user, String propertyName, Object value) {
   if (user instanceof SystemUser) {
     throw new VisalloException("Cannot set properties on system user");
   }
   ((InMemoryUser) user).setProperty(propertyName, value);
 }
Пример #2
0
 @Override
 protected void internalSetPrivileges(User user, Set<String> privileges, User authUser) {
   ((InMemoryUser) user).setPrivileges(privileges);
 }
Пример #3
0
 @Override
 public void internalRemoveAuthorization(User user, String auth, User authUser) {
   ((InMemoryUser) user).removeAuthorization(auth);
 }