fr.paris.lutece.plugins.directory.modules.rest
Class RecordFormaterJson

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.rest.RecordFormaterJson
All Implemented Interfaces:
RecordFormater

public class RecordFormaterJson
extends java.lang.Object
implements RecordFormater

Format record output to the JSON format


Constructor Summary
RecordFormaterJson()
           
 
Method Summary
 java.lang.String formatError(java.lang.String strCode, java.lang.String strMessage)
          Format the ouput of an err
 java.lang.String formatRecord(fr.paris.lutece.plugins.directory.business.Record record)
          Format the ouput of a given directory record
 java.lang.String formatRecordsList(java.util.List<fr.paris.lutece.plugins.directory.business.Record> listRecords)
          Format the ouput of a given directory list of records
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordFormaterJson

public RecordFormaterJson()
Method Detail

formatRecord

public java.lang.String formatRecord(fr.paris.lutece.plugins.directory.business.Record record)
Format the ouput of a given directory record

Specified by:
formatRecord in interface RecordFormater
Parameters:
record - The record
Returns:
The formated output

formatError

public java.lang.String formatError(java.lang.String strCode,
                                    java.lang.String strMessage)
Format the ouput of an err

Specified by:
formatError in interface RecordFormater
Parameters:
strCode - The error code
strMessage - The error message
Returns:
The output

formatRecordsList

public java.lang.String formatRecordsList(java.util.List<fr.paris.lutece.plugins.directory.business.Record> listRecords)
Description copied from interface: RecordFormater
Format the ouput of a given directory list of records

Specified by:
formatRecordsList in interface RecordFormater
Parameters:
listRecords - The list of records
Returns:
The formated output


Copyright © 2010 Mairie de Paris. All Rights Reserved.