|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.ForumFactory
com.jivesoftware.forum.proxy.ForumFactoryProxy
public class ForumFactoryProxy
A protection proxy for ForumFactory. It ensures that only authorized users are allowed to access restricted methods.
| Field Summary | |
|---|---|
protected AuthToken |
authToken
|
protected ForumFactory |
factory
|
protected Permissions |
permissions
|
| Constructor Summary | |
|---|---|
ForumFactoryProxy(AuthToken authToken,
ForumFactory factory,
Permissions permissions)
|
|
| Method Summary | |
|---|---|
Forum |
createForum(java.lang.String name,
java.lang.String description)
Creates a new forum. |
Forum |
createForum(java.lang.String name,
java.lang.String description,
ForumCategory category)
Creates a new forum in the specified category. |
Query |
createQuery()
Creates a query object to search through all forums. |
Query |
createQuery(Forum[] forums)
Creates a query object to search through the specified list of forums. |
void |
deleteForum(Forum forum)
Deletes a forum and all of its content. |
AbuseManager |
getAbuseManager()
Returns an abuse manager that can be used for managing abuse reports |
AnnouncementManager |
getAnnouncementManager()
Returns an announcement manager, which is used to create and retrieve announcements. |
ArchiveManager |
getArchiveManager()
Returns an archive manager that can be used to manage archiving for forums. |
AttachmentManager |
getAttachmentManager()
Returns an attachment manager that can be used to manage attachment rules. |
AvatarManager |
getAvatarManager()
Returns a AvatarManager that can be used to find, create, delete, and make avatars active |
BanManager |
getBanManager()
Returns a ban manager that can be used for banning users |
DraftManager |
getDraftManager()
Returns a DraftManager that can be used to manager message drafts. |
EmailManager |
getEmailManager()
Returns an EmailManager that can be used for sending out emails |
Forum |
getForum(long forumID)
Returns the forum with the specified forumID. |
Forum |
getForum(java.lang.String nntpName)
Returns the forum with the specified NNTP name. |
ForumCategory |
getForumCategory(long categoryID)
Returns the forum category with the specified categoryID. |
int |
getForumCount()
Returns the total number of forums in the system. |
int |
getForumCount(ResultFilter resultFilter)
Returns the total number of forums in the system matching the ResultFilter. |
java.util.Iterator |
getForums()
Returns all forums in the system that the user has read permission for. |
java.util.Iterator |
getForums(ResultFilter resultFilter)
Returns all forums in the system that the user has read permission for and that matche the specified ResultFilter. |
ForumThread |
getForumThread(long threadID)
Returns the thread with the specified threadID. |
GatewayManager |
getGatewayManager()
Returns a gateway manager that can be used for managing gateways |
GroupManager |
getGroupManager()
Returns a GroupManager that can be used to manage groups. |
InterceptorManager |
getInterceptorManager()
Returns a message interceptor manager that can be used to manage global interceptors. |
ForumMessage |
getMessage(long messageID)
Returns the forum message with the specified messageID. |
long |
getMessageID(long forumID,
int forumIndex)
Returns the message ID with the specified forumID and forumIndex, or -1 if the forumIndex does not map to a message. |
ModerationManager |
getModerationManager()
Returns a moderation manager that can be used for moderating messages |
Permissions |
getPermissions(AuthToken authToken)
Returns the permissions for the factory that correspond to the passed-in Authorization. |
PermissionsManager |
getPermissionsManager()
Returns a permissions manager that can be used to set system wide permissions. |
PluginManager |
getPluginManager()
Returns an instance of PluginManager that can be used for acquiring
plugin instances. |
PollManager |
getPollManager()
Returns a poll manager that can be used to retrieve and manager polls. |
java.util.Iterator |
getPopularForums()
Returns an Iterator for the most popular forums in the system as Forum objects. |
java.util.Iterator |
getPopularThreads()
Returns an Iterator for the most threads in the system as ForumThread objects. |
PresenceManager |
getPresenceManager()
Returns a presence manager that can be used to retrieve and manage presences. |
PrivateMessageManager |
getPrivateMessageManager()
Returns a private message manager, which controls private message settings. |
QueryManager |
getQueryManager()
Returns a query manager that can be used to retrieve and manage search queries. |
QuestionManager |
getQuestionManager()
Returns a QuestionManager, which can be used to manage Questions. |
ReadTracker |
getReadTracker()
Returns a read tracker that can be used to track which threads and messages a user has read. |
RegistrationManager |
getRegistrationManager()
Returns a validation manager that can be used for validating user accounts |
RenderManager |
getRenderManager()
Returns a render manager that can be used to manage system wide render filters and macros. |
RewardManager |
getRewardManager()
Returns a reward manager that can be used to manage reward points. |
ForumCategory |
getRootForumCategory()
Returns the "root" forum category, that all other categories are children of. |
SearchManager |
getSearchManager()
Returns the search manger which can be used to manage the index used by Jive to perform searches. |
StatusLevelManager |
getStatusLevelManager()
Returns a StatusLevelManager that can be used to check a user status level, find leaders system wide, or by forum/category. |
TagManager |
getTagManager()
Returns a tag manager that can be used for managing tags |
UserManager |
getUserManager()
Returns a UserManager that can be used to manage users. |
int |
getUserMessageCount(User user)
Returns the total number of messages a user has posted in all forums. |
int |
getUserMessageCount(User user,
ResultFilter resultFilter)
Returns the total number of messages a user has posted in all forums that obey the parameters set by the specificed ResultFilter. |
java.util.Iterator |
getUserMessages(User user)
Returns an iterator for all messages posted by a user. |
java.util.Iterator |
getUserMessages(User user,
ResultFilter resultFilter)
Returns an iterator for all messages posted by a user that obey the parameters set by the specified ResultFilter. |
WatchManager |
getWatchManager()
Returns a watch manager that can be used to manage watches. |
WatchSettingsManager |
getWatchSettingsManager()
Returns a watch settings manager that can be used to manage watch settings. |
boolean |
isAuthorized(long type)
Returns true if the handle on the object has the permission specified. |
void |
mergeForums(Forum forum1,
Forum forum2)
Merges the content of two forums by copying the threads from forum2 to forum1. |
| Methods inherited from class com.jivesoftware.forum.ForumFactory |
|---|
getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ForumFactory factory
protected AuthToken authToken
protected Permissions permissions
| Constructor Detail |
|---|
public ForumFactoryProxy(AuthToken authToken,
ForumFactory factory,
Permissions permissions)
| Method Detail |
|---|
public Forum createForum(java.lang.String name,
java.lang.String description)
throws UnauthorizedException
ForumFactory
createForum in class ForumFactoryname - the name of the forum.description - the description of the forum.
UnauthorizedException - if not allowed to create a Forum.
public Forum createForum(java.lang.String name,
java.lang.String description,
ForumCategory category)
throws UnauthorizedException
ForumFactory
createForum in class ForumFactoryname - the name of the forum.description - the description of the forum.
UnauthorizedException - if not allowed to create a Forum.
public void deleteForum(Forum forum)
throws UnauthorizedException
ForumFactoryThis method is not always guaranteed to be safe to call. For example, if multiple clients have handles on a forum, and that forum is subsequently deleted, the behavior of the forum objects that the clients have handles on is unspecified and may result in errors.
deleteForum in class ForumFactoryforum - the forum to delete.
UnauthorizedException - if not allowed to delete a forum.
public void mergeForums(Forum forum1,
Forum forum2)
throws UnauthorizedException
ForumFactoryYou may only execute this operation if you are a system administrator.
mergeForums in class ForumFactoryforum1 - the Forum to merge threads into.forum2 - the Forum to move all threads from.
UnauthorizedException
public ForumCategory getForumCategory(long categoryID)
throws ForumCategoryNotFoundException
ForumFactory
getForumCategory in class ForumFactorycategoryID - the id of the forum category to return.
ForumCategoryNotFoundException - if the requested category does
not exist.public ForumCategory getRootForumCategory()
ForumFactory
getRootForumCategory in class ForumFactory
public Forum getForum(long forumID)
throws ForumNotFoundException,
UnauthorizedException
ForumFactory
getForum in class ForumFactoryforumID - the id of the forum to return.
ForumNotFoundException - if the requested forum does not exist.
UnauthorizedException - if not allowed to read the forum.
public Forum getForum(java.lang.String nntpName)
throws ForumNotFoundException,
UnauthorizedException
ForumFactory
getForum in class ForumFactorynntpName - the NNTP Name of the forum to return.
ForumNotFoundException - if the requested forum does not exist.
UnauthorizedException - if not allowed to read the forum.
public ForumThread getForumThread(long threadID)
throws ForumThreadNotFoundException,
UnauthorizedException
ForumFactory
getForumThread in class ForumFactorythreadID - the id of the thread to return.
ForumThreadNotFoundException - if the requested thread does not exist.
UnauthorizedException - if not allowed to read the thread.
public ForumMessage getMessage(long messageID)
throws ForumMessageNotFoundException,
UnauthorizedException
ForumFactory
getMessage in class ForumFactorymessageID - the id of the message to return.
ForumMessageNotFoundException - if the requested message does not exist.
UnauthorizedException - if not allowed to read the message.
public long getMessageID(long forumID,
int forumIndex)
ForumFactory
getMessageID in class ForumFactoryforumID - the forum ID of the message.forumIndex - the forum index value of the message.
public int getForumCount()
ForumFactory
getForumCount in class ForumFactorypublic int getForumCount(ResultFilter resultFilter)
ForumFactory
getForumCount in class ForumFactoryresultFilter - a ResultFilter used to filter the result.
public java.util.Iterator getForums()
ForumFactory
getForums in class ForumFactoryForumCategory.getRecursiveForums()public java.util.Iterator getForums(ResultFilter resultFilter)
ForumFactory
getForums in class ForumFactoryresultFilter - a ResultFilter object to perform filtering and
sorting with.
ForumCategory.getRecursiveForums(ResultFilter)public Query createQuery()
ForumFactory
createQuery in class ForumFactorypublic Query createQuery(Forum[] forums)
ForumFactory
createQuery in class ForumFactorypublic java.util.Iterator getPopularForums()
ForumFactorypopularForums.number -- The maximum number of
forums that will be returned in the list of popular forums.
Default is 4.
popularForums.timeWindow -- The number of hours
to consider new messages in a thread from. Default is 24 hours,
which is suitable for sites with moderate to high amounts of
traffic. Sites with less traffic may wish to set the window
to a number of days.
getPopularForums in class ForumFactorypublic java.util.Iterator getPopularThreads()
ForumFactorypopularThreads.number -- The number of
threads that will be returned in the list of popular threads.
Default is 4.
popularThreads.timeWindow -- The number of hours
to consider new messages in a thread from. Default is 24 hours,
which is suitable for sites with moderate to high amounts of
traffic. Sites with less traffic may wish to set the window
to a number of days.
getPopularThreads in class ForumFactorypublic int getUserMessageCount(User user)
ForumFactoryIn order to get a count of user messages in an individual forum, use the Forum.getMessageCount(ResultFilter) method.
getUserMessageCount in class ForumFactoryuser - the user to tally results for.
public int getUserMessageCount(User user,
ResultFilter resultFilter)
ForumFactoryIn order to get a count of user messages in an individual forum, use the Forum.getMessageCount(ResultFilter) method.
getUserMessageCount in class ForumFactoryuser - the user to tally results for.resultFilter - a resultFilter to limit the query on.
public java.util.Iterator getUserMessages(User user)
ForumFactory
getUserMessages in class ForumFactoryuser - the user to get messages for.
public java.util.Iterator getUserMessages(User user,
ResultFilter resultFilter)
ForumFactory
getUserMessages in class ForumFactoryuser - the user to get messages for.resultFilter - a resultFilter to limit the query on.
public UserManager getUserManager()
ForumFactory
getUserManager in class ForumFactoryUserManagerpublic GroupManager getGroupManager()
ForumFactory
getGroupManager in class ForumFactoryGroupManager
public SearchManager getSearchManager()
throws UnauthorizedException
ForumFactory
getSearchManager in class ForumFactoryUnauthorizedException - if not a system administator.
public InterceptorManager getInterceptorManager()
throws UnauthorizedException
ForumFactory
getInterceptorManager in class ForumFactoryUnauthorizedException - if not a system administrator.public WatchManager getWatchManager()
ForumFactory
getWatchManager in class ForumFactorypublic WatchSettingsManager getWatchSettingsManager()
ForumFactory
getWatchSettingsManager in class ForumFactorypublic RewardManager getRewardManager()
ForumFactory
getRewardManager in class ForumFactorypublic AttachmentManager getAttachmentManager()
ForumFactory
getAttachmentManager in class ForumFactorypublic ArchiveManager getArchiveManager()
ForumFactory
getArchiveManager in class ForumFactorypublic StatusLevelManager getStatusLevelManager()
ForumFactory
getStatusLevelManager in class ForumFactorypublic AvatarManager getAvatarManager()
ForumFactory
getAvatarManager in class ForumFactorypublic PresenceManager getPresenceManager()
ForumFactory
getPresenceManager in class ForumFactoryPresenceManagerpublic ReadTracker getReadTracker()
ForumFactory
getReadTracker in class ForumFactorypublic DraftManager getDraftManager()
ForumFactory
getDraftManager in class ForumFactorypublic PollManager getPollManager()
ForumFactory
getPollManager in class ForumFactorypublic PrivateMessageManager getPrivateMessageManager()
ForumFactory
getPrivateMessageManager in class ForumFactorypublic QuestionManager getQuestionManager()
ForumFactory
getQuestionManager in class ForumFactorypublic AnnouncementManager getAnnouncementManager()
ForumFactory
getAnnouncementManager in class ForumFactory
public PermissionsManager getPermissionsManager()
throws UnauthorizedException
ForumFactory
getPermissionsManager in class ForumFactoryUnauthorizedException - if not a system admin.public QueryManager getQueryManager()
ForumFactory
getQueryManager in class ForumFactoryQueryManagerpublic Permissions getPermissions(AuthToken authToken)
ForumFactory
getPermissions in class ForumFactoryauthToken - the auth token for the user.
public boolean isAuthorized(long type)
ForumFactory
isAuthorized in class ForumFactorytype - a permission type.ForumPermissionspublic GatewayManager getGatewayManager()
ForumFactory
getGatewayManager in class ForumFactorypublic BanManager getBanManager()
ForumFactory
getBanManager in class ForumFactorypublic RegistrationManager getRegistrationManager()
ForumFactory
getRegistrationManager in class ForumFactorypublic RenderManager getRenderManager()
ForumFactory
getRenderManager in class ForumFactoryRenderManagerpublic AbuseManager getAbuseManager()
ForumFactory
getAbuseManager in class ForumFactorypublic TagManager getTagManager()
ForumFactory
getTagManager in class ForumFactorypublic ModerationManager getModerationManager()
ForumFactory
getModerationManager in class ForumFactorypublic EmailManager getEmailManager()
ForumFactory
getEmailManager in class ForumFactorypublic PluginManager getPluginManager()
ForumFactoryPluginManager that can be used for acquiring
plugin instances.
getPluginManager in class ForumFactoryPluginManager that can be used for acquiring
plugin instances.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||