NEXUS-7789: Use enums in schedules

Instead of type unsafe int constants.

Issue
https://issues.sonatype.org/browse/NEXUS-7789

CI
TBD