com.silverpeas.comment.model
Class CommentedPublicationInfo

java.lang.Object
  extended by com.silverpeas.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
CommentedPublicationInfo(String publicationType, String publicationId, String componentId, int commentCount)
          Constructs a new CommentedPublicationInfo instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2016 Silverpeas. All Rights Reserved.