Interface BlogService
-
- All Superinterfaces:
org.silverpeas.core.ApplicationService
- All Known Implementing Classes:
DefaultBlogService
public interface BlogService extends org.silverpeas.core.ApplicationService
Services provided by the Blog Silverpeas component.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createCategory(Category category)
String
createPost(PostDetail post)
String
createPost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification)
void
deleteCategory(String categoryId, String instanceId)
void
deletePost(String postId, String instanceId)
void
draftOutPost(PostDetail post)
static BlogService
get()
Collection<Archive>
getAllArchives(String instanceId)
Collection<org.silverpeas.core.node.model.NodeDetail>
getAllCategories(String instanceId)
Collection<PostDetail>
getAllPosts(String instanceId)
Collection<PostDetail>
getAllValidPosts(String instanceId, int nbReturned)
Category
getCategory(org.silverpeas.core.node.model.NodePK nodePK)
Optional<PostDetail>
getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
Date
getDateEvent(String pubId)
Collection<PostDetail>
getPostsByArchive(String beginDate, String endDate, String instanceId)
Collection<PostDetail>
getPostsByCategory(String categoryId, String instanceId)
Collection<PostDetail>
getPostsByDate(String date, String instanceId)
Collection<PostDetail>
getResultSearch(String word, String userId, String instanceId)
void
indexBlog(String componentId)
boolean
isSubscribed(String userId, String instanceId)
void
sendSubscriptionsNotification(org.silverpeas.core.node.model.NodePK fatherPK, PostDetail post, org.silverpeas.core.comment.model.Comment comment, String type, String senderId)
void
updateCategory(Category category)
void
updatePost(PostDetail post)
-
-
-
Method Detail
-
get
static BlogService get()
-
getContributionById
Optional<PostDetail> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
- Specified by:
getContributionById
in interfaceorg.silverpeas.core.ApplicationService
-
createPost
String createPost(PostDetail post)
-
createPost
String createPost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification)
-
updatePost
void updatePost(PostDetail post)
-
getAllPosts
Collection<PostDetail> getAllPosts(String instanceId)
-
getAllValidPosts
Collection<PostDetail> getAllValidPosts(String instanceId, int nbReturned)
-
getPostsByCategory
Collection<PostDetail> getPostsByCategory(String categoryId, String instanceId)
-
getPostsByArchive
Collection<PostDetail> getPostsByArchive(String beginDate, String endDate, String instanceId)
-
getPostsByDate
Collection<PostDetail> getPostsByDate(String date, String instanceId)
-
getResultSearch
Collection<PostDetail> getResultSearch(String word, String userId, String instanceId)
-
createCategory
void createCategory(Category category)
-
updateCategory
void updateCategory(Category category)
-
getCategory
Category getCategory(org.silverpeas.core.node.model.NodePK nodePK)
-
getAllCategories
Collection<org.silverpeas.core.node.model.NodeDetail> getAllCategories(String instanceId)
-
getAllArchives
Collection<Archive> getAllArchives(String instanceId)
-
indexBlog
void indexBlog(String componentId)
-
sendSubscriptionsNotification
void sendSubscriptionsNotification(org.silverpeas.core.node.model.NodePK fatherPK, PostDetail post, org.silverpeas.core.comment.model.Comment comment, String type, String senderId)
-
draftOutPost
void draftOutPost(PostDetail post)
-
-