Package freenet.node

Examples of freenet.node.NodeClientCore


    }
   
  };

  public void createFproxy() {
    NodeClientCore core = this.core;
    Node node = core.node;
    synchronized(this) {
      if(haveCalledFProxy) return;
      haveCalledFProxy = true;
    }
View Full Code Here


  @Override
  public Toadlet findToadlet(URI uri) throws PermanentRedirectException {
    String path = uri.getPath();

    // Show the wizard until dismissed by the user (See bug #2624)
    NodeClientCore core = this.core;
    if(core != null && core.node != null && !fproxyHasCompletedWizard) {
      //If the user has not completed the wizard, only allow access to the wizard and static
      //resources. Anything else redirects to the first page of the wizard.
      if (!(path.startsWith(FirstTimeWizardToadlet.TOADLET_URL) ||
        path.startsWith(StaticToadlet.ROOT_URL) ||
View Full Code Here

  public THEME getTheme() {
    return this.cssTheme;
  }

  public UserAlertManager getUserAlertManager() {
    NodeClientCore core = this.core;
    if(core == null) return null;
    return core.alerts;
  }
View Full Code Here

    public void set(String CSSName) throws InvalidConfigValueException {
      if((CSSName.indexOf(':') != -1) || (CSSName.indexOf('/') != -1))
        throw new InvalidConfigValueException(l10n("illegalCSSName"));
      cssTheme = THEME.themeFromName(CSSName);
      pageMaker.setTheme(cssTheme);
      NodeClientCore core = SimpleToadletServer.this.core;
      if (core.node.pluginManager != null)
        core.node.pluginManager.setFProxyTheme(cssTheme);
    }
View Full Code Here

      return (cssOverride == null ? "" : cssOverride.toString());
    }

    @Override
    public void set(String val) throws InvalidConfigValueException {
      NodeClientCore core = SimpleToadletServer.this.core;
      if(core == null) return;
      if(val.equals(get()) || val.equals(""))
        cssOverride = null;
      else {
        File tmp = new File(val.trim());
        if(!core.allowUploadFrom(tmp))
          throw new InvalidConfigValueException(l10n("cssOverrideNotInUploads", "filename", tmp.toString()));
        else if(!tmp.canRead() || !tmp.isFile())
          throw new InvalidConfigValueException(l10n("cssOverrideCantRead", "filename", tmp.toString()));
        File parent = tmp.getParentFile();
        // Basic sanity check.
View Full Code Here

   
    mSessionManager = mFreetalk.getPluginRespirator().getSessionManager(Freetalk.WEB_OF_TRUST_NAME);
   
    mPageMaker.addNavigationCategory(Freetalk.PLUGIN_URI+"/", "WebInterface.DiscussionMenuName", "WebInterface.DiscussionMenuName.Tooltip", mFreetalk, 1);
   
    NodeClientCore clientCore = mFreetalk.getPluginRespirator().getNode().clientCore;
   
    // Visible pages
    homeToadlet = new HomeWebInterfaceToadlet(null, this, clientCore, "");
    logInToadlet = new LogInWebInterfaceToadlet(null, this, clientCore, "LogIn");
    subscribedBoardsToadlet = new SubscribedBoardsWebInterfaceToadlet(null, this, clientCore, "SubscribedBoards");
View Full Code Here

TOP

Related Classes of freenet.node.NodeClientCore

Copyright © 2018 www.massapicom. 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.