code: public int getChanges(CmsUser oldUser) {
  
          int result = 0;
          if (oldUser.m_lastlogin != m_lastlogin) {
              result = result | FLAG_LAST_LOGIN;
          }
          if (!oldUser.m_additionalInfo.equals(m_additionalInfo)) {
              result = result | FLAG_ADDITIONAL_INFOS;
          }
          if (!Objects.equals(oldUser.m_email, m_email)
              || !Objects.equals(oldUser.m_description, m_description)
              || !Objects.equals(oldUser.m_firstname, m_firstname)
              || !Objects.equals(oldUser.m_lastname, m_lastname)
              || !Objects.equals(oldUser.m_password, m_password)
              || (oldUser.m_flags != m_flags)) {
              result = result | FLAG_CORE_DATA;
          }
          return result;
      }
docs: Returns the changes of this user compared to the previous user data.<p>
  
  @param oldUser the old user
  
  @return the changes flags