package net.sourceforge.fenixedu.domain.security; import net.sourceforge.fenixedu.domain.RootDomainObject; import org.joda.time.DateTime; public class PathRestriction extends PathRestriction_Base { public PathRestriction() { super(); } public boolean isActive() { return getEnd() != null && getEnd().isAfter(new DateTime()); } public void delete() { this.setUser(null); this.setPathRestrictionTemplate(null); super.deleteDomainObject(); } @Override protected RootDomainObject getRootDomainObject() { return getUser().getRootDomainObject(); } }