com.silverpeas.blog.model
Class PostDetail

java.lang.Object
  extended by com.silverpeas.blog.model.PostDetail
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, Serializable

public final class PostDetail
extends Object
implements com.silverpeas.SilverpeasContent

See Also:
Serialized Form

Constructor Summary
PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication, Category category, int nbComments)
           
PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication, Category category, int nbComments, Date dateEvent)
           
PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication, String categoryId)
           
PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication, String categoryId, Date dateEvent)
           
 
Method Summary
 boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
          Is the specified user can access this post?
 Category getCategory()
           
 String getCategoryId()
           
 String getComponentInstanceId()
           
 String getContent()
           
 String getContributionType()
           
 Date getCreationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getCreator()
           
 String getCreatorName()
           
 Date getDateEvent()
           
 String getDescription()
           
 String getId()
           
 int getNbComments()
           
 String getPermalink()
           
 com.stratelia.webactiv.util.publication.model.PublicationDetail getPublication()
           
static String getResourceType()
          The type of this resource
 String getSilverpeasContentId()
           
 String getTitle()
           
 void setCategory(Category category)
           
 void setCategoryId(String categoryId)
           
 void setContent(String content)
           
 void setCreatorName(String creatorName)
           
 void setDateEvent(Date dateEvent)
           
 void setNbComments(int nbComments)
           
 void setPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail publication)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostDetail

public PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication,
                  String categoryId)

PostDetail

public PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication,
                  String categoryId,
                  Date dateEvent)

PostDetail

public PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication,
                  Category category,
                  int nbComments)

PostDetail

public PostDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail publication,
                  Category category,
                  int nbComments,
                  Date dateEvent)
Method Detail

getContent

public String getContent()

setContent

public void setContent(String content)

getCategory

public Category getCategory()

setCategory

public void setCategory(Category category)

getNbComments

public int getNbComments()

setNbComments

public void setNbComments(int nbComments)

getPublication

public com.stratelia.webactiv.util.publication.model.PublicationDetail getPublication()

setPublication

public void setPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail publication)

getCategoryId

public String getCategoryId()

setCategoryId

public void setCategoryId(String categoryId)

getCreatorName

public String getCreatorName()

setCreatorName

public void setCreatorName(String creatorName)

getDateEvent

public Date getDateEvent()

setDateEvent

public void setDateEvent(Date dateEvent)

getPermalink

public String getPermalink()

getId

public String getId()
Specified by:
getId in interface com.silverpeas.SilverpeasContent

getComponentInstanceId

public String getComponentInstanceId()
Specified by:
getComponentInstanceId in interface com.silverpeas.SilverpeasContent

getCreator

public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
Specified by:
getCreator in interface com.silverpeas.SilverpeasContent

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface com.silverpeas.SilverpeasContent

getTitle

public String getTitle()
Specified by:
getTitle in interface com.silverpeas.SilverpeasContent

getDescription

public String getDescription()
Specified by:
getDescription in interface com.silverpeas.SilverpeasContent

getContributionType

public String getContributionType()
Specified by:
getContributionType in interface com.silverpeas.SilverpeasContent

canBeAccessedBy

public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
Is the specified user can access this post?

A user can access a post if it has enough rights to access the blog instance in which is managed this post.

Specified by:
canBeAccessedBy in interface com.silverpeas.SilverpeasContent
Parameters:
user - a user in Silverpeas.
Returns:
true if the user can access this post, false otherwise.

getResourceType

public static String getResourceType()
The type of this resource

Returns:
the same value returned by getContributionType()

getSilverpeasContentId

public String getSilverpeasContentId()
Specified by:
getSilverpeasContentId in interface com.silverpeas.SilverpeasContent


Copyright © 2016 Silverpeas. All Rights Reserved.