com.geotab.model.entity.worktime.WorkTimeSystem Maven / Gradle / Ivy
package com.geotab.model.entity.worktime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.geotab.model.Id;
import com.geotab.model.serialization.SystemEntitySerializationAware;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/**
* A work time that is a system supplied work time.
*/
@Getter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public abstract class WorkTimeSystem extends WorkTime implements SystemEntitySerializationAware {
public WorkTimeSystem() {
super();
}
public WorkTimeSystem(String id, String name, String comment,
List details, WorkTimeHolidayGroupId holidayGroup) {
super(id, name, comment, details, holidayGroup);
}
@Override
public void setName(String name) {
throw new UnsupportedOperationException();
}
@Override
public void setId(Id id) {
throw new UnsupportedOperationException();
}
@Override
public void setComment(String comment) {
throw new UnsupportedOperationException();
}
@Override
public void setDetails(List details) {
throw new UnsupportedOperationException();
}
@Override
public void setHolidayGroup(WorkTimeHolidayGroupId holidayGroup) {
throw new UnsupportedOperationException();
}
@JsonIgnore
@Override
public boolean isSystemEntity() {
return true;
}
}