use of org.olat.resource.accesscontrol.model.OfferImpl in project openolat by klemens.
the class TokenAccessConfigurationController method commitChanges.
@Override
public OfferAccess commitChanges() {
Offer offer = link.getOffer();
if (offer instanceof OfferImpl) {
((OfferImpl) offer).setToken(tokenEl.getValue());
}
offer.setDescription(descEl.getValue());
offer.setValidFrom(dateFrom.getDate());
offer.setValidTo(dateTo.getDate());
link.setValidFrom(dateFrom.getDate());
link.setValidTo(dateTo.getDate());
return link;
}
Aggregations