Class UnitAssignmentHome
java.lang.Object
fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignmentHome
This class provides instances management methods (create, find, ...) for UnitAssignment objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic UnitAssignmentcreate(UnitAssignment unitAssignment) Creates a unit assignmentstatic voiddeactivate(UnitAssignment unitAssignment) Deactivates a unit assignmentstatic voiddeactivateByResource(int nIdResource, String strResourceType) Deactivate the units assignments associated to the specified resource.static voiddeleteByResource(int nIdResource, String strResourceType) Delete the units assignments associated to the specified resource.static List<UnitAssignment>findByResource(int nIdResource, String strResourceType) Finds the unit assignments associated to the specified couple {resource id, resource type}.static List<UnitAssignment>findByUnit(int nIdUnit) Finds the unit assignments associated to the specified unit.Finds id resource from filter.static List<UnitAssignment>getListByFilter(UnitAssignmentFilter filter) Finds unit assignments from filter.
-
Method Details
-
create
Creates a unit assignment- Parameters:
unitAssignment- The unit assignment to create- Returns:
- The unit assignment which has been created
-
deactivate
Deactivates a unit assignment- Parameters:
unitAssignment- The unit assignment to deactivate
-
findByResource
Finds the unit assignments associated to the specified couple {resource id, resource type}.
The result list contains active and inactive unit assignments.
- Parameters:
nIdResource- the resource idstrResourceType- the resource type- Returns:
- the list of unit assignments
-
findByUnit
Finds the unit assignments associated to the specified unit.
The result list contains active and inactive unit assignments.
- Parameters:
nIdUnit- the unit id- Returns:
- the list of unit assignments
-
findIdResourceByFilter
Finds id resource from filter.- Parameters:
filter- the filter- Returns:
- the list of id resource
-
getListByFilter
Finds unit assignments from filter.- Parameters:
filter- the filter- Returns:
- the list of unit assignments
-
deactivateByResource
Deactivate the units assignments associated to the specified resource.
- Parameters:
nIdResource- the resource idstrResourceType- the resource type
-
deleteByResource
Delete the units assignments associated to the specified resource.
- Parameters:
nIdResource- the resource idstrResourceType- the resource type
-