com.webmethods.caf.faces.data.export
Class AtomEntriesTableExportProvider

java.lang.Object
  extended by com.webmethods.caf.faces.data.export.DataTableExportProvider
      extended by com.webmethods.caf.faces.data.export.AtomEntriesTableExportProvider
All Implemented Interfaces:
IContentProvider, ITableContentProvider

public class AtomEntriesTableExportProvider
extends DataTableExportProvider

Adapts a UIData component to an ITableContentProvider, specialized for exporting as atom (syndication feed) entries.


Field Summary
protected  Map m_atomKeysToDataKeys
          Mapping of atom keys names to original key names.
protected  Object[] m_atomPropertyKeys
          Array of aggregate property keys.
protected  String m_content
          Cached current row content.
protected  boolean m_generateContent
          True to autogenerate content.
protected  boolean m_generateLinks
          True to autogenerate links.
protected static Pattern RE_LINKS
           
protected static Pattern RE_SCRIPTS
           
 
Fields inherited from class com.webmethods.caf.faces.data.export.DataTableExportProvider
m_columnLabelMap, m_columnMap, m_htmlResponseBuffer, m_htmlResponseBufferBackingWriter, m_propertyKeys, m_responseBuffer, m_table, RE_IS_DUMMY_ID, RE_STRIP_COLUMN_FROM_ID
 
Constructor Summary
AtomEntriesTableExportProvider()
           
AtomEntriesTableExportProvider(UIData table)
           
 
Method Summary
protected  String generateContent()
           
protected  List generateLinks()
           
 Object[] getPropertyKeys()
          Returns list of properties supported by this content provider.
protected  Map getRemappedKeys()
           
 Class getType(Object propertyKey)
          Returns java type of the given property
 Object getValue(Object propertyKey)
          Returns value of the given property
 boolean hasProperty(Object propertyKey)
          Checks if the given property is supported by this content provider
 void refresh()
           
protected  void remapProperty(String property, Set original, Set remapped)
           
 void setRowIndex(int index)
          Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row.
 
Methods inherited from class com.webmethods.caf.faces.data.export.DataTableExportProvider
clearHTMLResponseBuffer, clearResponseBuffer, getColumnLabelMap, getColumnMap, getCurrentRow, getHTMLResponseBuffer, getResponseBuffer, getRowCount, getRowIndex, getRowVariable, getTable, isRowAvailable, render, renderAsHTML, setRowVariable, setTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
 

Field Detail

RE_SCRIPTS

protected static final Pattern RE_SCRIPTS

RE_LINKS

protected static final Pattern RE_LINKS

m_generateContent

protected boolean m_generateContent
True to autogenerate content.


m_generateLinks

protected boolean m_generateLinks
True to autogenerate links.


m_atomPropertyKeys

protected Object[] m_atomPropertyKeys
Array of aggregate property keys.


m_atomKeysToDataKeys

protected Map m_atomKeysToDataKeys
Mapping of atom keys names to original key names.


m_content

protected String m_content
Cached current row content.

Constructor Detail

AtomEntriesTableExportProvider

public AtomEntriesTableExportProvider()

AtomEntriesTableExportProvider

public AtomEntriesTableExportProvider(UIData table)
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
Description copied from interface: IContentProvider
Returns list of properties supported by this content provider. Can return Object[0], never null.

Specified by:
getPropertyKeys in interface IContentProvider
Overrides:
getPropertyKeys in class DataTableExportProvider
Returns:
array of property keys which is typically of type String or Integer

getType

public Class getType(Object propertyKey)
              throws PropertyNotFoundException
Description copied from interface: IContentProvider
Returns java type of the given property

Specified by:
getType in interface IContentProvider
Overrides:
getType in class DataTableExportProvider
Parameters:
propertyKey - the property key of type String or Integer
Returns:
property java Class
Throws:
PropertyNotFoundException - if property is not supported

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException,
                       PropertyNotFoundException
Description copied from interface: IContentProvider
Returns value of the given property

Specified by:
getValue in interface IContentProvider
Overrides:
getValue in class DataTableExportProvider
Parameters:
propertyKey - the property key of type String or Integer
Returns:
value of the property, can be null
Throws:
EvaluationException - if error during property evaluation
PropertyNotFoundException - if property is not supported

hasProperty

public boolean hasProperty(Object propertyKey)
Description copied from interface: IContentProvider
Checks if the given property is supported by this content provider

Specified by:
hasProperty in interface IContentProvider
Overrides:
hasProperty in class DataTableExportProvider
Parameters:
propertyKey - property key of type String or Integer
Returns:
true if property is supported

setRowIndex

public void setRowIndex(int index)
Description copied from interface: ITableContentProvider
Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row.

Specified by:
setRowIndex in interface ITableContentProvider
Overrides:
setRowIndex in class DataTableExportProvider
See Also:
DataModel

refresh

public void refresh()
             throws ContentProviderException
Overrides:
refresh in class DataTableExportProvider
Throws:
ContentProviderException

generateContent

protected String generateContent()

generateLinks

protected List generateLinks()

getRemappedKeys

protected Map getRemappedKeys()

remapProperty

protected void remapProperty(String property,
                             Set original,
                             Set remapped)