Class ConceptAttachmentMetadata

java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.conceptmanagement.domain.ConceptAttachmentMetadata
All Implemented Interfaces:
Serializable

public class ConceptAttachmentMetadata
extends AbstractRdcDomainObject
Metadata which will be stored with each attachment of a Concept.
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type Field Description
    private @NotEmpty(message="concept-management.error.concept-attachment-metadata.concept-id.not-empty") String conceptId
    The id of the Concept to which this attachment belongs.
    private @NotNull(message="concept-management.error.concept-attachment-metadata.description.not-null") @I18nStringSize(max=512,message="concept-management.error.concept-attachment-metadata.description.i18n-string-size") I18nString description
    A description for this attachment.
    private @NotEmpty(message="concept-management.error.concept-attachment-metadata.filename.not-empty") @Pattern(message="concept-management.error.concept-attachment-metadata.filename.not-valid",regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") String fileName
    The filename of the attachment.
    private String id
    The id of the attachment.
    private @NotNull(message="concept-management.error.concept-attachment-metadata.index-in-concept.not-null") Integer indexInConcept
    The index in the Concept of this attachment.
    private @NotNull(message="concept-management.error.concept-attachment-metadata.language.not-null") @ValidIsoLanguage(message="concept-management.error.concept-attachment-metadata.language.not-supported") String language
    The language of the attachments content.
    private static long serialVersionUID  
    private @NotEmpty(message="concept-management.error.concept-attachment-metadata.title.not-null") @Size(max=2048,message="concept-management.error.concept-attachment-metadata.title.string-size") String title
    An optional title of this attachment in the attachments' language.
    private @NotNull(message="concept-management.error.concept-attachment-metadata.type.not-null") @I18nStringSize(min=1,max=32,message="concept-management.error.concept-attachment-metadata.type.i18n-string-size") I18nString type
    The type of the attachment.
  • Constructor Summary

    Constructors
    Constructor Description
    ConceptAttachmentMetadata()  
  • Method Summary

    Modifier and Type Method Description
    void generateId()
    Generate the id of this attachment from the dataPackageId and the fileName.

    Methods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject

    getId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • conceptId

      @NotEmpty(message="concept-management.error.concept-attachment-metadata.concept-id.not-empty") private @NotEmpty(message="concept-management.error.concept-attachment-metadata.concept-id.not-empty") String conceptId
      The id of the Concept to which this attachment belongs. Must not be empty.
    • indexInConcept

      @NotNull(message="concept-management.error.concept-attachment-metadata.index-in-concept.not-null") private @NotNull(message="concept-management.error.concept-attachment-metadata.index-in-concept.not-null") Integer indexInConcept
      The index in the Concept of this attachment. Used for sorting the attachments of this Concept. Must not be empty.
    • title

      @NotEmpty(message="concept-management.error.concept-attachment-metadata.title.not-null") @Size(max=2048, message="concept-management.error.concept-attachment-metadata.title.string-size") private @NotEmpty(message="concept-management.error.concept-attachment-metadata.title.not-null") @Size(max=2048,message="concept-management.error.concept-attachment-metadata.title.string-size") String title
      An optional title of this attachment in the attachments' language. It must not contain more than 2048 characters.
    • description

      @NotNull(message="concept-management.error.concept-attachment-metadata.description.not-null") @I18nStringSize(max=512, message="concept-management.error.concept-attachment-metadata.description.i18n-string-size") @I18nStringNotEmpty(message="concept-management.error.concept-attachment-metadata.description.i18n-string-not-empty") private @NotNull(message="concept-management.error.concept-attachment-metadata.description.not-null") @I18nStringSize(max=512,message="concept-management.error.concept-attachment-metadata.description.i18n-string-size") I18nString description
      A description for this attachment. It must be specified in at least one language and it must not contain more than 512 characters.
    • type

      @NotNull(message="concept-management.error.concept-attachment-metadata.type.not-null") @I18nStringSize(min=1, max=32, message="concept-management.error.concept-attachment-metadata.type.i18n-string-size") @ValidConceptAttachmentType(message="concept-management.error.concept-attachment-metadata.type.valid-type") private @NotNull(message="concept-management.error.concept-attachment-metadata.type.not-null") @I18nStringSize(min=1,max=32,message="concept-management.error.concept-attachment-metadata.type.i18n-string-size") I18nString type
      The type of the attachment. Must be one of ConceptAttachmentTypes and must not be empty.
    • fileName

      @NotEmpty(message="concept-management.error.concept-attachment-metadata.filename.not-empty") @Pattern(message="concept-management.error.concept-attachment-metadata.filename.not-valid", regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") private @NotEmpty(message="concept-management.error.concept-attachment-metadata.filename.not-empty") @Pattern(message="concept-management.error.concept-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 ".".
    • language

      @NotNull(message="concept-management.error.concept-attachment-metadata.language.not-null") @ValidIsoLanguage(message="concept-management.error.concept-attachment-metadata.language.not-supported") private @NotNull(message="concept-management.error.concept-attachment-metadata.language.not-null") @ValidIsoLanguage(message="concept-management.error.concept-attachment-metadata.language.not-supported") String language
      The language of the attachments content. Must not be empty and must be specified as ISO 639 language code.
  • Constructor Details

    • ConceptAttachmentMetadata

      public ConceptAttachmentMetadata()
  • Method Details

    • generateId

      public void generateId()
      Generate the id of this attachment from the dataPackageId and the fileName.