com.anabas.sharedlet
Interface ModeratableElementInfo


public interface ModeratableElementInfo

Defines what are moderatable options for a particular sharedlet. Each moderatable element consists of a list of capabilities belong to this modertable set.

For example, a whiteboard application can have the capabilities:

  1. can draw rectangle
  2. can draw circle
  3. can write text

The moderatable element "Draw" can consist of "can draw rectangle" and "can draw circle". So if a user enables the "Draw" Moderatable item, both rectangular drawings and circular drawings can be done.

This mapping may be configurable quite often to suite different vertical application market segments that this sharedlet runs in.

If a moderatable element is enabled in a session, all of its consituent capabilities are enabled and vice versa. There can never be an instance where some of the capabilities are enabled and some are not.


Method Summary
 java.util.Vector getCapabilities()
           
 java.lang.String getName()
          A user readable name of the moderatable element.
 

Method Detail

getName

public java.lang.String getName()
A user readable name of the moderatable element. This string will be frequently displayed as a menu item in the UI.
Returns:
The unique user readable name.

getCapabilities

public java.util.Vector getCapabilities()
Returns:
A list of capabilities that make up this moderatable element. It must be of one or more capabilities ( String's ).