Class QuestionContainerDetail

    • Method Detail

      • setHeader

        public void setHeader​(QuestionContainerHeader header)
        Parameters:
        header - the Question Container header to set
      • setQuestions

        public void setQuestions​(Collection<Question> questions)
        Parameters:
        questions - the collection of questions to set
      • setComments

        public void setComments​(Collection<Comment> comments)
        Parameters:
        comments - the collection of comments to set
      • setCurrentUserVotes

        public void setCurrentUserVotes​(Collection<QuestionResult> votes)
        Parameters:
        votes - the collection of QuestionResult to set
      • getQuestions

        public Collection<Question> getQuestions()
        Returns:
        the collection of questions
      • getFirstQuestion

        public Question getFirstQuestion()
        Returns:
        the first question
      • getComments

        public Collection<Comment> getComments()
        Returns:
        the collection of comments
      • getCurrentUserVotes

        public Collection<QuestionResult> getCurrentUserVotes()
        Returns:
        the collection of question result
      • getJsonPosition

        public String getJsonPosition()
        Returns:
        the jsonPosition
      • setJsonPosition

        public void setJsonPosition​(String jsonPosition)
        Parameters:
        jsonPosition - the jsonPosition to set
      • getComponentInstanceId

        public String getComponentInstanceId()
        Description copied from interface: SilverpeasContent
        Gets the unique identifier of the Silverpeas component instance that manages this content.
        Specified by:
        getComponentInstanceId in interface SilverpeasContent
        Returns:
        the unique identifier of the component instance in the Silverpeas collaborative portal.
      • getContributionType

        public String getContributionType()
        Description copied from interface: Contribution
        Gets the type of this contribution. The type is a label that identifies uniquely a kind of contribution handled by a Silverpeas application. By default, this method returns the simple name of the class implementing this interface.
        Specified by:
        getContributionType in interface Contribution
        Returns:
        the label of the type of this contribution.
      • getLastUpdateDate

        public Date getLastUpdateDate()
        Description copied from interface: SilverpeasResource
        Gets the date at which the resource has been lastly updated. If the resource doesn't have such an information, then this method should return the date of the resource creation.
        Specified by:
        getLastUpdateDate in interface SilverpeasResource
        Returns:
        the date of the last update of the resource.
      • getLastUpdater

        public User getLastUpdater()
        Description copied from interface: SilverpeasResource
        Gets the user that has lastly updated the resource. If the resource doesn't have such an information, then this method should return the user that has created the resource.
        Specified by:
        getLastUpdater in interface SilverpeasResource
        Returns:
        a User in Silverpeas.
      • 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.
      • getSilverpeasContentId

        public String getSilverpeasContentId()
        Description copied from interface: SilverpeasContent
        Gets the unique identifier of this content among all the contents managed in the Silverpeas collaborative portal. It is the alone unique identifier of a content in the whole Silverpeas portal; it is referred as the Silverpeas content identifier or the silver content identifier. For each content put into the Silverpeas collaborative portal, an entry is uniquely created in the whole system so that is can be referred by transversal services and by component instances others the one that manages it. For compatibility reason, the Silverpeas content identifier of contents that are no yet taken into account in the whole system isn't defined, so an empty string is then returned.
        Specified by:
        getSilverpeasContentId in interface SilverpeasContent
        Returns:
        the unique identifier of this content in the whole Silverpeas collaborative portal. Can be empty if no such identifier is defined for the type of this content (default).
      • setSilverpeasContentId

        protected void setSilverpeasContentId​(String contentId)
      • 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.
      • getDescription

        public String getDescription()
        Description copied from interface: Contribution
        Gets a description about this contribution if any. By default returns an empty String.
        Specified by:
        getDescription in interface Contribution
        Specified by:
        getDescription in interface Nameable
        Returns:
        the description on this contribution. Can be empty if no description was set or no description is defined for a such contribution.