Class TopicDetail

  • All Implemented Interfaces:
    Serializable

    public class TopicDetail
    extends Object
    implements Serializable
    This object contains elements which are displayed in a yellowpages Topic
    Version:
    1.0
    Author:
    Nicolas Eysseric
    See Also:
    Serialized Form
    • Constructor Detail

      • TopicDetail

        public TopicDetail()
        Construct an empty TopicDetail
      • TopicDetail

        public TopicDetail​(Collection<org.silverpeas.core.node.model.NodeDetail> path,
                           org.silverpeas.core.node.model.NodeDetail nodeDetail,
                           Collection<UserContact> contactDetails,
                           Collection<Integer> nbContactByTopic)
        Create a new TopicDetail
    • Method Detail

      • getPath

        public Collection<org.silverpeas.core.node.model.NodeDetail> getPath()
        Get the path
        Returns:
        the path
      • getNodePK

        public org.silverpeas.core.node.model.NodePK getNodePK()
        Get the Topic nodePK
        Returns:
        the Topic nodePK
        See Also:
        NodePK
      • getNodeDetail

        public org.silverpeas.core.node.model.NodeDetail getNodeDetail()
        Get the detail of this topic
        Returns:
        the detail of this topic
        See Also:
        NodeDetail
      • getContactDetails

        public Collection<UserContact> getContactDetails()
        Get a ContactDetail collection containing all the contacts in this topic
        Returns:
        a ContactDetail collection containing all the contacts in this topic
        See Also:
        ContactDetail, Collection
      • getNbContactByTopic

        public Collection<Integer> getNbContactByTopic()
        Get a int collection containing the number of contacts of each sub topics
        Returns:
        a int collection containing the number of contacts of each sub topics
        See Also:
        Collection
      • setPath

        public void setPath​(Collection<org.silverpeas.core.node.model.NodeDetail> path)
        Set the path
        Parameters:
        path - a NodeDetail Collection
      • setNodeDetail

        public void setNodeDetail​(org.silverpeas.core.node.model.NodeDetail nd)
        Set the detail of this topic
        Parameters:
        nd - the topic NodeDetail
      • setContactDetails

        public void setContactDetails​(Collection<UserContact> pd)
        Set the contact details of each contact containing in this topic
        Parameters:
        pd - a ContactDetail Collection
      • setNbContactByTopic

        public void setNbContactByTopic​(Collection<Integer> nbContactByTopic)
        Set the number of contacts in each sub topics
        Parameters:
        nbContactByTopic - a int Collection