Class ContentIdUtil

java.lang.Object
org.duracloud.common.util.ContentIdUtil

public class ContentIdUtil extends Object
Author:
Daniel Bernstein
  • Method Details

    • getContentId

      public static String getContentId(File file, File watchDir, String contentIdPrefix)
      Determines the content ID of a file: the path of the file relative to the watched directory. If the watched directory is null, the content ID is simply the name of the file. If a prefix is being used, the prefix is added as the initial characters in the contentId.
      Parameters:
      file -
      watchDir -
      contentIdPrefix -
      Returns: