Commits

Daniel Blezek committed a1941d7

Added back Assessors and Reconstructions to the Experiment directory. Done correctly this time.

  • Participants
  • Parent commits c67c902

Comments (0)

Files changed (1)

File Source/org/xnat/xnatfs/webdav/Experiment.java

   final static Logger logger = Logger.getLogger ( Experiment.class );
 
   HashSet<String> mScans = new HashSet<String> (), mReconstructions = new HashSet<String> (), mAssessors = new HashSet<String> ();
+  final static String sAssessors = "Assessors";
+  final static String sReconstructions = "Reconstructions";
 
   /**
    * @param x
     mElementURL = mURL + "scans?format=json";
     mChildKey = "id";
     mVerboseDirectoryName = "Scans";
+    mExtraChildren.add ( sAssessors );
+    mExtraChildren.add ( sReconstructions );
   }
 
   /*
         d.setVerboseDirectory ( true );
         return d;
       }
+      if ( childName.equals ( mAssessors ) || childName.equals ( sReconstructions ) ) {
+        VirtualDirectory d = (VirtualDirectory) XNATFS.findInCache ( new Scan ( xnatfs, mAbsolutePath, childName, mURL + childName.toLowerCase () + "/" ), mCredentials );
+        setChildAuthorization ( d );
+        return d;
+
+      }
     }
 
     logger.debug ( "child: create " + childName + " in directory " + mAbsolutePath );