legacy/src/main/java/thredds/catalog/InvDatasetScan.java
public void setScanLocation(String scanLocation )
  {
    // ToDo LOOK Instead hand InvDatasetScan (or InvCatFactory?) an algorithm for converting an aliased location.
    if ( ! scanLocation.equals( this.scanLocation))
    {
      this.isValid = true;
      this.scanLocation = scanLocation;
      this.scanLocationCrDs = createScanLocationCrDs();
      if ( this.scanLocationCrDs == null )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: could not create CrawlableDataset for scanLocation." );
      }
      else if ( !this.scanLocationCrDs.exists() )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: CrawlableDataset for scanLocation does not exist." );
      }
      else if ( !this.scanLocationCrDs.isCollection() )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: CrawlableDataset for scanLocation not a collection." );
      }
    }
  }
public void setScanLocation(String scanLocation )
  {
    // ToDo LOOK Instead hand InvDatasetScan (or InvCatFactory?) an algorithm for converting an aliased location.
    if ( ! scanLocation.equals( this.scanLocation))
    {
      this.isValid = true;
      this.scanLocation = scanLocation;
      this.scanLocationCrDs = createScanLocationCrDs();
      if ( this.scanLocationCrDs == null )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: could not create CrawlableDataset for scanLocation." );
      }
      else if ( !this.scanLocationCrDs.exists() )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: CrawlableDataset for scanLocation does not exist." );
      }
      else if ( !this.scanLocationCrDs.isCollection() )
      {
        isValid = false;
        invalidMessage = new StringBuilder( "Invalid InvDatasetScan <path=" ).append( rootPath )
                .append( "; scanLocation=" ).append( scanLocation )
                .append( ">: CrawlableDataset for scanLocation not a collection." );
      }
    }
  }
Resets the location being scanned (DO NOT USE THIS METHOD, "public by accident").

<p>Used by DataRootHandler to allow scanning an aliased directory ("content").

@param scanLocation the scan location.