Class CommentedPublicationInfo
- java.lang.Object
-
- org.silverpeas.core.comment.model.CommentedPublicationInfo
-
- All Implemented Interfaces:
Serializable
public class CommentedPublicationInfo extends Object implements Serializable
Short information about a commented publication.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentedPublicationInfo(String publicationType, String publicationId, String componentId, int commentCount)
Constructs a new CommentedPublicationInfo instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommentCount()
Gets the number of comments on the publication.String
getComponentId()
Gets the identifier of the Silverpeas component to which the publication belongs.String
getPublicationId()
Gets the identifier of the publication.String
getPublicationType()
Gets the type of the publication.
-
-
-
Constructor Detail
-
CommentedPublicationInfo
public CommentedPublicationInfo(String publicationType, String publicationId, String componentId, int commentCount)
Constructs a new CommentedPublicationInfo instance.- Parameters:
publicationType
- type of the commented publication.publicationId
- identifier of the commented publication.componentId
- identifier of the Silverpeas component to which the publication belongs.commentCount
- number of comments on the publucation.
-
-
Method Detail
-
getCommentCount
public int getCommentCount()
Gets the number of comments on the publication.- Returns:
- the comments count.
-
getComponentId
public String getComponentId()
Gets the identifier of the Silverpeas component to which the publication belongs.- Returns:
- the Silverpeas component instance identifier.
-
getPublicationType
public String getPublicationType()
Gets the type of the publication.- Returns:
- the publication identifier.
-
getPublicationId
public String getPublicationId()
Gets the identifier of the publication.- Returns:
- the publication identifier.
-
-