public interface IBaseForumModule extends IModule
Code sample :
// creation of a forum module object
IBaseForumModule forumModule = Modules.getForumModule();
try
{
}
finally
{
// uninitialize the module
Modules.releaseModule(forumModule);
}
IForumSpace
,
IForum
,
IDiscussion
,
IPost
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
IForumSpace createForumSpace(IContext context, IOrganization organization, String name, String description) throws ForumModuleException
context
- name
- description
- ForumModuleException
IForumSpace getForumSpace(IContext context, IOrganization organization, String name) throws ForumModuleException
context
- The execution context.organization
- The IOrganization
object.name
- The name of the organization.IForumSpace
object.ForumModuleException
- default module exception.Collection getForumSpaces(IContext context, IOrganization organization) throws ForumModuleException
context
- The execution context.organization
- The IOrganization
object.IForumSpace
objects.ForumModuleException
- default module exception.Collection getForumSpaces(IContext context) throws ForumModuleException
context
- The execution context.IForumSpace
objects.ForumModuleException
- default module exception.IForum createForum(IContext context, IForumSpace forumSpace, String label, String description) throws ForumModuleException
ForumModuleException
IForum createForumCategory(IContext context, IForumSpace forumSpace, String label, String description) throws ForumModuleException
ForumModuleException
IForum createForum(IContext context, IForum parent, String label, String description) throws ForumModuleException
ForumModuleException
IForum createForumCategory(IContext context, IForum parent, String label, String description) throws ForumModuleException
ForumModuleException
IForum getForum(IContext context, IForumSpace forumSpace, String label) throws ForumModuleException
ForumModuleException
IForum getForum(IContext context, IForum parent, String label) throws ForumModuleException
ForumModuleException
Collection getForums(IContext context, IForum parent) throws ForumModuleException
ForumModuleException
Collection getForums(IContext context, IForumSpace forumSpace) throws ForumModuleException
ForumModuleException
IForum getForumByPath(IContext context, IForumSpace forumSpace, String path) throws ForumModuleException
ForumModuleException
IForumSpace getForumSpace(IContext context, IForum forum) throws ForumModuleException
ForumModuleException
IForum getParentForum(IContext context, IForum forum) throws ForumModuleException
ForumModuleException
Collection getParentForums(IContext context, IForum forum) throws ForumModuleException
ForumModuleException
IDiscussion createDiscussion(IContext context, IForum forum, String label, String description) throws ForumModuleException
ForumModuleException
IDiscussion getDiscussion(IContext context, IForum forum, String label) throws ForumModuleException
ForumModuleException
Collection getDiscussions(IContext context, IForum parent) throws ForumModuleException
ForumModuleException
void pin(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
void unPin(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
void lock(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
void unLock(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
IForumSpace getForumSpace(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
IForum getParentForum(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
Collection getParentForums(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
IPost replyTo(IContext context, IDiscussion discussion, String label, String description) throws ForumModuleException
ForumModuleException
IPost replyTo(IContext context, IPost post, String label, String description) throws ForumModuleException
ForumModuleException
IPost getFirstPost(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
IPost getLastPost(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
Collection getPosts(IContext context, IDiscussion discussion) throws ForumModuleException
ForumModuleException
Collection getPosts(IContext context, IPost parent) throws ForumModuleException
ForumModuleException
IForumSpace getForumSpace(IContext context, IPost post) throws ForumModuleException
ForumModuleException
IForum getParentForum(IContext context, IPost post) throws ForumModuleException
ForumModuleException
IDiscussion getParentDiscussion(IContext context, IPost post) throws ForumModuleException
ForumModuleException
Collection getParentForums(IContext context, IPost post) throws ForumModuleException
ForumModuleException
Collection getAttachments(IPost post) throws ForumModuleException
ForumModuleException
IAttachment getAttachment(IPost post, String fileName) throws ForumModuleException
ForumModuleException
IAttachment addAttachment(IPost post, File ioFile) throws ForumModuleException
ForumModuleException
IAttachment addAttachment(IPost post, String fileName, InputStream inputStream) throws ForumModuleException
ForumModuleException
IAttachment addAttachment(IPost post, String fileName, String fullPath) throws ForumModuleException
ForumModuleException
IAttachment addAttachment(IPost post, IAttachment attachment) throws ForumModuleException
ForumModuleException
IUser getUser(Object object) throws ForumModuleException
ForumModuleException
IForumSpace getForumSpace(Object object) throws ForumModuleException
ForumModuleException
IForum getForum(Object object) throws ForumModuleException
ForumModuleException
IDiscussion getDiscussion(Object object) throws ForumModuleException
ForumModuleException
IPost getPost(Object object) throws ForumModuleException
ForumModuleException
IProtocolSupport getElementByProtocolURI(String protocolURI) throws ModuleException
IElement
object which implements IProtocolSupport
interface.protocolURI
- The protocol URI as a java.lang.String.IProtocolSupport
object.ModuleException
- default module exception.ISecurityController getSecurityController(ISecuritySupport securitySupport) throws ForumModuleException
securitySupport
- Any IElement that implements ISecuritySupport interface.ISecurityController
object.ForumModuleException
- default module exception.Copyright © 2021 Visiativ Software. All rights reserved.