Examples of ObjectAccessEvent


Examples of org.olat.core.id.change.ObjectAccessEvent

  }

  // Handling Update Event
  public void event(Event event) {
    if (ChangeManager.isChangeEvent(event)) {
      ObjectAccessEvent oae = (ObjectAccessEvent) event;     
      if (Tracing.isDebugEnabled(GroupIndexer.class)) Tracing.logDebug("info: oae = "+oae.toString(),GroupIndexer.class);
      int action = oae.getAction();
      Long   id   = oae.getOresId();
      BusinessGroup newBusinessGroup = BusinessGroupManagerImpl.getInstance().loadBusinessGroup(id,true);
      SearchResourceContext searchResourceContext = new SearchResourceContext(); // businessContextString
      searchResourceContext.setBusinessControlFor(newBusinessGroup);
      Document document = GroupDocument.createDocument(searchResourceContext, newBusinessGroup);
      if (action == ChangeManager.ACTION_UPDATE) {
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.