Class ForumActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.forum.impl.actions.ForumActionServiceImpl
- All Implemented Interfaces:
ForumActionService
-
Constructor Summary
ConstructorDescriptionForumActionServiceImpl
(RebindService rebindService, Context context, SecurityManager securityManager, EntityExplorerActionSelectionService selectionService, UriResolver uriResolver, BusinessUnitManager businessUnitManager, QueryBuilderFactory queryBuilderFactory, PrincipalService principalService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyForum
(EntityExplorerActionSelection selection) void
deletePost
(String postKey) getForumInfo
(String forumKey) getTopicInfo
(String topicKey) boolean
isSubscribed
(String key) void
savePost
(RebindValue[] values, String topicKey, String quoteKey) void
saveTopic
(RebindValue[] values, String forumKey) void
setTopicStatus
(String topicKey, String status) boolean
subscribeForum
(String forumKey, boolean subscribe) boolean
subscribeTopic
(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:
isSubscribed
in interfaceForumActionService
-
copyForum
- Specified by:
copyForum
in interfaceForumActionService
-
subscribeTopic
Description copied from interface:ForumActionService
Subscribes or unsubscribes the current user on the given topic.- Specified by:
subscribeTopic
in 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:
subscribeForum
in interfaceForumActionService
-
saveTopic
- Specified by:
saveTopic
in interfaceForumActionService
-
setTopicStatus
- Specified by:
setTopicStatus
in interfaceForumActionService
-
savePost
- Specified by:
savePost
in interfaceForumActionService
-
deletePost
- Specified by:
deletePost
in interfaceForumActionService
-
getTopicInfo
- Specified by:
getTopicInfo
in interfaceForumActionService
-
getForumInfo
- Specified by:
getForumInfo
in interfaceForumActionService
-