Class ScriptAttachmentMetadata

All Implemented Interfaces:
Serializable

@AtMostOneAttachmentPerScript(message="analysis-package-management.error.script-attachment-metadata.script-uuid.not-unique")
public class ScriptAttachmentMetadata
extends AbstractShadowableRdcDomainObject
Metadata which will be stored with each attachment of a Script. There must be no more than one attachment per script!
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • id

      private String id
      The id of the attachment. Holds the complete path which can be used to download the file.
    • masterId

      private String masterId
      The master id of the analysis package attachment.
    • analysisPackageId

      @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.analysis-package-id.not-empty") private @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.analysis-package-id.not-empty") String analysisPackageId
      The id of the AnalysisPackage to which this attachment belongs. Must not be empty.
    • scriptUuid

      @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.script-uuid.not-empty") private @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.script-uuid.not-empty") String scriptUuid
      The uuid of the Script to which this attachment belongs. Must not be empty. Must be unique within an analysis package (there must be at most one attachment per script). Duplicates are only possible for shadow copies.
    • dataAcquisitionProjectId

      @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.project-id.not-empty") private @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.project-id.not-empty") String dataAcquisitionProjectId
      The id of the DataAcquisitionProject to which the AnalysisPackage of this attachment belongs. Must not be empty.
    • fileName

      @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.filename.not-empty") @Pattern(message="analysis-package-management.error.script-attachment-metadata.filename.not-valid", regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") private @NotEmpty(message="analysis-package-management.error.script-attachment-metadata.filename.not-empty") @Pattern(message="analysis-package-management.error.script-attachment-metadata.filename.not-valid",regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") String fileName
      The filename of the attachment. Must not be empty and must contain only (german) alphanumeric characters and "_" and "-" and ".".
  • Constructor Details

    • ScriptAttachmentMetadata

      public ScriptAttachmentMetadata()
  • Method Details