package net.sourceforge.fenixedu.domain.softwareLicenseManagement; import net.sourceforge.fenixedu.domain.exceptions.DomainException; public abstract class SharedKeyModel extends SharedKeyModel_Base { public SharedKeyModel() { super(); } @Override public void process(LicenseRequest request) { } @Override public void delete() { if (getSharedKey() != null) { throw new DomainException("error.operator.softwareLicenseManagement.model.cannotDeleteVersionWithKey"); } super.delete(); } }