Class UnitAssignment
- java.lang.Object
-
- fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment
-
public class UnitAssignment extends java.lang.ObjectThis class represents an assignment to a unit
-
-
Constructor Summary
Constructors Constructor Description UnitAssignment()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnitgetAssignedUnit()Gives the assigned unitjava.sql.TimestampgetAssignmentDate()Gives the assignment dateUnitAssignmentTypegetAssignmentType()Gives the assignment typeUnitgetAssignorUnit()Gives the assignor unitintgetId()Gives the idintgetIdAssignedUnit()Gives the assigned unit idintgetIdAssignorUnit()Gives the assignor unit idintgetIdResource()Gives the resource idjava.lang.StringgetResourceType()Gives the resource typebooleanisActive()Tests if the assignment is active or notvoidsetActive(boolean bIsActive)Sets if the assignment is active or notvoidsetAssignedUnit(Unit assignedUnit)Sets the assigned unitvoidsetAssignmentDate(java.sql.Timestamp dateAssignmentDate)Sets the assignment datevoidsetAssignmentType(UnitAssignmentType assignmentType)Sets the assignment typevoidsetAssignorUnit(Unit assignorUnit)Sets the assignor unitvoidsetId(int nId)Sets the idvoidsetIdAssignedUnit(int nIdAssignedUnit)Sets the assigned unit idvoidsetIdAssignorUnit(int nIdAssignorUnit)Sets the assignor unit idvoidsetIdResource(int nIdResource)Sets the resource idvoidsetResourceType(java.lang.String strResourceType)Sets the resource type
-
-
-
Method Detail
-
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 java.lang.String getResourceType()
Gives the resource type- Returns:
- The resource type
-
setResourceType
public void setResourceType(java.lang.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 java.sql.Timestamp getAssignmentDate()
Gives the assignment date- Returns:
- The assignment date
-
setAssignmentDate
public void setAssignmentDate(java.sql.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:
trueif the assignment is active,falseotherwise
-
setActive
public void setActive(boolean bIsActive)
Sets if the assignment is active or not- Parameters:
bIsActive-trueif the assignment is active,falseotherwise
-
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
-
-