All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Conf.Topic

java.lang.Object
   |
   +----Acme.Conf.Topic

public abstract class Topic
extends Object
A conferencing topic.

Topics are contained in conferences, and contain responses. Each topic has a title, and flags saying whether it's retired or frozen.

This is an abstract class with separate implementations on the client and server sides, mirrored via RPC.

Fetch the software.
Fetch the entire Acme package.

See Also:
Conference, Response

Constructor Index

 o Topic()

Method Index

 o addResponse(Session, String, String)
Add a new response to the topic.
 o freeze(Session)
Freeze this topic.
 o getCreator()
The user who created this topic
 o getDate()
The date this topic was created.
 o getLastResponseNumber()
The last response number.
 o getResponse(int)
Get a response by number.
 o getTitle()
The topic's title.
 o isFrozen()
Whether the topic is frozen.
 o isRetired()
Whether the topic is retired.
 o retire(Session)
Retire this topic.
 o unfreeze(Session)
Unfreeze this topic.
 o unretire(Session)
Unretire this topic.

Constructors

 o Topic
 public Topic()

Methods

 o getDate
 public abstract long getDate()
The date this topic was created.

 o getCreator
 public abstract User getCreator()
The user who created this topic

 o getTitle
 public abstract String getTitle()
The topic's title.

 o getLastResponseNumber
 public abstract int getLastResponseNumber()
The last response number. Response numbers always start at zero and there are no gaps.

 o getResponse
 public abstract Response getResponse(int n)
Get a response by number.

 o isRetired
 public abstract boolean isRetired()
Whether the topic is retired. Retired topics are generally not shown.

 o isFrozen
 public abstract boolean isFrozen()
Whether the topic is frozen. Frozen topics may not have new responses added.

 o retire
 public abstract void retire(Session session)
Retire this topic.

Only a host or the topic creator may do this.

 o unretire
 public abstract void unretire(Session session)
Unretire this topic.

Only a host or the topic creator may do this.

 o freeze
 public abstract void freeze(Session session)
Freeze this topic.

Only a host or the topic creator may do this.

 o unfreeze
 public abstract void unfreeze(Session session)
Unfreeze this topic.

Only a host or the topic creator may do this.

 o addResponse
 public abstract int addResponse(Session session,
                                 String pseud,
                                 String text)
Add a new response to the topic. If the pseud is null then the user's real name is used.

Note that there is no method for linking an existing response. Unlike topics, which can be in multiple conferences, responses can be in only one topic.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs