Class BOResource
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
Business object representing a resource
- Since:
- 16.0
- See Also:
- GCApi:
- bo
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the birthdate.getColor()Returns the color.Checks whether the competencies need to be copied from the original source to the ones on loan.getEmail()Returns the email.Returns the end address.Returns the end date.getId()Returns the resource id.Returns the identification number.Returns the id of the original resource from which the loan is made.Returns the mobile phone.getName()Returns the name.Returns the operation center.getOrder()Returns the order.Returns the oss space id.Returns the resource management.Returns the resource type.Returns the secondary identification number.Returns the single team.Returns the start address.Returns the start date.Returns the surname.getType()Returns the id of the resource type.Returns the resource username.Returns the vehicle.Returns the work center.Returns the working time type.isDummy()Returns true if the resource is a dummy user.isLoan()Checks whether the resource is on loan.booleanisResourceActive(Date referenceDate) Says if the resource is active in a given day.voidsetBirthDate(Date birthDate) Sets the birthDate.voidSets the color.voidsetCopyCompetencies(Boolean copyCompetencies) Sets the copy competencies flag.voidSets true if the resource is a dummy user.voidSets the email.voidsetEndAddress(Long endAddress) Sets the end address.voidsetEndDate(Date endDate) Sets the end date.voidSets the resource id.voidsetIdentificationNumber(String identificationNumber) Sets the identification number.voidSets the resource as on loan.voidsetLoanSource(Long loanSource) Sets the given resource id as loan source.voidsetMobilePhone(String mobilePhone) Sets the mobile phone.voidSets the name.voidsetOperationCenter(Long operationCenter) Sets the operation center.voidSets the order.voidsetOssSpace(Long ossSpace) Sets the oss space id.voidsetResourceManagement(Long resourceManagement) Sets the resource management.voidsetResourceType(Long resourceType) Sets the resource type.voidsetSecondaryIdentificationNumber(String secondaryIdentificationNumber) Sets the secondary identification number.voidsetSingleTeam(Long singleTeam) Sets the single team.voidsetStartAddress(Long startAddress) Sets the start address.voidsetStartDate(Date startDate) Sets the start date.voidsetSurname(String surname) Sets the surname.voidSets the id of the resource type.voidsetUsername(String username) Sets the resource username.voidsetVehicle(Long vehicle) Sets the vehicle.voidsetWorkCenter(Long workCenter) Sets the work center.voidsetWorkingTimeType(Long workingTimeType) Sets the working time type.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Constructor Details
-
BOResource
public BOResource()
-
-
Method Details
-
getId
Returns the resource id.- Returns:
- the resource id
-
setId
Sets the resource id.- Parameters:
id- the resource id
-
getType
Returns the id of the resource type.- Returns:
- the type id
-
setType
Sets the id of the resource type.- Parameters:
type- the type id
-
getSurname
Returns the surname.- Returns:
- the surname
-
setSurname
Sets the surname.- Parameters:
surname- the surname
-
getName
Returns the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the name
-
getBirthDate
Returns the birthdate.- Returns:
- the birthdate
-
setBirthDate
Sets the birthDate.- Parameters:
birthDate- the birthDate
-
getEmail
Returns the email.- Returns:
- the email
-
setEmail
Sets the email.- Parameters:
email- the email
-
getOperationCenter
Returns the operation center.- Returns:
- the operation center
-
setOperationCenter
Sets the operation center.- Parameters:
operationCenter- the operation center
-
getMobilePhone
Returns the mobile phone.- Returns:
- the mobile phone
-
setMobilePhone
Sets the mobile phone.- Parameters:
mobilePhone- the mobile phone
-
getStartAddress
Returns the start address.- Returns:
- the start address
-
setStartAddress
Sets the start address.- Parameters:
startAddress- the start address
-
getEndAddress
Returns the end address.- Returns:
- the end address
-
setEndAddress
Sets the end address.- Parameters:
endAddress- the end address
-
getIdentificationNumber
Returns the identification number.- Returns:
- the identification number
-
setIdentificationNumber
Sets the identification number.- Parameters:
identificationNumber- the identification number
-
getResourceType
Returns the resource type.- Returns:
- the resource type
-
setResourceType
Sets the resource type.- Parameters:
resourceType- the resource type
-
getWorkingTimeType
Returns the working time type.- Returns:
- the working time type
-
setWorkingTimeType
Sets the working time type.- Parameters:
workingTimeType- the working time type
-
getColor
Returns the color.- Returns:
- the color
-
setColor
Sets the color.- Parameters:
color- the color
-
getVehicle
Returns the vehicle.- Returns:
- the vehicle
-
setVehicle
Sets the vehicle.- Parameters:
vehicle- the vehicle
-
getOrder
Returns the order.- Returns:
- the order
-
setOrder
Sets the order.- Parameters:
order- the order
-
getSingleTeam
Returns the single team.- Returns:
- the single team
-
setSingleTeam
Sets the single team.- Parameters:
singleTeam- the single team
-
getWorkCenter
Returns the work center.- Returns:
- the work center
-
setWorkCenter
Sets the work center.- Parameters:
workCenter- the work center
-
getResourceManagement
Returns the resource management.- Returns:
- the resource management
-
setResourceManagement
Sets the resource management.- Parameters:
resourceManagement- the resource management
-
getUsername
Returns the resource username.- Returns:
- the username
-
setUsername
Sets the resource username.- Parameters:
username- the username
-
getOssSpace
Returns the oss space id.- Returns:
- the oss space id
-
setOssSpace
Sets the oss space id.- Parameters:
ossSpace- the oss space id
-
getStartDate
Returns the start date.- Returns:
- the start date
-
setStartDate
Sets the start date.- Parameters:
startDate- the start date
-
getEndDate
Returns the end date.- Returns:
- the end date
-
setEndDate
Sets the end date.- Parameters:
endDate- the end date
-
isDummy
Returns true if the resource is a dummy user.- Returns:
- the dummy user flag
-
setDummy
Sets true if the resource is a dummy user.- Parameters:
dummy- the dummy user flag
-
getSecondaryIdentificationNumber
Returns the secondary identification number.- Returns:
- the secondary identification number
-
setSecondaryIdentificationNumber
Sets the secondary identification number.- Parameters:
secondaryIdentificationNumber- the secondary identification number
-
isLoan
Checks whether the resource is on loan.- Returns:
- true if the resource is on loan, false otherwise
-
setLoan
Sets the resource as on loan.- Parameters:
loan- true if the resource must be on loan, false otherwise
-
getLoanSource
Returns the id of the original resource from which the loan is made.- Returns:
- the loan source id
-
setLoanSource
Sets the given resource id as loan source.- Parameters:
loanSource- the loan source id
-
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
Sets the copy competencies flag.- Parameters:
copyCompetencies- true if the competencies need to be copied, false otherwise
-
isResourceActive
Says if the resource is active in a given day.- Parameters:
referenceDate- theDateused for evaluate the resource validity- Returns:
- true if the resource is active in the given day, false otherwise
-