fr.paris.lutece.plugins.directory.modules.rest.service.formatters
Class RecordFormatterXml
java.lang.Object
fr.paris.lutece.plugins.directory.modules.rest.service.formatters.RecordFormatterXml
- All Implemented Interfaces:
- fr.paris.lutece.plugins.rest.service.formatters.IFormatter<fr.paris.lutece.plugins.directory.business.Record>
public class RecordFormatterXml
- extends java.lang.Object
- implements fr.paris.lutece.plugins.rest.service.formatters.IFormatter<fr.paris.lutece.plugins.directory.business.Record>
Format record output to the XML format
Example of the formatted record XML :
SUCCESS
1
1
state1
State 1
1
true
false
recordFieldValue1
value1
value2
|
Method Summary |
java.lang.String |
format(java.util.List<fr.paris.lutece.plugins.directory.business.Record> listRecords)
|
java.lang.String |
format(fr.paris.lutece.plugins.directory.business.Record record)
|
java.lang.String |
formatError(java.lang.String strCode,
java.lang.String strMessage)
|
void |
setDirectoryRestService(DirectoryRestService directoryRestService)
Set the directory rest service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordFormatterXml
public RecordFormatterXml()
setDirectoryRestService
public void setDirectoryRestService(DirectoryRestService directoryRestService)
- Set the directory rest service
- Parameters:
directoryRestService - the directory rest service
formatError
public java.lang.String formatError(java.lang.String strCode,
java.lang.String strMessage)
-
- Specified by:
formatError in interface fr.paris.lutece.plugins.rest.service.formatters.IFormatter<fr.paris.lutece.plugins.directory.business.Record>
format
public java.lang.String format(fr.paris.lutece.plugins.directory.business.Record record)
-
- Specified by:
format in interface fr.paris.lutece.plugins.rest.service.formatters.IFormatter<fr.paris.lutece.plugins.directory.business.Record>
format
public java.lang.String format(java.util.List<fr.paris.lutece.plugins.directory.business.Record> listRecords)
-
- Specified by:
format in interface fr.paris.lutece.plugins.rest.service.formatters.IFormatter<fr.paris.lutece.plugins.directory.business.Record>
Copyright © 2011 Mairie de Paris. All Rights Reserved.