Search in sources :

Example 1 with PublishRequestIssueSchedule

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);
    }
}
Also used : PublishRequestIssueSchedule(com.enonic.xp.issue.PublishRequestIssueSchedule) PropertySet(com.enonic.xp.data.PropertySet)

Aggregations

PropertySet (com.enonic.xp.data.PropertySet)1 PublishRequestIssueSchedule (com.enonic.xp.issue.PublishRequestIssueSchedule)1