Class QuestionContainerHeader

    • Constructor Detail

      • QuestionContainerHeader

        public QuestionContainerHeader​(QuestionContainerPK questionContainerPK,
                                       String title,
                                       String description,
                                       String comment,
                                       String creatorId,
                                       String creationDate,
                                       String beginDate,
                                       String endDate,
                                       boolean isClosed,
                                       int nbVoters,
                                       int nbQuestionsPerPage,
                                       int nbMaxParticipations,
                                       int nbParticipationsBeforeSolution,
                                       int maxTime,
                                       int resultMode,
                                       int resultView)
      • QuestionContainerHeader

        public QuestionContainerHeader​(QuestionContainerPK questionContainerPK,
                                       String title,
                                       String description,
                                       String comment,
                                       String creatorId,
                                       String creationDate,
                                       String beginDate,
                                       String endDate,
                                       boolean isClosed,
                                       int nbVoters,
                                       int nbQuestionsPerPage,
                                       int nbMaxParticipations,
                                       int nbParticipationsBeforeSolution,
                                       int maxTime,
                                       boolean anonymous,
                                       int resultMode,
                                       int resultView)
      • QuestionContainerHeader

        public QuestionContainerHeader​(QuestionContainerPK questionContainerPK,
                                       String title,
                                       String description,
                                       String creatorId,
                                       String creationDate,
                                       String beginDate,
                                       String endDate,
                                       boolean isClosed,
                                       int nbVoters,
                                       int nbQuestionsPerPage,
                                       boolean anonymous,
                                       int resultMode,
                                       int resultView)
    • Method Detail

      • getTitle

        public String getTitle()
        Description copied from interface: Contribution
        Gets the title of this contribution if any. By default returns an empty String.
        Specified by:
        getTitle in interface Contribution
        Returns:
        the contribution's title in the specified language. Can be empty if no title was set or no title is defined for a such contribution.
      • getComment

        public String getComment()
      • getBeginDate

        public String getBeginDate()
      • getEndDate

        public String getEndDate()
      • isClosed

        public boolean isClosed()
      • getNbVoters

        public int getNbVoters()
      • getNbRegistered

        public int getNbRegistered()
      • getNbQuestionsPerPage

        public int getNbQuestionsPerPage()
      • getNbMaxParticipations

        public int getNbMaxParticipations()
      • getNbParticipationsBeforeSolution

        public int getNbParticipationsBeforeSolution()
      • getMaxTime

        public int getMaxTime()
      • getNbMaxPoints

        public int getNbMaxPoints()
      • setTitle

        public void setTitle​(String title)
      • setComment

        public void setComment​(String comment)
      • setCreatorId

        public void setCreatorId​(String creatorId)
      • setCreationDate

        public void setCreationDate​(String creationDate)
      • setBeginDate

        public void setBeginDate​(String beginDate)
      • setEndDate

        public void setEndDate​(String endDate)
      • close

        public void close​(boolean isClosed)
      • setNbVoters

        public void setNbVoters​(int nb)
      • setNbQuestionsPerPage

        public void setNbQuestionsPerPage​(int nb)
      • setNbMaxParticipations

        public void setNbMaxParticipations​(int nb)
      • setNbParticipationsBeforeSolution

        public void setNbParticipationsBeforeSolution​(int nb)
      • setMaxTime

        public void setMaxTime​(int nb)
      • setNbMaxPoints

        public void setNbMaxPoints​(int nb)
      • getId

        public String getId()
        Description copied from interface: SilverpeasContent
        Gets the identifier of this content in the Silverpeas component providing it. This identifier is only unique among all the contents managed by the same component (whatever its different instances). As each type of contents in Silverpeas is provided by a single Silverpeas component, the identifier of a content is then specific to the component it belongs to. It is a way for an instance of a such component to identify uniquely the different contents it manages. So, each component can have their own policy to identify their content, whatever the way they are identified in Silverpeas.
        Specified by:
        getId in interface Identifiable
        Specified by:
        getId in interface SilverpeasContent
        Returns:
        the identifier of this content.
      • setIconUrl

        public void setIconUrl​(String iconUrl)
      • isAnonymous

        public boolean isAnonymous()
      • setAnonymous

        public void setAnonymous​(boolean anonymous)
      • getResultMode

        public int getResultMode()
      • setResultMode

        public void setResultMode​(int resultMode)
      • getResultView

        public int getResultView()
      • setResultView

        public void setResultView​(int resultView)