Class ResourceHistoryDAO

    • Constructor Detail

      • ResourceHistoryDAO

        public ResourceHistoryDAO()
    • Method Detail

      • insert

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

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

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

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

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

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