java.lang.Object
fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment

public class UnitAssignment extends Object
This class represents an assignment to a unit
  • Constructor Details

    • UnitAssignment

      public UnitAssignment()
      Constructor
  • Method Details

    • getId

      public int getId()
      Gives the id
      Returns:
      The id
    • setId

      public void setId(int nId)
      Sets the id
      Parameters:
      nId - The id to set
    • getIdResource

      public int getIdResource()
      Gives the resource id
      Returns:
      The resource id
    • setIdResource

      public void setIdResource(int nIdResource)
      Sets the resource id
      Parameters:
      nIdResource - The resource id to set
    • getResourceType

      public String getResourceType()
      Gives the resource type
      Returns:
      The resource type
    • setResourceType

      public void setResourceType(String strResourceType)
      Sets the resource type
      Parameters:
      strResourceType - The resource type to set
    • getAssignedUnit

      public Unit getAssignedUnit()
      Gives the assigned unit
      Returns:
      The assigned unit
    • setAssignedUnit

      public void setAssignedUnit(Unit assignedUnit)
      Sets the assigned unit
      Parameters:
      assignedUnit - The assigned unit to set
    • getAssignorUnit

      public Unit getAssignorUnit()
      Gives the assignor unit
      Returns:
      The assignor unit
    • setAssignorUnit

      public void setAssignorUnit(Unit assignorUnit)
      Sets the assignor unit
      Parameters:
      assignorUnit - The assignor unit to set
    • getAssignmentDate

      public Timestamp getAssignmentDate()
      Gives the assignment date
      Returns:
      The assignment date
    • setAssignmentDate

      public void setAssignmentDate(Timestamp dateAssignmentDate)
      Sets the assignment date
      Parameters:
      dateAssignmentDate - The assignment date to set
    • getAssignmentType

      public UnitAssignmentType getAssignmentType()
      Gives the assignment type
      Returns:
      the assignment type
    • setAssignmentType

      public void setAssignmentType(UnitAssignmentType assignmentType)
      Sets the assignment type
      Parameters:
      assignmentType - the assignment type to set
    • isActive

      public boolean isActive()
      Tests if the assignment is active or not
      Returns:
      true if the assignment is active, false otherwise
    • setActive

      public void setActive(boolean bIsActive)
      Sets if the assignment is active or not
      Parameters:
      bIsActive - true if the assignment is active, false otherwise
    • getIdAssignedUnit

      public int getIdAssignedUnit()
      Gives the assigned unit id
      Returns:
      The assigned unit id
    • setIdAssignedUnit

      public void setIdAssignedUnit(int nIdAssignedUnit)
      Sets the assigned unit id
      Parameters:
      nIdAssignedUnit - The assigned unit id
    • getIdAssignorUnit

      public int getIdAssignorUnit()
      Gives the assignor unit id
      Returns:
      The assignor unit id
    • setIdAssignorUnit

      public void setIdAssignorUnit(int nIdAssignorUnit)
      Sets the assignor unit id
      Parameters:
      nIdAssignorUnit - The assignor unit id