@Repository public class ForumThreadRepositoryImpl extends Object implements ForumThreadRepository
ForumThreadRepositoryCLOSED_PROPERTY| Constructor and Description |
|---|
ForumThreadRepositoryImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ForumThreadObject |
createPost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadForm form,
ForumThreadOptions options)
Create forum thread post.
|
void |
deletePost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadForm form,
ForumThreadOptions options)
Delete forum thread post.
|
net.sf.json.JSONArray |
getPosts(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread)
Get forum thread posts JSON array.
|
org.nuxeo.ecm.automation.client.model.Document |
getThread(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
Get forum thread Nuxeo document.
|
void |
insertMenubarItems(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document document)
Insert menubar items.
|
boolean |
isClosed(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread)
Check if forum thread is closed.
|
void |
setProperties(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadForm form)
Set forum thread form properties.
|
org.nuxeo.ecm.automation.client.model.Document |
toggleThreadClosure(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread,
boolean close)
Toggle forum thread closure.
|
ForumThreadObject |
updatePost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadObject post,
ForumThreadOptions options)
Update forum thread post.
|
public void insertMenubarItems(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document document)
ForumThreadRepositoryinsertMenubarItems in interface ForumThreadRepositoryportalControllerContext - portal controller contextdocument - forum thread Nuxeo documentpublic boolean isClosed(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread)
ForumThreadRepositoryisClosed in interface ForumThreadRepositoryportalControllerContext - portal controller contextthread - forum thread Nuxeo documentpublic ForumThreadObject updatePost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, ForumThreadObject post, ForumThreadOptions options) throws javax.portlet.PortletException, IOException
ForumThreadRepositoryupdatePost in interface ForumThreadRepositoryportalControllerContext - portal controller contextpost - forum thread postoptions - forum thread optionsjavax.portlet.PortletExceptionIOExceptionpublic void deletePost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadForm form,
ForumThreadOptions options)
ForumThreadRepositorydeletePost in interface ForumThreadRepositoryportalControllerContext - portal controller contextform - forum thread formoptions - forum thread optionspublic ForumThreadObject createPost(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, ForumThreadForm form, ForumThreadOptions options) throws javax.portlet.PortletException, IOException
ForumThreadRepositorycreatePost in interface ForumThreadRepositoryportalControllerContext - portal controller contextform - forum thread formoptions - thread form optionsjavax.portlet.PortletExceptionIOExceptionpublic org.nuxeo.ecm.automation.client.model.Document toggleThreadClosure(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread,
boolean close)
ForumThreadRepositorytoggleThreadClosure in interface ForumThreadRepositoryportalControllerContext - portal controller contextthread - forum thread Nuxeo documentclose - closure indicatorpublic void setProperties(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
ForumThreadForm form)
throws javax.portlet.PortletException,
IOException
ForumThreadRepositorysetProperties in interface ForumThreadRepositoryportalControllerContext - portal controller contextform - forum thread formjavax.portlet.PortletExceptionIOExceptionpublic org.nuxeo.ecm.automation.client.model.Document getThread(org.osivia.portal.api.context.PortalControllerContext portalControllerContext)
ForumThreadRepositorygetThread in interface ForumThreadRepositoryportalControllerContext - portal controller contextpublic net.sf.json.JSONArray getPosts(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document thread)
throws IOException
ForumThreadRepositorygetPosts in interface ForumThreadRepositoryportalControllerContext - portal controller context.thread - forum thread Nuxeo documentIOExceptionCopyright © 2022 OSIVIA. All rights reserved.