|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectza.org.coefficient.modules.BaseModule
public abstract class BaseModule
DOCUMENT ME!
| Field Summary | |
|---|---|
private CoefficientContext |
ctx
|
private static java.lang.String |
SESSION
|
| Constructor Summary | |
|---|---|
BaseModule()
|
|
| Method Summary | |
|---|---|
java.lang.String |
canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
This is a base implementation that will allow all methods to be invoked without regard to roles |
protected void |
createRSSItem(java.lang.String title,
java.lang.String text,
java.lang.String link,
Project project,
java.util.List affectedObjects)
Create an RSS item (originating from this module). |
java.lang.String |
displayUsersData(CoefficientUser user)
This is a base implementation that will return an empty string for a modules user related data. |
CoefficientContext |
getCoefficientContext()
|
abstract java.lang.String |
getMainMethod()
This method is used to determine which method should be invoked when the module is requested without an operation. |
abstract java.lang.String |
getModuleDescription()
This method is used to find the description of the module |
abstract java.lang.String |
getModuleDisplayName()
This method is used to find the display name of the module |
java.lang.String |
getModuleName()
This is a base implementation so all modules will have the right format of their names |
private java.lang.String |
getRSSOrigin()
Get the string to use as the "origin" for RSS items. |
boolean |
isProjectRequired()
This method is used determine if we implement BaseProjectModule |
void |
publishEvent(CoefficientEvent event)
|
void |
setCoefficientContext(CoefficientContext ctx)
|
CoefficientContext |
showHelp(CoefficientContext ctx)
This method is used to show help on the your module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String SESSION
private CoefficientContext ctx
| Constructor Detail |
|---|
public BaseModule()
| Method Detail |
|---|
public abstract java.lang.String getMainMethod()
ModuleLocal
getMainMethod in interface ModuleLocalpublic abstract java.lang.String getModuleDescription()
ModuleLocal
getModuleDescription in interface ModuleLocalpublic abstract java.lang.String getModuleDisplayName()
ModuleLocal
getModuleDisplayName in interface ModuleLocalpublic void setCoefficientContext(CoefficientContext ctx)
setCoefficientContext in interface ModuleLocalpublic CoefficientContext getCoefficientContext()
getCoefficientContext in interface ModuleLocalpublic java.lang.String getModuleName()
getModuleName in interface ModuleLocal
public java.lang.String canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
canExecuteForRole in interface ModuleLocalpublic java.lang.String displayUsersData(CoefficientUser user)
public CoefficientContext showHelp(CoefficientContext ctx)
ModuleLocal
showHelp in interface ModuleLocalpublic final boolean isProjectRequired()
ModuleLocal
isProjectRequired in interface ModuleLocalpublic void publishEvent(CoefficientEvent event)
publishEvent in interface CoefficientEventPublisherCoefficientEventPublisher.publishEvent(za.org.coefficient.events.CoefficientEvent)private java.lang.String getRSSOrigin()
protected void createRSSItem(java.lang.String title,
java.lang.String text,
java.lang.String link,
Project project,
java.util.List affectedObjects)
title - The RSS item titletext - The RSS item text/bodylink - The RSS item link/urlproject - The project that this RSS item is associated with, or null if not associated to a projectaffectedObjects - A list of RSSItemCreatedEvent.AffectedObject objects for this RSS item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||