Examples of nodeExists()


Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

      return;

    /* Remove from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
          realmPreferences.clear();
          realmPreferences.removeNode();
View Full Code Here

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

    /* Remove from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
          realmPreferences.clear();
          realmPreferences.removeNode();
          try {
            feedPreferences.flush();
View Full Code Here

Examples of org.eclipse.ui.internal.preferences.WorkingCopyPreferences.nodeExists()

   * @see org.eclipse.ui.preferences.IWorkingCopyManager#applyChanges()
   */
  public void applyChanges() throws BackingStoreException {
    for (Iterator i = workingCopies.values().iterator(); i.hasNext();) {
      WorkingCopyPreferences prefs = (WorkingCopyPreferences) i.next();
      if (prefs.nodeExists(EMPTY_STRING))
        prefs.flush();
    }
  }

}
View Full Code Here

Examples of org.elasticsearch.cluster.node.DiscoveryNodes.nodeExists()

            // if we are no longer master, fail...
            if (!nodes.localNodeMaster()) {
                throw new NoLongerMasterException();
            }
            // send a response, and note if we are connected to the master or not
            channel.sendResponse(new MasterPingResponseResponse(nodes.nodeExists(request.nodeId)));
        }

        @Override public String executor() {
            return ThreadPool.Names.SAME;
        }
View Full Code Here

Examples of org.jahia.services.content.JCRSessionWrapper.nodeExists()

    @AfterClass
    public static void oneTimeTearDown() throws Exception {
        try {
            JCRSessionWrapper session = JCRSessionFactory.getInstance().getCurrentUserSession();
            if (session.nodeExists(SITECONTENT_ROOT_NODE)) {
                TestHelper.deleteSite(TESTSITE_NAME);
            }
            session.save();

            session.logout();
View Full Code Here

Examples of org.osgi.service.prefs.Preferences.nodeExists()

    private Preferences findNode( String code ) {
        try {
            Preferences root = UiPlugin.getUserPreferences();
            Preferences node = root.node(InstanceScope.SCOPE).node(CUSTOM_ID);

            if (node.nodeExists(code)) {
                return node.node(code);
            }

            for( String id : node.childrenNames() ) {
                Preferences child = node.node(id);
View Full Code Here

Examples of org.talend.esb.servicelocator.client.internal.zk.ZKBackend.nodeExists()

        expect(zkMock.exists(NODE_PATH.toString(), false)).andReturn(new Stat());
        replay(zkMock);
        ZKBackend zkb = createZKBackend();

        zkb.connect();
        boolean exists = zkb.nodeExists(NODE_PATH);
       
        assertTrue(exists);
        verify(zkMock);
    }
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.