Class UnitAssignmentService

java.lang.Object
fr.paris.lutece.plugins.workflow.modules.unittree.service.UnitAssignmentService

public final class UnitAssignmentService extends Object
This class is the entry point for unit assignment. It provides methods for unit assignment.
  • Method Summary

    Modifier and Type
    Method
    Description
    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}.
    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.UnitAssignment
    findCurrentAssignment(int nIdResource, String strResourceType)
    Finds the current unit assignment for the specified couple {resource id, resource type}

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 id
      strResourceType - 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 id
      strResourceType - 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