Class FileMeta

java.lang.Object
nl.knaw.dans.lib.dataverse.model.file.FileMeta

public class FileMeta extends Object
  • Constructor Details

    • FileMeta

      public FileMeta()
  • Method Details

    • toPrestagedFile

      public PrestagedFile toPrestagedFile()
    • getRestrict

      public Boolean getRestrict()
      Dataverse uses "restrict" in the Add File To Dataset API, but returns "restricted" in the response message; "restricted" is ignored by Add File To Dataset. This library works around the confusion by supporting both the "restrict" and "restricted" property, storing them in the same private field.
      Returns:
      whether the file is or should be restricted
      See Also:
    • setRestrict

      public void setRestrict(Boolean restrict)
      See comments in the getRestrict() method docs.
      Parameters:
      restrict - whether to restrict the file or not
    • getRestricted

      public Boolean getRestricted()
      See comments in the getRestrict() method docs. *
      Returns:
      whether the file is or should be restricted
      See Also:
    • setRestricted

      public void setRestricted(Boolean restricted)
      See comments in the getRestrict() method docs.
      Parameters:
      restricted - whether to restrict the file or not
    • getLabel

      public String getLabel()
    • getDescription

      public String getDescription()
    • getDirectoryLabel

      public String getDirectoryLabel()
    • getVersion

      public int getVersion()
    • getDatasetVersionId

      public int getDatasetVersionId()
    • getCategories

      public List<String> getCategories()
    • getDataFile

      public DataFile getDataFile()
    • getForceReplace

      public Boolean getForceReplace()
    • setLabel

      public void setLabel(String label)
    • setDescription

      public void setDescription(String description)
    • setDirectoryLabel

      public void setDirectoryLabel(String directoryLabel)
    • setVersion

      public void setVersion(int version)
    • setDatasetVersionId

      public void setDatasetVersionId(int datasetVersionId)
    • setCategories

      public void setCategories(List<String> categories)
    • setDataFile

      public void setDataFile(DataFile dataFile)
    • setForceReplace

      public void setForceReplace(Boolean forceReplace)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object