public class EmployeeAvailabilityView extends AbstractPersistable implements HasTimeslot
id, tenantId, versionEPOCH| Constructor and Description |
|---|
EmployeeAvailabilityView() |
EmployeeAvailabilityView(Integer tenantId,
Employee employee,
LocalDateTime startDateTime,
LocalDateTime endDateTime,
EmployeeAvailabilityState state) |
EmployeeAvailabilityView(ZoneId zoneId,
EmployeeAvailability employeeAvailability) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDurationBetweenReferenceAndStart()
If the HasTimeslot is based on LocalDateTime, its reference will be HasTimeslot.EPOCH
|
Duration |
getDurationOfTimeslot() |
Long |
getEmployeeId() |
LocalDateTime |
getEndDateTime() |
LocalDateTime |
getStartDateTime() |
EmployeeAvailabilityState |
getState() |
void |
setEmployeeId(Long employeeId) |
void |
setEndDateTime(LocalDateTime endDateTime) |
void |
setStartDateTime(LocalDateTime startDateTime) |
void |
setState(EmployeeAvailabilityState state) |
String |
toString() |
equals, getId, getTenantId, getVersion, hashCode, setId, setTenantId, setVersionpublic EmployeeAvailabilityView()
public EmployeeAvailabilityView(Integer tenantId, Employee employee, LocalDateTime startDateTime, LocalDateTime endDateTime, EmployeeAvailabilityState state)
public EmployeeAvailabilityView(ZoneId zoneId, EmployeeAvailability employeeAvailability)
public String toString()
toString in class AbstractPersistablepublic Long getEmployeeId()
public void setEmployeeId(Long employeeId)
public LocalDateTime getStartDateTime()
public void setStartDateTime(LocalDateTime startDateTime)
public LocalDateTime getEndDateTime()
public void setEndDateTime(LocalDateTime endDateTime)
public EmployeeAvailabilityState getState()
public void setState(EmployeeAvailabilityState state)
public Duration getDurationBetweenReferenceAndStart()
HasTimeslotgetDurationBetweenReferenceAndStart in interface HasTimeslotpublic Duration getDurationOfTimeslot()
getDurationOfTimeslot in interface HasTimeslotCopyright © 2017–2019 JBoss by Red Hat. All rights reserved.