Package no.nsd.qddt.domain.topicgroup
Class TopicGroup
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractEntity
-
- no.nsd.qddt.domain.AbstractEntityAudit
-
- no.nsd.qddt.domain.topicgroup.TopicGroup
-
- All Implemented Interfaces:
IAuthor,IArchived,IEntityAuditXmlRef
@Entity public class TopicGroup extends AbstractEntityAudit implements IAuthor, IArchived
- A Topic Group (Module) will have one or more Concepts.
- A Concept consist of one or more QuestionItems.
- Every QuestionItem will have a Question.
- Every QuestionItem will have a ResponseDomain.
- A Concept consist of one or more QuestionItems.
A Topic Group (Module) should be a collection of QuestionItems and Concepts that has a theme that is broader than a Concept. All QuestionItems that doesn't belong to a specific Concept, will be collected in a default Concept that every Module should have. This default Concept should not be visualized as a Concept, but as a "Virtual Topic Group (Module)". The reason for this is a simplified data model.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class no.nsd.qddt.domain.AbstractEntityAudit
AbstractEntityAudit.ChangeKind
-
-
Field Summary
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntityAudit
hasRun
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntity
LOG
-
-
Constructor Summary
Constructors Constructor Description TopicGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthor(Author user)Add aAuthorto aSetof authors.ConceptaddConcept(Concept concept)voidaddQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)voidaddQuestionItem(ElementRef qef)protected voidbeforeInsert()protected voidbeforeUpdate()booleanequals(java.lang.Object o)voidfillDoc(PdfReport pdfReport, java.lang.String counter)java.util.Set<Author>getAuthors()Get all authors attached to this entity as aSetjava.util.Set<Concept>getConcepts()java.lang.StringgetDescription()java.util.List<OtherMaterial>getOtherMaterials()StudygetStudy()StudyRefgetStudyRef()java.util.List<ElementRef>getTopicQuestionItems()protected java.util.List<ElementRefTyped<QuestionItem>>getTopicQuestionItemsT()AbstractXmlBuildergetXmlBuilder()inthashCode()booleanisArchived()voidpreRemove()voidremoveQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)voidsetArchived(boolean archived)voidsetAuthors(java.util.Set<Author> authors)Set theSetofAuthorfor the entity.voidsetConcepts(java.util.Set<Concept> concepts)voidsetDescription(java.lang.String description)voidsetOtherMaterials(java.util.List<OtherMaterial> otherMaterials)voidsetParent(Study newParent)voidsetStudy(Study study)voidsetTopicQuestionItems(java.util.List<ElementRef> conceptQuestionItems)java.lang.StringtoString()-
Methods inherited from class no.nsd.qddt.domain.AbstractEntityAudit
getAgency, getBasedOnObject, getBasedOnRevision, getChangeComment, getChangeKind, getClassKind, getComments, getName, getVersion, getXmlLang, isBasedOn, isNewCopy, makeNewCopy, makePdf, setAgency, setBasedOnObject, setBasedOnRevision, setChangeComment, setChangeKind, setClassKind, setComments, setName, setVersion, setXmlLang
-
Methods inherited from class no.nsd.qddt.domain.AbstractEntity
getId, getModified, getModifiedBy, setField, setId, setModified, setModifiedBy
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.nsd.qddt.domain.IEntityAuditXmlRef
getId
-
-
-
-
Method Detail
-
addAuthor
public void addAuthor(Author user)
Description copied from interface:IAuthorAdd aAuthorto aSetof authors.
-
getAuthors
public java.util.Set<Author> getAuthors()
Description copied from interface:IAuthorGet all authors attached to this entity as aSet- Specified by:
getAuthorsin interfaceIAuthor
-
setAuthors
public void setAuthors(java.util.Set<Author> authors)
Description copied from interface:IAuthorSet theSetofAuthorfor the entity.- Specified by:
setAuthorsin interfaceIAuthor- Parameters:
authors- populated set of authors.
-
getStudy
public Study getStudy()
-
setStudy
public void setStudy(Study study)
-
getConcepts
public java.util.Set<Concept> getConcepts()
-
setConcepts
public void setConcepts(java.util.Set<Concept> concepts)
-
getOtherMaterials
public java.util.List<OtherMaterial> getOtherMaterials()
-
setOtherMaterials
public void setOtherMaterials(java.util.List<OtherMaterial> otherMaterials)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getTopicQuestionItemsT
protected java.util.List<ElementRefTyped<QuestionItem>> getTopicQuestionItemsT()
-
getTopicQuestionItems
public java.util.List<ElementRef> getTopicQuestionItems()
-
setTopicQuestionItems
public void setTopicQuestionItems(java.util.List<ElementRef> conceptQuestionItems)
-
removeQuestionItem
public void removeQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
-
addQuestionItem
public void addQuestionItem(java.util.UUID questionItemId, java.lang.Integer rev)
-
addQuestionItem
public void addQuestionItem(ElementRef qef)
-
setParent
public void setParent(Study newParent)
-
getStudyRef
public StudyRef getStudyRef()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractEntityAudit
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractEntityAudit
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractEntityAudit
-
getXmlBuilder
public AbstractXmlBuilder getXmlBuilder()
- Specified by:
getXmlBuilderin interfaceIEntityAuditXmlRef- Specified by:
getXmlBuilderin classAbstractEntity
-
fillDoc
public void fillDoc(PdfReport pdfReport, java.lang.String counter)
- Specified by:
fillDocin classAbstractEntityAudit
-
preRemove
public void preRemove()
-
isArchived
public boolean isArchived()
- Specified by:
isArchivedin interfaceIArchived
-
setArchived
public void setArchived(boolean archived)
- Specified by:
setArchivedin interfaceIArchived
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdatein classAbstractEntityAudit
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsertin classAbstractEntityAudit
-
-