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

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.rest.DirectoryRestService

public class DirectoryRestService
extends java.lang.Object

DirectoryRestService


Constructor Summary
DirectoryRestService()
           
 
Method Summary
 fr.paris.lutece.plugins.directory.business.Record addToDirectory(java.lang.String strDirectoryId, javax.servlet.ServletRequest request)
          Add a record in a directory with the parameters given if they match
 fr.paris.lutece.plugins.directory.business.Record completeRecord(java.lang.String strRecordId, javax.servlet.ServletRequest request)
          Gets record fields values from the request and complete the record for asynchronous record creation.
 fr.paris.lutece.plugins.directory.business.Record getRecord(java.lang.String strRessourceId)
          Gets the record
 java.util.List<fr.paris.lutece.plugins.directory.business.Record> getRecordsList(int nDirectoryId)
          Finds the list
 fr.paris.lutece.plugins.directory.business.Record insertOrCompleteRecord(javax.servlet.http.HttpServletRequest request)
          Creates or updates the record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryRestService

public DirectoryRestService()
Method Detail

getRecord

public fr.paris.lutece.plugins.directory.business.Record getRecord(java.lang.String strRessourceId)
                                                            throws DirectoryRestException,
                                                                   fr.paris.lutece.plugins.directory.utils.DirectoryErrorException
Gets the record

Parameters:
strRessourceId - resource id
Returns:
the record
Throws:
DirectoryRestException - if occurs
fr.paris.lutece.plugins.directory.utils.DirectoryErrorException - if occurs

getRecordsList

public java.util.List<fr.paris.lutece.plugins.directory.business.Record> getRecordsList(int nDirectoryId)
                                                                                 throws DirectoryRestException,
                                                                                        fr.paris.lutece.plugins.directory.utils.DirectoryErrorException
Finds the list

Parameters:
nDirectoryId - the directory id
Returns:
the record list
Throws:
DirectoryRestException - if occurs
fr.paris.lutece.plugins.directory.utils.DirectoryErrorException - if occurs

addToDirectory

public fr.paris.lutece.plugins.directory.business.Record addToDirectory(java.lang.String strDirectoryId,
                                                                        javax.servlet.ServletRequest request)
                                                                 throws fr.paris.lutece.plugins.directory.utils.DirectoryErrorException
Add a record in a directory with the parameters given if they match

Parameters:
strDirectoryId -
mapParameters -
Throws:
fr.paris.lutece.plugins.directory.utils.DirectoryErrorException

insertOrCompleteRecord

public fr.paris.lutece.plugins.directory.business.Record insertOrCompleteRecord(javax.servlet.http.HttpServletRequest request)
                                                                         throws fr.paris.lutece.plugins.directory.utils.DirectoryErrorException,
                                                                                DirectoryRestException
Creates or updates the record

Parameters:
request - the request
Returns:
the record created or updated
Throws:
fr.paris.lutece.plugins.directory.utils.DirectoryErrorException - if occurs
DirectoryRestException - if occurs

completeRecord

public fr.paris.lutece.plugins.directory.business.Record completeRecord(java.lang.String strRecordId,
                                                                        javax.servlet.ServletRequest request)
                                                                 throws fr.paris.lutece.plugins.directory.utils.DirectoryErrorException,
                                                                        DirectoryRestException
Gets record fields values from the request and complete the record for asynchronous record creation. This method is NOT a modification of the record.

Parameters:
strRecordId - the id of the record to complete
request - the request
Returns:
the stored record
Throws:
fr.paris.lutece.plugins.directory.utils.DirectoryErrorException - if a directory exception occurs
DirectoryRestException - if a rest exception occurs


Copyright © 2011 Mairie de Paris. All Rights Reserved.