Examples of targetEquals()


Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

   * @see org.olat.core.util.event.GenericEventListener#event(org.olat.core.gui.control.Event)
   */
  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent orj = (OLATResourceableJustBeforeDeletedEvent)event;
      if (!orj.targetEquals(ores)) throw new AssertException("disposingwrappercontroller only listens to del event for resource "+
          ores.getResourceableTypeName()+" / "+ores.getResourceableId()+", but event was for "+orj.getDerivedOres());
      dispose();
    }
   
  }
View Full Code Here

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

      }
    } else if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent ojde = (OLATResourceableJustBeforeDeletedEvent) event;
      // make sure it is our course (actually not needed till now, since we
      // registered only to one event, but good style.
      if (ojde.targetEquals(course, true)) {
        dispose();
      }
    } else if (event instanceof AssessmentChangedEvent) {
      AssessmentChangedEvent ace = (AssessmentChangedEvent) event;
      Identity identity = uce.getIdentityEnvironment().getIdentity();
View Full Code Here

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

    try {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent ojde = (OLATResourceableJustBeforeDeletedEvent) event;
      // make sure it is our course (actually not needed till now, since we
      // registered only to one event, but good style.
      if (ojde.targetEquals(ores, true)) {
        // true = throw an exception if the target does not match ores
        dispose();
      }
    }
    } catch (RuntimeException e) {
View Full Code Here

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent ojde = (OLATResourceableJustBeforeDeletedEvent) event;
      // make sure it is our course (actually not needed till now, since we
      // registered only to one event, but good style.
      if (ojde.targetEquals(feed, true)) {
        dispose();
      }
    }
  }
}
View Full Code Here

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

   * @see org.olat.core.util.event.GenericEventListener#event(org.olat.core.gui.control.Event)
   */
  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent delEvent = (OLATResourceableJustBeforeDeletedEvent) event;
      if (!delEvent.targetEquals(currBusinessGroup)) throw new AssertException(
          "receiving a delete event for a olatres we never registered for!!!:" + delEvent.getDerivedOres());
      dispose();
    }
  }

View Full Code Here

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent.targetEquals()

   * @see org.olat.core.util.event.GenericEventListener#event(org.olat.core.gui.control.Event)
   */
  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent delEvent = (OLATResourceableJustBeforeDeletedEvent) event;
      if (!delEvent.targetEquals(businessGroup)) throw new AssertException(
          "receiving a delete event for a olatres we never registered for!!!:" + delEvent.getDerivedOres());
      dispose();

    } else if (event instanceof BusinessGroupModifiedEvent) {
      BusinessGroupModifiedEvent bgmfe = (BusinessGroupModifiedEvent) event;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.