Class FileMeta
java.lang.Object
nl.knaw.dans.lib.dataverse.model.file.FileMeta
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
getLabel()
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.See comments in thegetRestrict()
method docs.int
int
hashCode()
void
setCategories
(List<String> categories) void
setDataFile
(DataFile dataFile) void
setDatasetVersionId
(int datasetVersionId) void
setDescription
(String description) void
setDirectoryLabel
(String directoryLabel) void
setForceReplace
(Boolean forceReplace) void
void
setRestrict
(Boolean restrict) See comments in thegetRestrict()
method docs.void
setRestricted
(Boolean restricted) See comments in thegetRestrict()
method docs.void
setVersion
(int version) toString()
-
Constructor Details
-
FileMeta
public FileMeta()
-
-
Method Details
-
toPrestagedFile
-
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
See comments in thegetRestrict()
method docs.- Parameters:
restrict
- whether to restrict the file or not
-
getRestricted
See comments in thegetRestrict()
method docs. *- Returns:
- whether the file is or should be restricted
- See Also:
-
setRestricted
See comments in thegetRestrict()
method docs.- Parameters:
restricted
- whether to restrict the file or not
-
getLabel
-
getDescription
-
getDirectoryLabel
-
getVersion
public int getVersion() -
getDatasetVersionId
public int getDatasetVersionId() -
getCategories
-
getDataFile
-
getForceReplace
-
setLabel
-
setDescription
-
setDirectoryLabel
-
setVersion
public void setVersion(int version) -
setDatasetVersionId
public void setDatasetVersionId(int datasetVersionId) -
setCategories
-
setDataFile
-
setForceReplace
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-