Package fr.paris.lutece.plugins.directory.modules.rest.service.formatters

Class Summary
DirectoryFormatterJson Format directory output to the JSON format Example of the formatted directories list JSON :
[ { "Id":1, "Title":"directoryTitle", "Description":"directoryDescription", "IsEnable":true, "Role":"none", "Workgroup":"all", "IdWorkflow":1 }, { ... }, ... ]
DirectoryFormatterXml Format directory output to the XML format Example of the formatted directories list XML : SUCCESS 1 directoryTitle directoryDescription true none all 1 ...
RecordFormatterJson Format record output to the JSON format Example of a formatted record JSON :
[ { "Id":1, "state": { "id-state":1, "name":"state1", "description":"State 1", "id-workflow":"1", "is-initial-state":"true", "is-required-workgroup-assigned":"false" }, "RecordFields": [ { "group1": { "recordFieldTitle1":"recordFieldValue1" }, { "recordFieldTitle2": { "choiceTitle2":"choiceValue2", "choiceTitle3":"choiceValue3" } } }, { "recordFieldTitle3":"recordFieldValue3" }, { "recordFieldTitle4": { "choiceTitle4":"choiceValue4", "choiceTitle5":"choiceValue5" } } ] } { "Id:2, ... } ]
RecordFormatterXml 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
 



Copyright © 2011 Mairie de Paris. All Rights Reserved.