| java.lang.Object com.Yasna.forum.ForumProxy
ForumProxy | public class ForumProxy implements Forum(Code) | | A protection proxy for Forums. A proxy has a set of permissions that are
specified at creation time of the proxy. Subsequently, those permissions
are use to restrict access to protected Forum methods. If a user does
not have the right to execute a particular method, and UnauthorizedException
is thrown.
See Also: Forum See Also: ForumPermissions See Also: UnauthorizedException |
Method Summary | |
public void | addArticleMap(String pageKey, ForumThread thread) | public void | addForumMessageFilter(ForumMessageFilter filter) | public void | addForumMessageFilter(ForumMessageFilter filter, int index) | public void | addGroupPermission(Group group, int permissionType) | public void | addThread(ForumThread thread) | public void | addUserPermission(User user, int permissionType) | public ForumMessage | applyFilters(ForumMessage message) | public ForumMessage | createDummyMessage(User user) | public ForumMessage | createMessage(User user, ClientIP clientIP) | public Query | createQuery() | public ForumThread | createThread(ForumMessage rootMessage, ThreadType type) | public void | deleteThread(ForumThread thread) | public int | forumOrder() | public Date | getCreationDate() | public String | getDescription() | public ForumMessageFilter[] | getForumMessageFilters() | public int | getID() | public int | getMessageCount() | public Date | getModifiedDate() | public String | getName() | public ForumPermissions | getPermissions(Authorization authorization) | public String | getProperty(String name) | public ForumThread | getThread(int threadID) | public int | getThreadCount() | public int[] | groupsWithPermission(int permissionType) | public boolean | hasPermission(int type) | public boolean | isArticleForum() | public boolean | isModerated() | public void | moveThread(ForumThread thread, Forum newForum) | public Enumeration | propertyNames() | public void | removeForumMessageFilter(int index) | public void | removeGroupPermission(Group group, int permissionType) | public void | removeUserPermission(User user, int permissionType) | public void | setCreationDate(Date creationDate) | public void | setDescription(String description) | public void | setForumOrder(int param) | public void | setModerated(boolean moderated) | public void | setModifiedDate(Date modifiedDate) | public void | setName(String name) | public void | setProperty(String name, String value) | public Iterator | threads() | public Iterator | threads(int startIndex, int numResults, int sortBy) | public String | toString() | public int[] | usersWithPermission(int permissionType) |
ForumProxy | public ForumProxy(Forum forum, Authorization authorization, ForumPermissions permissions)(Code) | | Creates a new ForumProxy object.
Parameters: forum - the forum to protect by proxy Parameters: authorization - the user's authorization token Parameters: permissions - the permissions to use with this proxy. |
forumOrder | public int forumOrder()(Code) | | |
getCreationDate | public Date getCreationDate()(Code) | | |
getMessageCount | public int getMessageCount()(Code) | | |
getModifiedDate | public Date getModifiedDate()(Code) | | |
getThreadCount | public int getThreadCount()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
isArticleForum | public boolean isArticleForum()(Code) | | |
isModerated | public boolean isModerated()(Code) | | |
threads | public Iterator threads(int startIndex, int numResults, int sortBy)(Code) | | |
|
|