Class Shift

    • Method Detail

      • isValid

        @AssertTrue(message="Shift\'s end date time is not at least 30 minutes after shift\'s start date time")
        public @javax.validation.constraints.AssertTrue(message="Shift\'s end date time is not at least 30 minutes after shift\'s start date time") boolean isValid()
      • follows

        public boolean follows​(Shift other)
      • precedes

        public boolean precedes​(Shift other)
      • getLengthInMinutes

        public long getLengthInMinutes()
      • isMoved

        public boolean isMoved()
      • hasRequiredSkills

        public boolean hasRequiredSkills()
      • getSpot

        public Spot getSpot()
      • setSpot

        public void setSpot​(Spot spot)
      • setStartDateTime

        public void setStartDateTime​(OffsetDateTime startDateTime)
      • setEndDateTime

        public void setEndDateTime​(OffsetDateTime endDateTime)
      • isPinnedByUser

        public boolean isPinnedByUser()
      • setPinnedByUser

        public void setPinnedByUser​(boolean lockedByUser)
      • getEmployee

        public Employee getEmployee()
      • setEmployee

        public void setEmployee​(Employee employee)
      • getRotationEmployee

        public Employee getRotationEmployee()
      • setRotationEmployee

        public void setRotationEmployee​(Employee rotationEmployee)
      • getOriginalEmployee

        public Employee getOriginalEmployee()
      • setOriginalEmployee

        public void setOriginalEmployee​(Employee originalEmployee)
      • getRequiredSkillSet

        public Set<Skill> getRequiredSkillSet()
      • setRequiredSkillSet

        public void setRequiredSkillSet​(Set<Skill> requiredSkillSet)
      • inTimeZone

        public Shift inTimeZone​(ZoneId zoneId)