Class UnitAssignmentService
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.unittree.service.UnitAssignmentService
This class is the entry point for unit assignment. It provides methods for unit assignment.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment>findAssignments(int nIdResource, String strResourceType) Finds the unit assignments associated to the specified couple {resource id, resource type}.static List<fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment>findAssignmentsByUnit(int nIdUnit) Finds the resources assigned to the unit .static fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignmentfindCurrentAssignment(int nIdResource, String strResourceType) Finds the current unit assignment for the specified couple {resource id, resource type}
-
Method Details
-
findCurrentAssignment
public static fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment findCurrentAssignment(int nIdResource, String strResourceType) Finds the current unit assignment for the specified couple {resource id, resource type}- Parameters:
nIdResource- The resource idstrResourceType- the resource type- Returns:
- the current unit assignment
-
findAssignments
public static List<fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment> findAssignments(int nIdResource, String strResourceType) Finds the unit assignments associated to the specified couple {resource id, resource type}.
The unit assignments are sorted by ascending date.
- Parameters:
nIdResource- the resource idstrResourceType- the resource type- Returns:
- the list of unit assignments
-
findAssignmentsByUnit
public static List<fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment> findAssignmentsByUnit(int nIdUnit) Finds the resources assigned to the unit .
The unit assignments are sorted by ascending date.
- Parameters:
nIdUnit- the Unit id- Returns:
- the list of unit assignments
-