Package java.util.prefs

Examples of java.util.prefs.Preferences.removeNode()


                if (e.plugin == plugin && e.method == publishMethod && e.uri.equals(uri)) {
                    toRemove.add(e);
                    final Preferences ournode = this.ourExportsNode.node(e.nodeID);

                    try {
                        ournode.removeNode();
                        this.agentsRoot.sync();
                    } catch (BackingStoreException e1) {
                        e1.printStackTrace();
                    }
                }
View Full Code Here


        final String name = childNodeNames[i];
        final Preferences p = userPreferences.node(name);
        final String type = p.get("type", null);
        if (type == null)
        {
          p.removeNode();
        }
        else if (type.equals("local"))
        {
          final Properties props = new Properties();
          if (p.nodeExists("properties"))
View Full Code Here

    try
    {
      final Preferences node = userPreferences.node(name);
      if (node != null)
      {
        node.removeNode();
        userPreferences.flush();
      }
    }
    catch (BackingStoreException e)
    {
View Full Code Here

      }
      final Preferences authNode = storageBackend.node(name);
      final String url = authNode.get(URL_KEY, null);
      if (url == null)
      {
        authNode.removeNode();
        continue;
      }

      final long authTime = authNode.getLong(VERSION_KEY, 0);
      final DataHolder<T> data = new DataHolder<T>(create(url, authTime));
View Full Code Here

            log.error(msg, se);

            // Remove the preferences node.
            try
            {
                preferences.removeNode();
            } catch (BackingStoreException bse)
            {
                bse.printStackTrace();
            }
            throw se;
View Full Code Here

            // Remove preferences
            Preferences groupPref = Preferences.userRoot().node(
                    groups[i]);
            try
            {
                groupPref.removeNode();
            } catch (BackingStoreException bse)
            {
                KeyedMessage msg =
                    SecurityException.UNEXPECTED.create("Preferences.removeNode("+groups[i]+")",
                                                        bse.getMessage());
View Full Code Here

            log.error(se.getMessage(), se);

            // Remove the preferences node.
            try
            {
                preferences.removeNode();
            } catch (BackingStoreException bse)
            {
                bse.printStackTrace();
            }
            throw se;
View Full Code Here

        atnProviderProxy.removeUserPrincipal(userPrincipal);
        // Remove preferences
        Preferences preferences = Preferences.userRoot().node(fullPath);
        try
        {
            preferences.removeNode();
        } catch (BackingStoreException bse)
        {
            bse.printStackTrace();
        }
    }
View Full Code Here

            log.error(se.getMessage(), se);

            // Remove the preferences node.
            try
            {
                preferences.removeNode();
            } catch (BackingStoreException bse)
            {
                bse.printStackTrace();
            }
            throw se;
View Full Code Here

        atnProviderProxy.removeUserPrincipal(userPrincipal);
        // Remove preferences
        Preferences preferences = Preferences.userRoot().node(fullPath);
        try
        {
            preferences.removeNode();
        } catch (BackingStoreException bse)
        {
            bse.printStackTrace();
        }
    }
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.