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

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

public class PortletList
extends PersistentDataObjectImpl

This class collects Portlets 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: PortletList.java,v 1.4 2005/08/10 14:59:56 cziegeler Exp $
Author:
Ralf Altrichter

Field Summary
private  Logger logger
           
 
Fields inherited from class org.apache.wsrp4j.persistence.xml.driver.PersistentDataObjectImpl
_lastElement, _objects
 
Constructor Summary
PortletList()
          Default Constructor
 
Method Summary
 void marshalFile(java.io.FileWriter fileWriter, org.exolab.castor.xml.Marshaller marshaller)
          Writes a Portlet, 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 Portlet 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

PortletList

public PortletList()
Default Constructor

Method Detail

unMarshalFile

public void unMarshalFile(java.io.FileReader fileReader,
                          org.exolab.castor.xml.Unmarshaller unmarshaller)
                   throws WSRPException
Constructs a Portlet 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 a Portlet, 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


--