Пример #1
0
 @Override
 protected final void entityCopy(User from) {
   username = from.getUsername();
   encodedpassword = from.getEncodedpassword();
   usercode = from.getUsercode();
   enabled = from.getEnabled();
 }
Пример #2
0
 /**
  * Remove set listener from all userroles (and parent) collections
  *
  * @param listener the set change listener to remove
  */
 public static void removeUserrolesSetChangeListeners(Listener<SetChangeEventParams> listener) {
   User.getAllUsers()
       .stream()
       .forEach(
           (user) -> {
             ((User) user).removeUserroleSetChangeListener(listener);
           });
   UserRoot.removeUsersSetChangeListeners(listener);
 }
Пример #3
0
 /**
  * Add set listener to all userpermissions (and parent) collections
  *
  * @param listener the set change listener to add
  */
 public static void addUserpermissionsSetChangeListeners(Listener<SetChangeEventParams> listener) {
   User.getAllUsers()
       .stream()
       .forEach(
           (user) -> {
             ((User) user).addUserpermissionSetChangeListener(listener);
           });
   UserRoot.addUsersSetChangeListeners(listener);
 }