NEXUS-7789: Use enums in schedules

Instead of type unsafe int constants.

Issue
https://issues.sonatype.org/browse/NEXUS-7789

CI
http://bamboo.s/browse/NX-OSSF435