Class UnpublishedFile

java.lang.Object
no.unit.nva.model.associatedartifacts.file.File
no.unit.nva.model.associatedartifacts.file.UnpublishedFile
All Implemented Interfaces:
no.unit.nva.commons.json.JsonSerializable, AssociatedArtifact

public class UnpublishedFile extends File
  • Field Details

  • Constructor Details

    • UnpublishedFile

      public UnpublishedFile(UUID identifier, String name, String mimeType, Long size, Object license, boolean administrativeAgreement, PublisherVersion publishedVersion, Instant embargoDate, RightsRetentionStrategy rightsRetentionStrategy, String legalNote, UploadDetails uploadDetails)
      Constructor for no.unit.nva.file.model.File objects. A file object is valid if it has a license or is explicitly marked as an administrative agreement.
      Parameters:
      identifier - A UUID that identifies the file in storage
      name - The original name of the file
      mimeType - The mimetype of the file
      size - The size of the file
      license - The license for the file, may be null if and only if the file is an administrative agreement
      administrativeAgreement - True if the file is an administrative agreement
      publishedVersion - Accepts boolean, enum or null. True if the file owner has publisher authority * @param embargoDate The date after which the file may be published
      legalNote - The legal note for file
      uploadDetails - Information regarding who and when inserted the file into the system
  • Method Details