|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.anycontent.plugin.ExtensionPoint
com.anwrt.anycontent.extensions.deploy.DeployExtensionPoint
This extension point manages the parameters of the CMS that have to be stored, by the plugins.
| Constructor Summary | |
DeployExtensionPoint()
|
|
| Method Summary | |
void |
configureDeploy(java.lang.String pluginName,
Configuration configuration)
This method allows the deploy extension point to store new available parameter. |
void |
configureExtension(java.lang.String pluginName,
java.lang.String pluginId,
Configuration configuration)
Add an extension to this point. |
DeployParameter |
get(java.lang.String id)
Get the deploy parameter by its id |
java.lang.String[] |
getParametersIds()
Get the id of the deploy's parameters. |
void |
initialize()
Method called at the end of the initialization process. |
boolean |
isComplete()
Returns false if the model is initialized and all parameters are valued |
boolean |
isSingle()
Returns wether this extension point is single |
void |
save(java.util.Map untypedValues,
java.lang.String fileName)
Update the deploy file with the given values Values are untyped (all are of type String) and might be null. |
void |
toSAX(org.xml.sax.ContentHandler handler,
java.util.Map objectModel,
SourceResolver resolver)
SAX the deploy parameters and values into a content handler |
| Methods inherited from class com.anwrt.anycontent.plugin.ExtensionPoint |
configure, getId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DeployExtensionPoint()
| Method Detail |
public boolean isSingle()
ExtensionPoint
isSingle in class ExtensionPointpublic boolean isComplete()
public void initialize()
ExtensionPoint
initialize in class ExtensionPoint
public void configureExtension(java.lang.String pluginName,
java.lang.String pluginId,
Configuration configuration)
throws ConfigurationException
ExtensionPoint
configureExtension in class ExtensionPointconfiguration - the information about the extension to be addedpluginName - Unique identifier for the plugin hosting the extension
(equals to the directory name)pluginId - Unique plugin identifier (unique for a given pluginName)
ConfigurationException
public void configureDeploy(java.lang.String pluginName,
Configuration configuration)
throws ConfigurationException
pluginName - the name of the plugin defining the parametersconfiguration - configuration of the plugin file
ConfigurationException - if the xml is not correctpublic java.lang.String[] getParametersIds()
public DeployParameter get(java.lang.String id)
id - Id of the deploy parameter to get
public void toSAX(org.xml.sax.ContentHandler handler,
java.util.Map objectModel,
SourceResolver resolver)
throws org.xml.sax.SAXException
handler - Handler for sax eventsobjectModel - Cocoon object model (can be used by enumerated
parameters)resolver - the source resolver
org.xml.sax.SAXException - if an error occured
public void save(java.util.Map untypedValues,
java.lang.String fileName)
throws java.lang.Exception
untypedValues - A map (key, untyped value).fileName - the deploy.xml absolute path
java.lang.Exception - If an error occured while saving values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||