Interface IResourceHistoryDAO

  • All Known Implementing Classes:
    ResourceHistoryDAO

    public interface IResourceHistoryDAO
    IResourceHistoryDAO
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BEAN_SERVICE
      The Constant BEAN_SERVICE.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByHistory​(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove resourceHistory by history
      void deleteByResource​(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove resourceHistory by resource
      List<Integer> getIdHistoryListByResource​(int idTicket, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of id history for a resource(ticket)
      void insert​(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert new record
      ResourceHistory load​(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a record by primary key
      ResourceHistory loadUnitOld​(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load a record by primary key id_history and old unit
    • Method Detail

      • insert

        void insert​(ResourceHistory resourceHistory,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert new record
        Parameters:
        resourceHistory - the ResourceHistory Object
        plugin - the plugin
      • load

        ResourceHistory load​(int nIdHistory,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a record by primary key
        Parameters:
        nIdHistory - the history id
        plugin - the plugin
        Returns:
        ResourceHistory Object
      • deleteByHistory

        void deleteByHistory​(int nIdHistory,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove resourceHistory by history
        Parameters:
        nIdHistory - the History id
        plugin - the plugin
      • deleteByResource

        void deleteByResource​(int nIdResource,
                              String strResourceType,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove resourceHistory by resource
        Parameters:
        nIdResource - the resource id
        strResourceType - the resource type
        plugin - the plugin
      • loadUnitOld

        ResourceHistory loadUnitOld​(int nIdHistory,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load a record by primary key id_history and old unit
        Parameters:
        nIdHistory - the history id
        plugin - the plugin
        Returns:
        ResourceHistory Object
      • getIdHistoryListByResource

        List<Integer> getIdHistoryListByResource​(int idTicket,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of id history for a resource(ticket)
        Parameters:
        idTicket - the ticket id
        plugin - the plugin