Interface IUnitAssignmentDAO

  • All Known Implementing Classes:
    UnitAssignmentDAO

    public interface IUnitAssignmentDAO
    This interface provides Data Access methods for UnitAssignment objects
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deactivate​(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deactivates a unit assignment
      void deactivateByResource​(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deactivate the unit assignments associated to the specified resource
      void deleteByResource​(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes the unit assignments associated to the specified resource
      java.util.List<UnitAssignment> getListByFilter​(UnitAssignmentFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the unit assignments from filter.
      void insert​(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Inserts a new record in the table.
      UnitAssignment loadCurrentAssignment​(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the current unit assignment for the specified couple {resource id, resource type}
      java.util.List<UnitAssignment> selectByResource​(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the unit assignments associated to the specified couple {resource id, resource type}
      java.util.List<UnitAssignment> selectByUnit​(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the unit assignments associated to the specified unit
      java.util.List<java.lang.Integer> selectIdResourceByFilter​(UnitAssignmentFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds id resource from filter.
    • Method Detail

      • insert

        void insert​(UnitAssignment unitAssignment,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Inserts a new record in the table.
        Parameters:
        unitAssignment - the unit assignment to insert
        plugin - the Plugin
      • deactivate

        void deactivate​(UnitAssignment unitAssignment,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deactivates a unit assignment
        Parameters:
        unitAssignment - the unit assignment to deactivate
        plugin - the Plugin
      • loadCurrentAssignment

        UnitAssignment loadCurrentAssignment​(int nIdResource,
                                             java.lang.String strResourceType,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the current unit assignment for the specified couple {resource id, resource type}
        Parameters:
        nIdResource - The resource id
        strResourceType - the resource type
        plugin - the Plugin
        Returns:
        The current unit assignment
      • selectByResource

        java.util.List<UnitAssignment> selectByResource​(int nIdResource,
                                                        java.lang.String strResourceType,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the unit assignments associated to the specified couple {resource id, resource type}
        Parameters:
        nIdResource - the resource id
        strResourceType - the resource type
        plugin - the plugin
        Returns:
        the list of unit assignments
      • selectByUnit

        java.util.List<UnitAssignment> selectByUnit​(int nIdUnit,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the unit assignments associated to the specified unit
        Parameters:
        nIdUnit - the unit id
        plugin - the plugin
        Returns:
        the list of unit assignments
      • selectIdResourceByFilter

        java.util.List<java.lang.Integer> selectIdResourceByFilter​(UnitAssignmentFilter filter,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Finds id resource from filter.
        Parameters:
        filter - the filter
        plugin - the plugin
        Returns:
        the list of id resource
      • getListByFilter

        java.util.List<UnitAssignment> getListByFilter​(UnitAssignmentFilter filter,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the unit assignments from filter.
        Parameters:
        filter - the filter
        plugin - the plugin
        Returns:
        the list of unit assignments
      • deactivateByResource

        void deactivateByResource​(int nIdResource,
                                  java.lang.String strResourceType,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deactivate the unit assignments associated to the specified resource
        Parameters:
        nIdResource - The resource id
        strResourceType - The resource type
        plugin - The plugin
      • deleteByResource

        void deleteByResource​(int nIdResource,
                              java.lang.String strResourceType,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deletes the unit assignments associated to the specified resource
        Parameters:
        nIdResource - The resource id
        strResourceType - The resource type
        plugin - The plugin