Class UnitAssignment
java.lang.Object
fr.paris.lutece.plugins.unittree.business.assignment.UnitAssignment
This class represents an assignment to a unit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGives the assigned unitGives the assignment dateGives the assignment typeGives the assignor unitintgetId()Gives the idintGives the assigned unit idintGives the assignor unit idintGives the resource idGives 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(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(String strResourceType) Sets the resource type
-
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
Gives the resource type- Returns:
- The resource type
-
setResourceType
Sets the resource type- Parameters:
strResourceType- The resource type to set
-
getAssignedUnit
Gives the assigned unit- Returns:
- The assigned unit
-
setAssignedUnit
Sets the assigned unit- Parameters:
assignedUnit- The assigned unit to set
-
getAssignorUnit
Gives the assignor unit- Returns:
- The assignor unit
-
setAssignorUnit
Sets the assignor unit- Parameters:
assignorUnit- The assignor unit to set
-
getAssignmentDate
Gives the assignment date- Returns:
- The assignment date
-
setAssignmentDate
Sets the assignment date- Parameters:
dateAssignmentDate- The assignment date to set
-
getAssignmentType
Gives the assignment type- Returns:
- the assignment type
-
setAssignmentType
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
-