org.apache.wsrp4j.persistence.xml.driver
Class ConsumerPortletContextList

java.lang.Object
  extended byorg.apache.wsrp4j.persistence.xml.driver.PersistentDataObjectImpl
      extended byorg.apache.wsrp4j.persistence.xml.driver.ConsumerPortletContextList
All Implemented Interfaces:
PersistentDataObject, PersistentDataObjectXML

public class ConsumerPortletContextList
extends PersistentDataObjectImpl

This class collects ConsumerPortletContext objects and implements the marshal / unmarshal methods for CASTOR XML file support. Detailed information on persistent organizational data has to be requested with this class from the corresponding PersistentInformationProvider.

Version:
$Id: ConsumerPortletContextList.java,v 1.4 2005/08/10 14:59:56 cziegeler Exp $
Author:
Ralf Altrichter
See Also:
PersistentHandler, ProducerPersistentInformationProvider

Field Summary
private  Logger logger
           
 
Fields inherited from class org.apache.wsrp4j.persistence.xml.driver.PersistentDataObjectImpl
_lastElement, _objects
 
Constructor Summary
ConsumerPortletContextList()
          Default Constructor
 
Method Summary
 void marshalFile(java.io.FileWriter fileWriter, org.exolab.castor.xml.Marshaller marshaller)
          Writes an ConsumerPortletContext, which must be the first element in the PersistentDataObject map, to a persistent XML file.
 void unMarshalFile(java.io.FileReader fileReader, org.exolab.castor.xml.Unmarshaller unmarshaller)
          Constructs a ConsumerPortletContext object from a CASTOR persistent XML file.
 
Methods inherited from class org.apache.wsrp4j.persistence.xml.driver.PersistentDataObjectImpl
addObject, clear, getLastElement, getObjects, getPersistentInformation, setPersistentInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger
Constructor Detail

ConsumerPortletContextList

public ConsumerPortletContextList()
Default Constructor

Method Detail

unMarshalFile

public void unMarshalFile(java.io.FileReader fileReader,
                          org.exolab.castor.xml.Unmarshaller unmarshaller)
                   throws WSRPException
Constructs a ConsumerPortletContext object from a CASTOR persistent XML file.

Specified by:
unMarshalFile in interface PersistentDataObjectXML
Specified by:
unMarshalFile in class PersistentDataObjectImpl
Parameters:
fileReader - to the input data file
unmarshaller - optional, part of the CASTOR package. In case of a null value as input parameter, the static methods of the CASTOR unmarshaller are used.
Throws:
WSRPException

marshalFile

public void marshalFile(java.io.FileWriter fileWriter,
                        org.exolab.castor.xml.Marshaller marshaller)
                 throws WSRPException
Writes an ConsumerPortletContext, which must be the first element in the PersistentDataObject map, to a persistent XML file. In case of a null value as input parameter, the static methods of the CASTOR Marshaller are used.

Specified by:
marshalFile in interface PersistentDataObjectXML
Specified by:
marshalFile in class PersistentDataObjectImpl
Parameters:
fileWriter - to the output XML file
Throws:
WSRPException


--