Class 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 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.
    • Constructor Detail

      • TopicGroup

        public TopicGroup()
    • Method Detail

      • addAuthor

        public void addAuthor​(Author user)
        Description copied from interface: IAuthor
        Add a Author to a Set of authors.
        Specified by:
        addAuthor in interface IAuthor
        Parameters:
        user - added author.
      • getAuthors

        public java.util.Set<Author> getAuthors()
        Description copied from interface: IAuthor
        Get all authors attached to this entity as a Set
        Specified by:
        getAuthors in interface IAuthor
      • setAuthors

        public void setAuthors​(java.util.Set<Author> authors)
        Description copied from interface: IAuthor
        Set the Set of Author for the entity.
        Specified by:
        setAuthors in interface IAuthor
        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)
      • 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()
      • preRemove

        public void preRemove()
      • setArchived

        public void setArchived​(boolean archived)
        Specified by:
        setArchived in interface IArchived