public class UnitAssignmentDAO extends Object implements IUnitAssignmentDAO
BEAN_NAME| Constructor and Description |
|---|
UnitAssignmentDAO() |
| Modifier and Type | Method and 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 |
insert(UnitAssignment unitAssignment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts a new record in the table.
|
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}
|
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}
|
List<UnitAssignment> |
selectByUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the unit assignments associated to the specified unit
|
public void insert(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IUnitAssignmentDAOunitAssignment - the unit assignment to insertplugin - the Pluginpublic UnitAssignment loadCurrentAssignment(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadCurrentAssignment in interface IUnitAssignmentDAOnIdResource - The resource idstrResourceType - the resource typeplugin - the Pluginpublic void deactivate(UnitAssignment unitAssignment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deactivate in interface IUnitAssignmentDAOunitAssignment - the unit assignment to deactivateplugin - the Pluginpublic List<UnitAssignment> selectByResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByResource in interface IUnitAssignmentDAOnIdResource - the resource idstrResourceType - the resource typeplugin - the pluginpublic List<UnitAssignment> selectByUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByUnit in interface IUnitAssignmentDAOnIdUnit - the unit idplugin - the pluginpublic void deactivateByResource(int nIdResource,
String strResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deactivateByResource in interface IUnitAssignmentDAOnIdResource - The resource idstrResourceType - The resource typeplugin - The pluginCopyright © 2018 City of Paris. All rights reserved.