code: @Deprecated
      public void chtype(CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int type)
      throws CmsException {
  
          // change type
          securityManager.chtype(cms.getRequestContext(), resource, type);
          // type may have changed from non link parseable to link parseable
          createRelations(cms, securityManager, resource.getRootPath());
      }
docs: @see org.opencms.file.types.I_CmsResourceType#chtype(org.opencms.file.CmsObject, CmsSecurityManager, CmsResource, int)
  
  @deprecated
  Use {@link #chtype(CmsObject, CmsSecurityManager, CmsResource, 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.