fr.paris.lutece.plugins.directory.modules.rest
Interface RecordFormater

All Known Implementing Classes:
RecordFormaterJson, RecordFormaterXml

public interface RecordFormater

Record Formater Interface


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
 

Method Detail

formatRecord

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

Parameters:
record - The record
Returns:
The formated output

formatRecordsList

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

Parameters:
listRecords - The list of records
Returns:
The formated output

formatError

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

Parameters:
strCode - The error code
strMessage - The error message
Returns:
The output


Copyright © 2011 Mairie de Paris. All Rights Reserved.