class NotificationEditorWidget implements IsWidget,
                                                 NotificationEditorWidgetView.Presenter {

    @Override
    public void setExpirationDateTime(String expiresAt) {
        MatchResult result = RegExp.compile(REPEATABLE + "/" + ISO_DATE_TIME + "/" + PERIOD).exec(expiresAt);
        if (result != null) {
            String timeZone = result.getGroup(3);
            view.enableRepeatNotification(parseDate(result.getGroup(2)),
                                          clearTimeZone(timeZone),
                                          expiresAt.split("/")[2],
                                          expiresAt.split("/")[0]);
        } else {
            result = RegExp.compile(ISO_DATE_TIME).exec(expiresAt);
            if (result != null) {
                view.disableRepeatNotification(parseDate(result.getGroup(1)),
                                               result.getGroup(2));
            }
        }
    }

    @Inject public  NotificationEditorWidget(NotificationEditorWidgetView view,
                                    ClientTranslationService translationService);

}