java.lang.Object
fr.paris.lutece.plugins.identitystore.business.contract.ServiceContractDAO
All Implemented Interfaces:
IServiceContractDAO

public final class ServiceContractDAO extends Object implements IServiceContractDAO
This class provides Data Access methods for ServiceContract objects
  • Field Details

  • Constructor Details

    • ServiceContractDAO

      public ServiceContractDAO()
  • Method Details

    • insert

      public void insert(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IServiceContractDAO
      Parameters:
      serviceContract - instance of the ServiceContract object to insert
      plugin - the Plugin
    • load

      public Optional<ServiceContract> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IServiceContractDAO
      Parameters:
      nKey - The identifier of the serviceContract
      plugin - the Plugin
      Returns:
      The instance of the serviceContract
    • loadFromClientApplication

      public List<ServiceContract> loadFromClientApplication(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      loadFromClientApplication in interface IServiceContractDAO
    • selectActiveServiceContract

      public List<ServiceContract> selectActiveServiceContract(String clientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      get active service contratc list (must contains only one)
      Specified by:
      selectActiveServiceContract in interface IServiceContractDAO
      Returns:
      the list of service contracts
    • selectActiveServiceContract

      public List<ServiceContract> selectActiveServiceContract(String clientCode, Date specificDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      get active service contratc list (must contains only one) for a specific date
      Specified by:
      selectActiveServiceContract in interface IServiceContractDAO
      Returns:
      the list of service contracts
    • close

      public void close(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      Close service contract
      Specified by:
      close in interface IServiceContractDAO
    • updateLastUpdateAuthor

      public void updateLastUpdateAuthor(int idService, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      update author
      Specified by:
      updateLastUpdateAuthor in interface IServiceContractDAO
    • selectFilterdIdServiceContractsList

      public List<Integer> selectFilterdIdServiceContractsList(Map<String,String> params, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      Select service contract Ids by filtre
      Specified by:
      selectFilterdIdServiceContractsList in interface IServiceContractDAO
      Returns:
      the list of ids
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IServiceContractDAO
      Parameters:
      nKey - The identifier of the ServiceContract to delete
      plugin - the Plugin
    • deleteFromClientApp

      public void deleteFromClientApp(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      deleteFromClientApp in interface IServiceContractDAO
    • store

      public void store(ServiceContract serviceContract, int clientApplicationId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IServiceContractDAO
      Parameters:
      serviceContract - the reference of the ServiceContract
      plugin - the Plugin
    • selectIdServiceContractsList

      public List<Integer> selectIdServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the serviceContract objects and returns them as a list
      Specified by:
      selectIdServiceContractsList in interface IServiceContractDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the serviceContract objects
    • selectServiceContractsListByIds

      public List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,String>> selectServiceContractsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Specified by:
      selectServiceContractsListByIds in interface IServiceContractDAO
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectServiceContractBetweenDate

      public List<ServiceContract> selectServiceContractBetweenDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate)
      Description copied from interface: IServiceContractDAO
      Load the data of all the service contracts between two date and returns them as a list
      Specified by:
      selectServiceContractBetweenDate in interface IServiceContractDAO
      Parameters:
      plugin - the Plugin
      startingDate - starting date of the contract
      endingDate - ending date of the contract
      Returns:
      The list which contains the data of all the avant objects
    • getServiceContractsListWithMinEndDate

      public List<ServiceContract> getServiceContractsListWithMinEndDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date minEndDate)
      Description copied from interface: IServiceContractDAO
      Load the data of all the service contracts with a min end date as specified
      Specified by:
      getServiceContractsListWithMinEndDate in interface IServiceContractDAO
      Parameters:
      plugin - - the plugin
      minEndDate - - the min end date
      Returns:
      List
    • selectAllServiceContractsList

      public List<ServiceContract> selectAllServiceContractsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IServiceContractDAO
      Load the data of all the service contracts and returns them as a list
      Specified by:
      selectAllServiceContractsList in interface IServiceContractDAO
      Parameters:
      plugin - the plugin
      Returns:
      The list which contains the data of all ServiceContract objects