|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.BindingManager
public class BindingManager
Class containing the methods to manage the binding of the xml streams fields with the form fields : - xml field bindings creation, update and retrieving - xml streams retrieving - form creation with the data from an xml stream
| Field Summary | |
|---|---|
protected FormManager |
formManager
|
protected FormTypeManager |
formTypeManager
|
protected java.util.Timer |
timer
|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
|
protected java.util.TimerTask |
xmlStreamTask
|
| Constructor Summary | |
|---|---|
BindingManager(org.nuiton.wikitty.WikittyProxy wikittyProxy,
FormTypeManager formTypeManager,
FormManager formManager)
|
|
| Method Summary | ||
|---|---|---|
protected FormImpl |
createForm(org.nuiton.wikitty.WikittyExtension formType,
java.util.List<XmlFieldBinding> bindings,
org.jdom.Element feed,
org.jdom.Namespace namespace,
com.jurismarches.vradi.services.managers.BindingManager.BindingContext bindingContext)
Create from from feed element. |
|
java.io.File |
createPreviewFile(WebHarvestStream webHarvestStream)
Creates file result of webharvest scrip |
|
protected java.io.File |
createPreviewFile(WebHarvestStream webHarvestStream,
boolean override)
|
|
protected void |
fillFormField(org.nuiton.wikitty.Wikitty wikitty,
org.nuiton.wikitty.FieldType fieldType,
XmlFieldBinding binding,
org.jdom.Element feed,
org.jdom.Namespace namespace,
com.jurismarches.vradi.services.managers.BindingManager.BindingContext bindingContext)
Fill form with feed element. |
|
java.util.List<WebHarvestStream> |
getAllWebHarvestStreams()
|
|
java.util.List<XmlStream> |
getAllXmlStreams()
Retourne toutes les instance de stream avec leur réelle entité. |
|
|
getFormsFromStream(E stream,
org.jdom.Document document)
Creates and store forms from an stream by using the XmlStreamBinding
to link xml stream field values with form fields. |
|
java.lang.String |
getWebHarvestPreviewPath(WebHarvestStream stream)
|
|
java.net.URI |
getWebHarvestPreviewUrl(WebHarvestStream stream)
|
|
java.lang.String |
getWebHarvestPreviewUrlAsString(WebHarvestStream stream)
|
|
XmlFieldBinding |
getXmlFieldBinding(java.lang.String xmlFieldBindingId)
Retrieves the xml field binding whose id is xmlFieldBindingId |
|
java.util.List<XmlFieldBinding> |
getXmlFieldBindings(XmlStream xmlStream)
Retrieves the xml field bindings whose xml stream is xmlStream |
|
XmlStream |
getXmlStream(java.lang.String xmlStreamId)
|
|
XmlStreamImportResult |
importFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
Creates and store forms from an WebHarvestStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
|
XmlStreamImportResult |
importFormsFromXmlStream(XmlStream xmlStream)
Creates and store forms from an XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
protected FormTypeManager formTypeManager
protected FormManager formManager
protected java.util.Timer timer
protected java.util.TimerTask xmlStreamTask
| Constructor Detail |
|---|
public BindingManager(org.nuiton.wikitty.WikittyProxy wikittyProxy,
FormTypeManager formTypeManager,
FormManager formManager)
| Method Detail |
|---|
public java.util.List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
xmlStream - the xml stream associated with the xml field bindings
we want to retrieve
public XmlFieldBinding getXmlFieldBinding(java.lang.String xmlFieldBindingId)
xmlFieldBindingId - the id of the xml field binding we want to retrieve
public java.util.List<XmlStream> getAllXmlStreams()
public java.util.List<WebHarvestStream> getAllWebHarvestStreams()
public java.net.URI getWebHarvestPreviewUrl(WebHarvestStream stream)
throws VradiException
VradiException
public java.lang.String getWebHarvestPreviewUrlAsString(WebHarvestStream stream)
throws VradiException
VradiExceptionpublic java.lang.String getWebHarvestPreviewPath(WebHarvestStream stream)
public XmlStream getXmlStream(java.lang.String xmlStreamId)
throws VradiException
VradiException
protected FormImpl createForm(org.nuiton.wikitty.WikittyExtension formType,
java.util.List<XmlFieldBinding> bindings,
org.jdom.Element feed,
org.jdom.Namespace namespace,
com.jurismarches.vradi.services.managers.BindingManager.BindingContext bindingContext)
throws VradiException
formType - bindings - feed - namespace - namespace for getting correct field with fieldnamesbindingContext -
VradiException
protected void fillFormField(org.nuiton.wikitty.Wikitty wikitty,
org.nuiton.wikitty.FieldType fieldType,
XmlFieldBinding binding,
org.jdom.Element feed,
org.jdom.Namespace namespace,
com.jurismarches.vradi.services.managers.BindingManager.BindingContext bindingContext)
throws VradiException
wikitty - fieldType - binding - feed - namespace - namespace to get field from feed elementbindingContext -
VradiException
public XmlStreamImportResult importFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
throws VradiException
WebHarvestStream by using the XmlStreamBinding
to link xml stream field values with form fields.
Input xmlStream is modified by this method (wikitty obselete).
webHarvestStream - stream to import
VradiException - for various possible errors
public java.io.File createPreviewFile(WebHarvestStream webHarvestStream)
throws VradiException
webHarvestStream -
VradiException - for various possible errors
protected java.io.File createPreviewFile(WebHarvestStream webHarvestStream,
boolean override)
throws VradiException
VradiException
public XmlStreamImportResult importFormsFromXmlStream(XmlStream xmlStream)
throws VradiException
XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
Input xmlStream is modified by this method (wikitty obselete).
xmlStream - stream to import
VradiException - for various possible errors
public <E extends XmlStream> XmlStreamImportResult getFormsFromStream(E stream,
org.jdom.Document document)
throws VradiException
stream by using the XmlStreamBinding
to link xml stream field values with form fields.
Input xmlStream is modified by this method (wikitty obselete).
E - xml stream type (XmlStream or WebHarvestStream).stream - stream to importdocument - of rss
VradiException - for various possible errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||