Class SurveyResponseRateImageMetadata
java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject
eu.dzhw.fdz.metadatamanagement.surveymanagement.domain.SurveyResponseRateImageMetadata
- All Implemented Interfaces:
Serializable
public class SurveyResponseRateImageMetadata extends AbstractShadowableRdcDomainObject
Metadata which will be stored with each response rate image of a
Survey
.- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.project-id.not-empty") String
dataAcquisitionProjectId
The id of theDataAcquisitionProject
to which theSurvey
of this response rate image belongs.private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.filename.not-empty") @Pattern(message="survey-management.survey-response-rate-image-metadata.filename.not-valid",regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") String
fileName
The filename of the image.private String
id
The id of the response rate image.private @NotNull(message="survey-management.error.survey-response-rate-image-metadata.language.not-null") @ValidIsoLanguage(message="survey-management.error.survey-response-rate-image-metadata.language.not-supported") String
language
The language used in the response rate image.private String
masterId
The master id of the survey response rate image metadata.private static long
serialVersionUID
private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.survey-id.not-empty") String
surveyId
The id of theSurvey
to which this response rate image belongs.private @NotNull(message="survey-management.error.survey-response-rate-image-metadata.survey-number.not-null") Integer
surveyNumber
The number of theSurvey
to which this response rate image belongs. -
Constructor Summary
Constructors Constructor Description SurveyResponseRateImageMetadata()
-
Method Summary
Modifier and Type Method Description void
generateId()
Generate the id of this image from the surveyId and the fileName.protected void
setIdInternal(String id)
Set id on implementation ofAbstractShadowableRdcDomainObject
.protected void
setMasterIdInternal(String masterId)
Set masterId on implementations ofAbstractShadowableRdcDomainObject
.Methods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject
getMasterId, setId, setMasterId
Methods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
getId
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
id
The id of the response rate image. Holds the complete path which can be used to download the file. -
masterId
The master id of the survey response rate image metadata. -
surveyId
@NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.survey-id.not-empty") private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.survey-id.not-empty") String surveyIdThe id of theSurvey
to which this response rate image belongs. Must not be empty. -
dataAcquisitionProjectId
@NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.project-id.not-empty") private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.project-id.not-empty") String dataAcquisitionProjectIdThe id of theDataAcquisitionProject
to which theSurvey
of this response rate image belongs. Must not be empty. -
language
@NotNull(message="survey-management.error.survey-response-rate-image-metadata.language.not-null") @ValidIsoLanguage(message="survey-management.error.survey-response-rate-image-metadata.language.not-supported") private @NotNull(message="survey-management.error.survey-response-rate-image-metadata.language.not-null") @ValidIsoLanguage(message="survey-management.error.survey-response-rate-image-metadata.language.not-supported") String languageThe language used in the response rate image. Must be either "de" or "en". -
fileName
@NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.filename.not-empty") @Pattern(message="survey-management.survey-response-rate-image-metadata.filename.not-valid", regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") private @NotEmpty(message="survey-management.error.survey-response-rate-image-metadata.filename.not-empty") @Pattern(message="survey-management.survey-response-rate-image-metadata.filename.not-valid",regexp="^[_A-Za-z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\\-\\.]*$") String fileNameThe filename of the image. Must not be empty and must contain only (german) alphanumeric characters and "_" and "-" and ".". -
surveyNumber
@NotNull(message="survey-management.error.survey-response-rate-image-metadata.survey-number.not-null") private @NotNull(message="survey-management.error.survey-response-rate-image-metadata.survey-number.not-null") Integer surveyNumberThe number of theSurvey
to which this response rate image belongs. Must not be empty.
-
-
Constructor Details
-
SurveyResponseRateImageMetadata
public SurveyResponseRateImageMetadata()
-
-
Method Details
-
generateId
public void generateId()Generate the id of this image from the surveyId and the fileName. -
setMasterIdInternal
Description copied from class:AbstractShadowableRdcDomainObject
Set masterId on implementations ofAbstractShadowableRdcDomainObject
.- Specified by:
setMasterIdInternal
in classAbstractShadowableRdcDomainObject
- Parameters:
masterId
- Master Id
-
setIdInternal
Description copied from class:AbstractShadowableRdcDomainObject
Set id on implementation ofAbstractShadowableRdcDomainObject
.- Specified by:
setIdInternal
in classAbstractShadowableRdcDomainObject
- Parameters:
id
- Id
-