Interface IUnitAssignmentDAO

All Known Implementing Classes:
UnitAssignmentDAO

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

    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, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Deactivate the unit assignments associated to the specified resource
    void
    deleteByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Deletes the unit assignments associated to the specified resource
    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.
    loadCurrentAssignment(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the current unit assignment for the specified couple {resource id, resource type}
    selectByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the unit assignments associated to the specified couple {resource id, resource type}
    selectByUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the unit assignments associated to the specified unit
    selectIdResourceByFilter(UnitAssignmentFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Finds id resource from filter.
  • Method Details

    • 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, 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

      List<UnitAssignment> selectByResource(int nIdResource, 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

      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

      List<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

      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, 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, 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