Examples of OwnIdentityAddedEvent


Examples of net.pterodactylus.sone.freenet.wot.event.OwnIdentityAddedEvent

      /* find added own identities. */
      for (OwnIdentity currentOwnIdentity : newOwnIdentities.values()) {
        OwnIdentity oldOwnIdentity = currentOwnIdentities.get(currentOwnIdentity.getId());
        if (((oldOwnIdentity == null) && ((context == null) || currentOwnIdentity.hasContext(context))) || ((oldOwnIdentity != null) && (context != null) && (!oldOwnIdentity.hasContext(context) && currentOwnIdentity.hasContext(context)))) {
          logger.finest(String.format("Own Identity added: %s", currentOwnIdentity));
          eventBus.post(new OwnIdentityAddedEvent(new DefaultOwnIdentity(currentOwnIdentity)));
        }
      }

      currentOwnIdentities.clear();
      currentOwnIdentities.putAll(newOwnIdentities);
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.