net.sf.farrago.session
Interface FarragoSessionModelExtension

All Known Implementing Classes:
FarragoRngPluginFactory.RngModelExtension

public interface FarragoSessionModelExtension

FarragoSessionModelExtension defines the SPI for plugging in custom behavior for model extensions. Although model extensions may be independent of session personalities, they still interact with them, which is why they are defined at this level.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionModelExtension.java#9 $
Author:
John V. Sichi

Method Summary
 void defineDdlHandlers(FarragoSessionDdlValidator ddlValidator, List<DdlHandler> handlerList)
          Defines the handlers to be used to validate and execute DDL actions for object types in this model extension.
 void definePrivileges(FarragoSessionPrivilegeMap map)
          Defines privileges allowed on various object types.
 void defineResourceBundles(List<ResourceBundle> bundleList)
          Defines resource bundles to be used for localizing model object names.
 

Method Detail

defineDdlHandlers

void defineDdlHandlers(FarragoSessionDdlValidator ddlValidator,
                       List<DdlHandler> handlerList)
Defines the handlers to be used to validate and execute DDL actions for object types in this model extension. See FarragoSessionDdlHandler for an explanation of how to define the handler objects in this list. Optionally, may also define drop rules.

Parameters:
ddlValidator - validator which will invoke handlers
handlerList - receives handler objects in order in which they should

defineResourceBundles

void defineResourceBundles(List<ResourceBundle> bundleList)
Defines resource bundles to be used for localizing model object names. Any resource having a name of the form "UmlXXX" will be interpreted as the localized name for UML class XXX.

Parameters:
bundleList - receives instances of ResourceBundle

definePrivileges

void definePrivileges(FarragoSessionPrivilegeMap map)
Defines privileges allowed on various object types.

Parameters:
map - receives allowed privileges