use of com.enonic.xp.issue.PublishRequestIssueSchedule in project xp by enonic.
the class PublishRequestIssueSerializer method extractSchedule.
private void extractSchedule(final PropertySet data, final PublishRequestIssue.Builder builder) {
final PropertySet scheduleSet = data.getSet(PublishRequestIssuePropertyNames.SCHEDULE);
if (scheduleSet != null) {
final PublishRequestIssueSchedule schedule = PublishRequestIssueSchedule.create().from(scheduleSet.getInstant(PublishRequestIssuePropertyNames.SCHEDULE_FROM)).to(scheduleSet.getInstant(PublishRequestIssuePropertyNames.SCHEDULE_TO)).build();
builder.schedule(schedule);
}
}
Aggregations