Class ForumActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.forum.impl.actions.ForumActionServiceImpl
- All Implemented Interfaces:
ForumActionService
-
Constructor Summary
ConstructorsConstructorDescriptionForumActionServiceImpl(RebindService rebindService, Context context, SecurityManager securityManager, EntityExplorerActionSelectionService selectionService, UriResolver uriResolver, BusinessUnitManager businessUnitManager, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyForum(EntityExplorerActionSelection selection) voiddeletePost(String postKey) getForumInfo(String forumKey) getTopicInfo(String topicKey) booleanisSubscribed(String key) voidsavePost(RebindValue[] values, String topicKey, String quoteKey) voidsaveTopic(RebindValue[] values, String forumKey) voidsetTopicStatus(String topicKey, String status) booleansubscribeForum(String forumKey, boolean subscribe) booleansubscribeTopic(String topicKey, boolean subscribe) Subscribes or unsubscribes the current user on the given topic.
-
Constructor Details
-
ForumActionServiceImpl
public ForumActionServiceImpl(RebindService rebindService, Context context, SecurityManager securityManager, EntityExplorerActionSelectionService selectionService, UriResolver uriResolver, BusinessUnitManager businessUnitManager, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService)
-
-
Method Details
-
isSubscribed
- Specified by:
isSubscribedin interfaceForumActionService
-
copyForum
- Specified by:
copyForumin interfaceForumActionService
-
subscribeTopic
Description copied from interface:ForumActionServiceSubscribes or unsubscribes the current user on the given topic.- Specified by:
subscribeTopicin interfaceForumActionService- Parameters:
topicKey- the key of the topicsubscribe- trut to add the subscription, false to remove.- Returns:
- true, if the user is subscribed now, false otherwise.
-
subscribeForum
- Specified by:
subscribeForumin interfaceForumActionService
-
saveTopic
- Specified by:
saveTopicin interfaceForumActionService
-
setTopicStatus
- Specified by:
setTopicStatusin interfaceForumActionService
-
savePost
- Specified by:
savePostin interfaceForumActionService
-
deletePost
- Specified by:
deletePostin interfaceForumActionService
-
getTopicInfo
- Specified by:
getTopicInfoin interfaceForumActionService
-
getForumInfo
- Specified by:
getForumInfoin interfaceForumActionService
-