code: public void setUserGroups(CmsObject cms) {
  
          if (getUser() != null) {
              try {
                  m_groups = cms.getGroupsOfUser(getUser().getName(), false);
              } catch (CmsException e) {
                  // failed to set user groups
              }
          }
      }
docs: Sets the groups of the user currently set in this filter as the list of groups to check subscribed resources for.<p>
  
  @param cms the current users context