Examples of deleteItem()


Examples of org.jbpm.formapi.client.form.OptionsFormItem.deleteItem()

        opt.addItem(getNewLabel(), getNewValue());
    }
   
    protected void revertStyles(String label, FBFormItem item) {
        OptionsFormItem opt = (OptionsFormItem) item;
        opt.deleteItem(label);
    }

    @Override
    public PopupPanel createPanel() {
        final PopupPanel panel = new PopupPanel();
View Full Code Here

Examples of org.jbpm.formapi.client.form.OptionsFormItem.deleteItem()

    }
   
    @Override
    protected void createStyles() {
        OptionsFormItem opt = (OptionsFormItem) super.getItem();
        opt.deleteItem(getDropItemLabel());
    }
   
    protected void revertStyles(String label, String value) {
        OptionsFormItem opt = (OptionsFormItem) super.getItem();
        opt.addItem(label, value);
View Full Code Here

Examples of org.platformlayer.PlatformLayerClient.deleteItem()

  public Object runCommand() throws PlatformLayerClientException {
    PlatformLayerClient client = getPlatformLayerClient();

    PlatformLayerKey key = path.resolve(getContext());

    JobData jobData = client.deleteItem(key);
    return jobData;
  }

  @Override
  public void formatRaw(Object o, PrintWriter writer) {
View Full Code Here

Examples of org.platformlayer.TypedPlatformLayerClient.deleteItem()

  public <T extends ItemBase> JobData deleteItem(T item) throws IOException, OpsException {
    TypedPlatformLayerClient client = getTypedClient();

    PlatformLayerKey key = item.getKey();
    return client.deleteItem(key);
  }

  public <T extends ItemBase> JobData doAction(T item, Action action) throws OpsException, IOException {
    TypedPlatformLayerClient client = getTypedClient();
View Full Code Here

Examples of org.sonatype.nexus.proxy.ResourceStore.deleteItem()

  {
    try {
      final ResourceStore store = getResourceStore(request);
      final ResourceStoreRequest req = getResourceStoreRequest(request);

      store.deleteItem(req);

      getLogger().info(
          "Storage item(s) on path \"" + req.getRequestPath() + "\" (and below) were deleted from repository ["
              + request.getAttributes().get(AbstractRepositoryPlexusResource.REPOSITORY_ID_KEY) + "]");
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.maven2.M2Repository.deleteItem()

    long fileTimestamp = mdFile.lastModified();

    assertThat(mdFile, exists());

    try {
      repository.deleteItem(new ResourceStoreRequest("/spoof", true));
    }
    catch (ItemNotFoundException e) {
      // ignore
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.ProxyRepository.deleteItem()

          @Override
          protected void processFileItem(final WalkerContext context, final StorageFileItem item) throws Exception {
            if (!item.getPath().equals("/" + Yum.PATH_OF_REPOMD_XML)
                && !locations.contains(item.getPath().substring(1))) {
              log.trace("Removing obsolete {}:{}", repository.getId(), item.getPath());
              repository.deleteItem(true, item.getResourceStoreRequest());
            }
          }
        });
        walkerProvider.get().walk(context);
      }
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.ProxyRepository.deleteItem()

    // install listener
    final DeleteEventsListener listener = new DeleteEventsListener();
    eventBus().register(listener);

    // perform delete
    repo1.deleteItem(new ResourceStoreRequest("/org"));

    // 3 events: the actual collection being deleted + 2 non-collections discovered by diving in recursively (POM +
    // SHA1)
    assertThat(listener.getDeleteEvents().size(), equalTo(3));
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.ProxyRepository.deleteItem()

  {
    final ProxyRepository repo1 = getRepositoryRegistry().getRepositoryWithFacet("repo1", ProxyRepository.class);
    repo1.retrieveItem(new ResourceStoreRequest("/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.pom"));

    // perform delete a bit lower
    repo1.deleteItem(new ResourceStoreRequest("/org/slf4j"));

    // install listener
    final DeleteEventsListener listener = new DeleteEventsListener();
    eventBus().register(listener);
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.ProxyRepository.deleteItem()

    // install listener
    final DeleteEventsListener listener = new DeleteEventsListener();
    eventBus().register(listener);

    // perform delete
    repo1.deleteItem(new ResourceStoreRequest("/org"));

    // 1 events: the actual collection being deleted
    assertThat(listener.getDeleteEvents().size(), equalTo(1));
    assertThat(listener.getDeleteEvents().get(0).getClass().getName(),
        equalTo(RepositoryItemEventDeleteRoot.class.getName()));
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.