Examples of TargetRegistryEventRemove


Examples of org.sonatype.nexus.proxy.events.TargetRegistryEventRemove

      CRepositoryTarget cTarget = ti.next();
      if (StringUtils.equals(id, cTarget.getId())) {
        Target target = getRepositoryTarget(id);
        ti.remove();
        if (!forUpdate) {
          eventBus().post(new TargetRegistryEventRemove(this, target));
        }
        return true;
      }
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.events.TargetRegistryEventRemove

      catch (NoSuchAuthorizationManagerException e) {
        log.error("Unable to clean privileges attached to repository", e);
      }
    }
    if (evt instanceof TargetRegistryEventRemove) {
      TargetRegistryEventRemove rEvt = (TargetRegistryEventRemove) evt;

      String targetId = rEvt.getTarget().getId();

      try {
        cleanupPrivileges(TargetPrivilegeRepositoryTargetPropertyDescriptor.ID, targetId);
      }
      catch (NoSuchPrivilegeException e) {
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.