code: public void chflags(String resourcename, int flags) throws CmsException {
  
          CmsResource resource = readResource(resourcename, CmsResourceFilter.IGNORE_EXPIRATION);
          getResourceType(resource).chflags(this, m_securityManager, resource, flags);
      }
docs: Changes the resource flags of a resource.<p>
  
  The resource flags are used to indicate various "special" conditions
  for a resource. Most notably, the "internal only" setting which signals
  that a resource can not be directly requested with it's URL.<p>
  
  @param resourcename the name of the resource to change the flags for (full current site relative path)
  @param flags the new flags for this resource
  
  @throws CmsException if something goes wrong