com.jurismarches.vradi.services.managers
Class BindingManager

java.lang.Object
  extended by com.jurismarches.vradi.services.managers.BindingManager

public class BindingManager
extends Object

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

Version:
$Revision: 485 $ $Date: 2010-02-08 17:04:52 +0100 (lun., 08 févr. 2010) $
Author:
schorlet

Field Summary
static String CHANNEL
           
static String ENTRY
           
static String FEED
           
static String ITEM
           
static String RDF
           
static SimpleDateFormat RSS_DATE_FORMAT
          RSS date format
 
Constructor Summary
BindingManager(FormTypeManager formTypeManager, FormManager formManager)
           
BindingManager(org.sharengo.wikitty.WikittyProxy proxy, FormTypeManager formTypeManager, FormManager formManager)
           
 
Method Summary
 List<XmlStream> getAllXmlStreams()
           
 Object[] getFormsFromXmlStream(XmlStream xmlStream, String lastItemRecorded, VradiUser vradiUser)
          Creates forms with the data of an xml stream
 XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
          Retrieves the xml field binding whose id is xmlFieldBindingId
 List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
          Retrieves the xml field bindings whose xml stream is xmlStream
 XmlStream getXmlStream(String xmlStreamId)
           
 List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
          Updates the xml field bindings given in parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANNEL

public static final String CHANNEL
See Also:
Constant Field Values

ENTRY

public static final String ENTRY
See Also:
Constant Field Values

FEED

public static final String FEED
See Also:
Constant Field Values

ITEM

public static final String ITEM
See Also:
Constant Field Values

RDF

public static final String RDF
See Also:
Constant Field Values

RSS_DATE_FORMAT

public static final SimpleDateFormat RSS_DATE_FORMAT
RSS date format

Constructor Detail

BindingManager

public BindingManager(org.sharengo.wikitty.WikittyProxy proxy,
                      FormTypeManager formTypeManager,
                      FormManager formManager)

BindingManager

public BindingManager(FormTypeManager formTypeManager,
                      FormManager formManager)
Method Detail

getXmlFieldBindings

public List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
Retrieves the xml field bindings whose xml stream is xmlStream

Parameters:
xmlStream - the xml stream associated with the xml field bindings we want to retrieve
Returns:
a list containing the xml field bindings associated with the xml stream xmlStream

getXmlFieldBinding

public XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
Retrieves the xml field binding whose id is xmlFieldBindingId

Parameters:
xmlFieldBindingId - the id of the xml field binding we want to retrieve
Returns:
the xml field binding whose id is xmlFieldBindingId

updateXmlFieldBindings

public List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
Updates the xml field bindings given in parameters

Parameters:
bindings - the list of the xml field bindings to update
Returns:
the list of the xml field bindings up to date

getAllXmlStreams

public List<XmlStream> getAllXmlStreams()

getXmlStream

public XmlStream getXmlStream(String xmlStreamId)
                       throws TechnicalException
Throws:
TechnicalException

getFormsFromXmlStream

public Object[] getFormsFromXmlStream(XmlStream xmlStream,
                                      String lastItemRecorded,
                                      VradiUser vradiUser)
                               throws TechnicalException
Creates forms with the data of an xml stream

Parameters:
xmlStream -
lastItemRecorded -
vradiUser -
Returns:
An array containing : - the encrypted value of the last read item of the xml stream - the number of created forms - the number of forms created with date parsing error - the number of forms created with number parsing error
Throws:
TechnicalException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.