Package org.olat.basesecurity.events

Examples of org.olat.basesecurity.events.NewIdentityCreatedEvent


 
  private void notifyNewIdentityCreated(Identity newIdentity) {
    //Save the identity on the DB. So can the listeners of the event retrieve it
    //in cluster mode
    DBFactory.getInstance().intermediateCommit();
    CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new NewIdentityCreatedEvent(newIdentity), IDENTITY_EVENT_CHANNEL);
  }
View Full Code Here


   */
  public void event(Event event) {
    if (event instanceof NewIdentityCreatedEvent) {
      markPublisherNews();
      if(autoSubscribe) {
        NewIdentityCreatedEvent e = (NewIdentityCreatedEvent)event;
        Identity identity = ManagerFactory.getManager().loadIdentityByKey(e.getIdentityId());
        subscribe(identity);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.basesecurity.events.NewIdentityCreatedEvent

Copyright © 2018 www.massapicom. 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.