Examples of OwnIdentityRemovedEvent


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

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

      /* find added own identities. */
      for (OwnIdentity currentOwnIdentity : newOwnIdentities.values()) {
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.