code: @Deprecated
      public CmsResourceFilter addRequireType(int type) {
  
          if (type != -1) {
              CmsResourceFilter extendedFilter = (CmsResourceFilter)clone();
  
              extendedFilter.m_type = type;
              extendedFilter.m_filterType = REQUIRED;
              extendedFilter.updateCacheId();
              return extendedFilter;
          }
  
          return this;
      }
docs: Returns an extended filter to guarantee a distinct resource type of the filtered resources.<p>
  
  If <code>-1</code> is given as type, the filter will not be extended to require a resource type
  
  @param type the required resource type
  @return a filter requiring the given resource type
  
  @deprecated
  Use {@link #addRequireType(I_CmsResourceType)} instead.
  Resource types should always be referenced either by its type class (preferred) or by type name.
  Use of int based resource type references will be discontinued in a future OpenCms release.