com.arsdigita.forum
Class ForumContext

java.lang.Object
  extended bycom.arsdigita.forum.ForumContext

public final class ForumContext
extends Object

The entry point into all the global state parameters that the Forum application expects to have available to it when running, e.g. the current forum, thread, etc.

This is a request local object.

Author:
Vadim Nasardinov (vadimn@redhat.com)
See Also:
KernelContext

Method Summary
 boolean canAdminister()
           
 boolean canEdit()
           
 boolean canModerate()
           
 BigDecimal getCategorySelection()
           
static ForumContext getContext(com.arsdigita.bebop.PageState state)
           
 Forum getForum()
          Retrieves the current Forum.
 com.arsdigita.messaging.MessageThread getMessageThread()
          Retrieves the current message thread.
 BigDecimal getThreadID()
          Retrieves the thread ID.
 void setCategorySelection(BigDecimal categorySelection)
           
 void setThreadID(BigDecimal threadID)
          Sets the current thread ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContext

public static ForumContext getContext(com.arsdigita.bebop.PageState state)

getThreadID

public BigDecimal getThreadID()
Retrieves the thread ID.


setThreadID

public void setThreadID(BigDecimal threadID)
Sets the current thread ID.


getMessageThread

public com.arsdigita.messaging.MessageThread getMessageThread()
Retrieves the current message thread.


getForum

public Forum getForum()
Retrieves the current Forum.


canEdit

public boolean canEdit()

canAdminister

public boolean canAdminister()

canModerate

public boolean canModerate()

getCategorySelection

public BigDecimal getCategorySelection()

setCategorySelection

public void setCategorySelection(BigDecimal categorySelection)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2348 UTC