Class DefaultBlogService
java.lang.Object
org.silverpeas.components.blog.service.DefaultBlogService
- All Implemented Interfaces:
BlogService,org.silverpeas.core.ApplicationService,org.silverpeas.core.initialization.Initialization
@Service
@Named("blogService")
public class DefaultBlogService
extends Object
implements BlogService, org.silverpeas.core.initialization.Initialization
Default implementation of the services provided by the Blog component. It is managed by the
underlying IoC container. At initialization by the IoC container, it registers itself among
different services for which it is interested.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCategory(Category category) createPost(PostDetail post) createPost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification) voiddeleteCategory(String instanceId, String id) voiddeletePost(String instanceId, String postId) voiddraftOutPost(PostDetail post) getAllArchives(String instanceId) Collection<org.silverpeas.core.node.model.NodeDetail>getAllCategories(String instanceId) getAllPosts(String instanceId) getCategory(org.silverpeas.core.node.model.NodePK pk) protected org.silverpeas.core.comment.service.CommentServiceGets a DefaultCommentService instance.org.silverpeas.kernel.bundle.LocalizationBundlegetComponentMessages(String language) org.silverpeas.kernel.bundle.SettingBundlegetContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) getLastPosts(String instanceId, BlogFilters filters) getLastValidPosts(String instanceId, BlogFilters filters) getPostsByArchive(String instanceId, String beginDate, String endDate, BlogFilters filters) getPostsByCategory(String instanceId, String categoryId, BlogFilters filters) getPostsByEventDate(String instanceId, String date, BlogFilters filters) getResultSearch(String instanceId, String word, String userId, BlogFilters filters) voidvoidinit()booleanisRelatedTo(String instanceId) booleanisSubscribed(String userId, String instanceId) voidsendSubscriptionsNotification(org.silverpeas.core.node.model.NodePK fatherPK, PostDetail post, org.silverpeas.core.comment.model.Comment comment, String type, String senderId) voidupdateCategory(Category category) voidupdatePost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
Constructor Details
-
DefaultBlogService
public DefaultBlogService()
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceorg.silverpeas.core.initialization.Initialization
-
getContributionById
public Optional<PostDetail> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId) - Specified by:
getContributionByIdin interfaceorg.silverpeas.core.ApplicationService- Specified by:
getContributionByIdin interfaceBlogService
-
getComponentSettings
public org.silverpeas.kernel.bundle.SettingBundle getComponentSettings()- Specified by:
getComponentSettingsin interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
- Specified by:
getComponentMessagesin interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
- Specified by:
isRelatedToin interfaceorg.silverpeas.core.ApplicationService
-
createPost
- Specified by:
createPostin interfaceBlogService
-
createPost
public String createPost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification) - Specified by:
createPostin interfaceBlogService
-
sendSubscriptionsNotification
public void sendSubscriptionsNotification(org.silverpeas.core.node.model.NodePK fatherPK, PostDetail post, org.silverpeas.core.comment.model.Comment comment, String type, String senderId) - Specified by:
sendSubscriptionsNotificationin interfaceBlogService
-
updatePost
public void updatePost(PostDetail post, org.silverpeas.core.pdc.pdc.model.PdcClassification classification) - Specified by:
updatePostin interfaceBlogService
-
deletePost
- Specified by:
deletePostin interfaceBlogService
-
getLastPosts
- Specified by:
getLastPostsin interfaceBlogService
-
getAllPosts
- Specified by:
getAllPostsin interfaceBlogService
-
getLastValidPosts
- Specified by:
getLastValidPostsin interfaceBlogService
-
getPostsByCategory
public Collection<PostDetail> getPostsByCategory(String instanceId, String categoryId, BlogFilters filters) - Specified by:
getPostsByCategoryin interfaceBlogService
-
getPostsByEventDate
public Collection<PostDetail> getPostsByEventDate(String instanceId, String date, BlogFilters filters) - Specified by:
getPostsByEventDatein interfaceBlogService
-
getPostsByArchive
public Collection<PostDetail> getPostsByArchive(String instanceId, String beginDate, String endDate, BlogFilters filters) - Specified by:
getPostsByArchivein interfaceBlogService
-
getResultSearch
public Collection<PostDetail> getResultSearch(String instanceId, String word, String userId, BlogFilters filters) - Specified by:
getResultSearchin interfaceBlogService
-
createCategory
- Specified by:
createCategoryin interfaceBlogService
-
updateCategory
- Specified by:
updateCategoryin interfaceBlogService
-
deleteCategory
- Specified by:
deleteCategoryin interfaceBlogService
-
getCategory
- Specified by:
getCategoryin interfaceBlogService
-
getAllCategories
- Specified by:
getAllCategoriesin interfaceBlogService
-
getAllArchives
- Specified by:
getAllArchivesin interfaceBlogService
-
indexBlog
- Specified by:
indexBlogin interfaceBlogService
-
isSubscribed
- Specified by:
isSubscribedin interfaceBlogService
-
draftOutPost
- Specified by:
draftOutPostin interfaceBlogService
-
getCommentService
protected org.silverpeas.core.comment.service.CommentService getCommentService()Gets a DefaultCommentService instance.- Returns:
- a DefaultCommentService instance.
-