Interface IUnitAssignmentDAO
-
- All Known Implementing Classes:
UnitAssignmentDAO
public interface IUnitAssignmentDAOThis interface provides Data Access methods for UnitAssignment objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeactivate(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deactivates a unit assignmentvoiddeactivateByResource(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deactivate the unit assignments associated to the specified resourcevoiddeleteByResource(int nIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deletes the unit assignments associated to the specified resourcevoidinsert(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Inserts a new record in the table.UnitAssignmentloadCurrentAssignment(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 unitjava.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 insertplugin- 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 deactivateplugin- 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 idstrResourceType- the resource typeplugin- 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 idstrResourceType- the resource typeplugin- 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 idplugin- 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 filterplugin- the plugin- Returns:
- the list of id resource
-
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 idstrResourceType- The resource typeplugin- 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 idstrResourceType- The resource typeplugin- The plugin
-
-