Examples of deleteAll()


Examples of org.asynchttpclient.FluentCaseInsensitiveStringsMap.deleteAll()

        assertEquals(map.get("foo"), Arrays.asList("bar"));
        assertEquals(map.getFirstValue("baz"), "foo");
        assertEquals(map.getJoinedValue("baz", ", "), "foo, bar");
        assertEquals(map.get("baz"), Arrays.asList("foo", "bar"));

        map.deleteAll("bAz", "Boo");

        assertEquals(map.keySet(), new LinkedHashSet<String>(Arrays.asList("foo")));
        assertEquals(map.getFirstValue("foo"), "bar");
        assertEquals(map.getJoinedValue("foo", ", "), "bar");
        assertEquals(map.get("foo"), Arrays.asList("bar"));
View Full Code Here

Examples of org.asynchttpclient.FluentStringsMap.deleteAll()

        assertEquals(map.get("foo"), Arrays.asList("bar"));
        assertEquals(map.getFirstValue("baz"), "foo");
        assertEquals(map.getJoinedValue("baz", ", "), "foo, bar");
        assertEquals(map.get("baz"), Arrays.asList("foo", "bar"));

        map.deleteAll("baz", "Boo");

        assertEquals(map.keySet(), new LinkedHashSet<String>(Arrays.asList("foo")));
        assertEquals(map.getFirstValue("foo"), "bar");
        assertEquals(map.getJoinedValue("foo", ", "), "bar");
        assertEquals(map.get("foo"), Arrays.asList("bar"));
View Full Code Here

Examples of org.dspace.content.WorkspaceItem.deleteAll()

        // First and foremost - if it's a thesis, reject the submission
        if (isThesis)
        {
            WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();
            wi.deleteAll();
            subInfo.setSubmissionItem(null);

            // Remember that we've removed a thesis in the session
            request.getSession().setAttribute("removed_thesis",
                    new Boolean(true));
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.deleteAll()

        else if (optionalCall.equals("fail"))
          tempoClient.fail(id, "0", "Error message");
        else if (optionalCall.equals("delete"))
          tempoClient.delete(new String[] { id });
        else if (optionalCall.equals("deleteAll"))
          tempoClient.deleteAll("false", "T._state = TaskState.READY", "PATask");
        else if (optionalCall.equals("reassign"))
            tempoClient.reassign(id, "examples/msmith");
        else
            throw new Exception("invalid optional call:" + optionalCall);
View Full Code Here

Examples of org.jitterbit.application.filestore.DefaultFileStore.deleteAll()

*/
class FileCollisionResolverImplTest {

    public static void main(String[] args) throws Exception {
        DefaultFileStore store = new DefaultFileStore(new File("C:\\project\\temp\\myFileStore")); //$NON-NLS-1$
        store.deleteAll(false);
        store = new DefaultFileStore(new File("C:\\project\\temp\\myFileStore"));
        FileCollisionResolver resolver = new FileCollisionResolverImpl(null);
        store.report(System.out);
        store.addFile("abc\\123\\nisse.txt", "hihi", resolver);
        store.addFile("abc\\123\\nisse2.txt", "hihi2", resolver); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.olat.core.commons.modules.bc.meta.MetaInfo.deleteAll()

          VFSItem item = currentContainer.resolve(file);
          if (item != null && (item.canDelete() == VFSConstants.YES)) {
            if (item instanceof OlatRelPathImpl) {
              // delete all meta info
              MetaInfo meta = MetaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item);
              if (meta != null) meta.deleteAll();
            }
            // delete the item itself
            item.delete();
          } else {
            getWindowControl().setWarning(translator.translate("del.partial"));
View Full Code Here

Examples of org.olat.core.commons.modules.bc.meta.MetaInfo.deleteAll()

          VFSItem item = rootContainer.resolve(cmdUpload.getFileName());
            if (item != null && (item.canDelete() == VFSConstants.YES)) {
              if (item instanceof OlatRelPathImpl) {
                // delete all meta info
                MetaInfo meta = MetaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item);
                if (meta != null) meta.deleteAll();
              }
              // delete the item itself
              item.delete();
            }
          return;
View Full Code Here

Examples of org.olat.core.commons.services.commentAndRating.CommentAndRatingService.deleteAll()

       
        // Delete comments and ratings
        CommentAndRatingService commentAndRatingService = (CommentAndRatingService) ServiceFactory.getServiceOrNull(CommentAndRatingService.class);
        if (commentAndRatingService != null) {       
          commentAndRatingService.init(null, feed, item.getGuid(), true, false);
          commentAndRatingService.deleteAll();
        }
        //
        return null;
      }
    });
View Full Code Here

Examples of org.springframework.orm.hibernate3.HibernateTemplate.deleteAll()

            }
        }

        final HibernateTemplate hibernateTemplate = getHibernateTemplate();
        try {
            hibernateTemplate.deleteAll(listObj);
            hibernateTemplate.flush();
        } catch (final HibernateOptimisticLockingFailureException holfe) {
            throw new JournalException(Messages.Error.JE_OBJ_MISS_ERR, holfe);
        } catch (final DataIntegrityViolationException exception) {
            throw new JournalException(exception.getMessage(), exception.getCause().getCause());//NOPMD Wrap internal exception with client exception.
View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.GaugeRepository.deleteAll()

    assertThat(gauges.size(), equalTo(2));

    repo.delete(myGauge);
    assertThat(repo.findOne(myGaugeName), is(nullValue()));

    repo.deleteAll();
    assertThat(repo.findOne(yourGaugeName), is(nullValue()));
    assertEquals(0, repo.count());

    repo.save(Arrays.asList(g1, g2));
    assertThat(repo.count(), equalTo(2L));
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.