| java.lang.Object org.nemesis.forum.proxy.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 | addForumMessageFilter(MessageFilter filter) | public void | addForumMessageFilter(MessageFilter filter, int index) | public void | addGroupPermission(Group group, int permissionType) | public void | addThread(ForumThread thread) | public void | addUserPermission(User user, int permissionType) | public Message | applyFilters(Message message) | public Message | createMessage(User user) | public ForumThread | createThread(Message rootMessage) | public void | deleteThread(ForumThread thread) | public Date | getCreationDate() | public String | getDescription() | public MessageFilter[] | getForumMessageFilters() | public int | getID() | public Message | getMessage(int messageID) | public int | getMessageCount() | public int | getMessageCount(boolean approved) | public int | getModerationType() | 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 | getThreadCount(boolean approved) | public int[] | groupsWithPermission(int permissionType) | public boolean | hasPermission(int type) | 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 | setModerationType(int type) | 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) | public Iterator | threads(boolean approved) | public Iterator | threads(boolean approved, int startIndex, int numResults) | 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. |
getCreationDate | public Date getCreationDate()(Code) | | |
getMessageCount | public int getMessageCount()(Code) | | |
getMessageCount | public int getMessageCount(boolean approved)(Code) | | |
getModerationType | public int getModerationType()(Code) | | |
getModifiedDate | public Date getModifiedDate()(Code) | | |
getThreadCount | public int getThreadCount()(Code) | | |
getThreadCount | public int getThreadCount(boolean approved)(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
threads | public Iterator threads(boolean approved, int startIndex, int numResults)(Code) | | |
|
|