Class AbstractShadowableRdcDomainObject
java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractShadowableRdcDomainObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnalysisPackage
,AnalysisPackageAttachmentMetadata
,DataAcquisitionProject
,DataPackage
,DataPackageAttachmentMetadata
,DataSet
,DataSetAttachmentMetadata
,Instrument
,InstrumentAttachmentMetadata
,Question
,QuestionImageMetadata
,ScriptAttachmentMetadata
,Survey
,SurveyAttachmentMetadata
,SurveyResponseRateImageMetadata
,Variable
@ValidHiddenShadow public abstract class AbstractShadowableRdcDomainObject extends AbstractRdcDomainObject
Base class for all rdc domain objects which can exist as multiple versions (shadows).
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private boolean
hidden
True if and only if the shadow copy must not be available for the public user.private static long
serialVersionUID
private boolean
shadow
Determines whether this document is a shadow copy.private String
successorId
The document id which is the successor to this shadow copy. -
Constructor Summary
Constructors Constructor Description AbstractShadowableRdcDomainObject()
-
Method Summary
Modifier and Type Method Description abstract String
getMasterId()
void
setId(String id)
Set the id for the document.protected abstract void
setIdInternal(String id)
Set id on implementation ofAbstractShadowableRdcDomainObject
.void
setMasterId(String masterId)
Set the master id for the document.protected abstract void
setMasterIdInternal(String masterId)
Set masterId on implementations ofAbstractShadowableRdcDomainObject
.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
-
successorId
The document id which is the successor to this shadow copy. -
shadow
private boolean shadowDetermines whether this document is a shadow copy.
-
-
Constructor Details
-
AbstractShadowableRdcDomainObject
public AbstractShadowableRdcDomainObject()
-
-
Method Details
-
setMasterId
Set the master id for the document. This will modify it'sshadow
field as well.- Parameters:
masterId
- Master id
-
setId
Set the id for the document. This will modify it'sshadow
field as well.- Parameters:
id
- Document id
-
setMasterIdInternal
Set masterId on implementations ofAbstractShadowableRdcDomainObject
.- Parameters:
masterId
- Master Id
-
setIdInternal
Set id on implementation ofAbstractShadowableRdcDomainObject
.- Parameters:
id
- Id
-
getMasterId
-