@Entity public class Shift extends AbstractPersistable
| Constructor and Description |
|---|
Shift() |
Shift(Integer tenantId,
Spot spot,
OffsetDateTime startDateTime,
OffsetDateTime endDateTime) |
Shift(Integer tenantId,
Spot spot,
OffsetDateTime startDateTime,
OffsetDateTime endDateTime,
Employee rotationEmployee) |
Shift(Integer tenantId,
Spot spot,
OffsetDateTime startDateTime,
OffsetDateTime endDateTime,
Employee rotationEmployee,
Set<Skill> requiredSkillSet,
Employee originalEmployee) |
Shift(ZoneId zoneId,
ShiftView shiftView,
Spot spot) |
Shift(ZoneId zoneId,
ShiftView shiftView,
Spot spot,
Employee rotationEmployee) |
Shift(ZoneId zoneId,
ShiftView shiftView,
Spot spot,
Employee rotationEmployee,
Set<Skill> requiredSkillSet,
Employee originalEmployee) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
follows(Shift other) |
Employee |
getEmployee() |
OffsetDateTime |
getEndDateTime() |
long |
getLengthInMinutes() |
Employee |
getOriginalEmployee() |
Set<Skill> |
getRequiredSkillSet() |
Employee |
getRotationEmployee() |
Spot |
getSpot() |
OffsetDateTime |
getStartDateTime() |
boolean |
hasRequiredSkills() |
Shift |
inTimeZone(ZoneId zoneId) |
boolean |
isMoved() |
boolean |
isPinnedByUser() |
@AssertTrue(message="Shift\'s end date time is not at least 30 minutes after shift\'s start date time") boolean |
isValid() |
boolean |
precedes(Shift other) |
void |
setEmployee(Employee employee) |
void |
setEndDateTime(OffsetDateTime endDateTime) |
void |
setOriginalEmployee(Employee originalEmployee) |
void |
setPinnedByUser(boolean lockedByUser) |
void |
setRequiredSkillSet(Set<Skill> requiredSkillSet) |
void |
setRotationEmployee(Employee rotationEmployee) |
void |
setSpot(Spot spot) |
void |
setStartDateTime(OffsetDateTime startDateTime) |
String |
toString() |
equals, getId, getTenantId, getVersion, hashCode, setId, setTenantId, setVersionpublic Shift()
public Shift(Integer tenantId, Spot spot, OffsetDateTime startDateTime, OffsetDateTime endDateTime)
public Shift(Integer tenantId, Spot spot, OffsetDateTime startDateTime, OffsetDateTime endDateTime, Employee rotationEmployee)
public Shift(Integer tenantId, Spot spot, OffsetDateTime startDateTime, OffsetDateTime endDateTime, Employee rotationEmployee, Set<Skill> requiredSkillSet, Employee originalEmployee)
@AssertTrue(message="Shift\'s end date time is not at least 30 minutes after shift\'s start date time") public @AssertTrue(message="Shift\'s end date time is not at least 30 minutes after shift\'s start date time") boolean isValid()
public String toString()
toString in class AbstractPersistablepublic boolean follows(Shift other)
public boolean precedes(Shift other)
public long getLengthInMinutes()
public boolean isMoved()
public boolean hasRequiredSkills()
public Spot getSpot()
public void setSpot(Spot spot)
public OffsetDateTime getStartDateTime()
public void setStartDateTime(OffsetDateTime startDateTime)
public OffsetDateTime getEndDateTime()
public void setEndDateTime(OffsetDateTime endDateTime)
public boolean isPinnedByUser()
public void setPinnedByUser(boolean lockedByUser)
public Employee getEmployee()
public void setEmployee(Employee employee)
public Employee getRotationEmployee()
public void setRotationEmployee(Employee rotationEmployee)
public Employee getOriginalEmployee()
public void setOriginalEmployee(Employee originalEmployee)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.