@Override protected final void entityCopy(User from) { username = from.getUsername(); encodedpassword = from.getEncodedpassword(); usercode = from.getUsercode(); enabled = from.getEnabled(); }
/** * 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); }
/** * 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); }