java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.resources.bl.resource.BOResource
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

@EntityRef(ResourceEntity.class) public class BOResource extends DynO implements Serializable
Business object representing a resource
Since:
16.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOResource

      public BOResource()
  • Method Details

    • getId

      public Long getId()
      Returns the resource id.
      Returns:
      the resource id
    • setId

      public void setId(Long id)
      Sets the resource id.
      Parameters:
      id - the resource id
    • getType

      public Long getType()
      Returns the id of the resource type.
      Returns:
      the type id
    • setType

      public void setType(Long type)
      Sets the id of the resource type.
      Parameters:
      type - the type id
    • getSurname

      public String getSurname()
      Returns the surname.
      Returns:
      the surname
    • setSurname

      public void setSurname(String surname)
      Sets the surname.
      Parameters:
      surname - the surname
    • getName

      public String getName()
      Returns the name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the name
    • getBirthDate

      public Date getBirthDate()
      Returns the birthdate.
      Returns:
      the birthdate
    • setBirthDate

      public void setBirthDate(Date birthDate)
      Sets the birthDate.
      Parameters:
      birthDate - the birthDate
    • getEmail

      public String getEmail()
      Returns the email.
      Returns:
      the email
    • setEmail

      public void setEmail(String email)
      Sets the email.
      Parameters:
      email - the email
    • getOperationCenter

      public Long getOperationCenter()
      Returns the operation center.
      Returns:
      the operation center
    • setOperationCenter

      public void setOperationCenter(Long operationCenter)
      Sets the operation center.
      Parameters:
      operationCenter - the operation center
    • getMobilePhone

      public String getMobilePhone()
      Returns the mobile phone.
      Returns:
      the mobile phone
    • setMobilePhone

      public void setMobilePhone(String mobilePhone)
      Sets the mobile phone.
      Parameters:
      mobilePhone - the mobile phone
    • getStartAddress

      public Long getStartAddress()
      Returns the start address.
      Returns:
      the start address
    • setStartAddress

      public void setStartAddress(Long startAddress)
      Sets the start address.
      Parameters:
      startAddress - the start address
    • getEndAddress

      public Long getEndAddress()
      Returns the end address.
      Returns:
      the end address
    • setEndAddress

      public void setEndAddress(Long endAddress)
      Sets the end address.
      Parameters:
      endAddress - the end address
    • getIdentificationNumber

      public String getIdentificationNumber()
      Returns the identification number.
      Returns:
      the identification number
    • setIdentificationNumber

      public void setIdentificationNumber(String identificationNumber)
      Sets the identification number.
      Parameters:
      identificationNumber - the identification number
    • getResourceType

      public Long getResourceType()
      Returns the resource type.
      Returns:
      the resource type
    • setResourceType

      public void setResourceType(Long resourceType)
      Sets the resource type.
      Parameters:
      resourceType - the resource type
    • getWorkingTimeType

      public Long getWorkingTimeType()
      Returns the working time type.
      Returns:
      the working time type
    • setWorkingTimeType

      public void setWorkingTimeType(Long workingTimeType)
      Sets the working time type.
      Parameters:
      workingTimeType - the working time type
    • getColor

      public String getColor()
      Returns the color.
      Returns:
      the color
    • setColor

      public void setColor(String color)
      Sets the color.
      Parameters:
      color - the color
    • getVehicle

      public Long getVehicle()
      Returns the vehicle.
      Returns:
      the vehicle
    • setVehicle

      public void setVehicle(Long vehicle)
      Sets the vehicle.
      Parameters:
      vehicle - the vehicle
    • getOrder

      public Long getOrder()
      Returns the order.
      Returns:
      the order
    • setOrder

      public void setOrder(Long order)
      Sets the order.
      Parameters:
      order - the order
    • getSingleTeam

      public Long getSingleTeam()
      Returns the single team.
      Returns:
      the single team
    • setSingleTeam

      public void setSingleTeam(Long singleTeam)
      Sets the single team.
      Parameters:
      singleTeam - the single team
    • getWorkCenter

      public Long getWorkCenter()
      Returns the work center.
      Returns:
      the work center
    • setWorkCenter

      public void setWorkCenter(Long workCenter)
      Sets the work center.
      Parameters:
      workCenter - the work center
    • getResourceManagement

      public Long getResourceManagement()
      Returns the resource management.
      Returns:
      the resource management
    • setResourceManagement

      public void setResourceManagement(Long resourceManagement)
      Sets the resource management.
      Parameters:
      resourceManagement - the resource management
    • getUsername

      public String getUsername()
      Returns the resource username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the resource username.
      Parameters:
      username - the username
    • getOssSpace

      public Long getOssSpace()
      Returns the oss space id.
      Returns:
      the oss space id
    • setOssSpace

      public void setOssSpace(Long ossSpace)
      Sets the oss space id.
      Parameters:
      ossSpace - the oss space id
    • getStartDate

      public Date getStartDate()
      Returns the start date.
      Returns:
      the start date
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the start date.
      Parameters:
      startDate - the start date
    • getEndDate

      public Date getEndDate()
      Returns the end date.
      Returns:
      the end date
    • setEndDate

      public void setEndDate(Date endDate)
      Sets the end date.
      Parameters:
      endDate - the end date
    • isDummy

      public Boolean isDummy()
      Returns true if the resource is a dummy user.
      Returns:
      the dummy user flag
    • setDummy

      public void setDummy(Boolean dummy)
      Sets true if the resource is a dummy user.
      Parameters:
      dummy - the dummy user flag
    • getSecondaryIdentificationNumber

      public String getSecondaryIdentificationNumber()
      Returns the secondary identification number.
      Returns:
      the secondary identification number
    • setSecondaryIdentificationNumber

      public void setSecondaryIdentificationNumber(String secondaryIdentificationNumber)
      Sets the secondary identification number.
      Parameters:
      secondaryIdentificationNumber - the secondary identification number
    • isLoan

      public Boolean isLoan()
      Checks whether the resource is on loan.
      Returns:
      true if the resource is on loan, false otherwise
    • setLoan

      public void setLoan(Boolean loan)
      Sets the resource as on loan.
      Parameters:
      loan - true if the resource must be on loan, false otherwise
    • getLoanSource

      public Long getLoanSource()
      Returns the id of the original resource from which the loan is made.
      Returns:
      the loan source id
    • setLoanSource

      public void setLoanSource(Long loanSource)
      Sets the given resource id as loan source.
      Parameters:
      loanSource - the loan source id
    • getCopyCompetencies

      public Boolean getCopyCompetencies()
      Checks whether the competencies need to be copied from the original source to the ones on loan.
      Returns:
      true if the competencies need to be copied, false otherwise
    • setCopyCompetencies

      public void setCopyCompetencies(Boolean copyCompetencies)
      Sets the copy competencies flag.
      Parameters:
      copyCompetencies - true if the competencies need to be copied, false otherwise
    • isResourceActive

      public boolean isResourceActive(Date referenceDate)
      Says if the resource is active in a given day.
      Parameters:
      referenceDate - the Date used for evaluate the resource validity
      Returns:
      true if the resource is active in the given day, false otherwise