Package org.pentaho.reporting.designer.core.auth

Examples of org.pentaho.reporting.designer.core.auth.AuthenticationData


  }

  public void setLoginData(final AuthenticationData loginData)
  {
    final String oldServerPath = getServerPath();
    final AuthenticationData oldLoginData = this.loginData;
    this.loginData = loginData;
    this.propertyChangeSupport.firePropertyChange(LOGIN_DATA_PROPERTY, oldLoginData, loginData);
    this.propertyChangeSupport.firePropertyChange(SERVER_PATH_PROPERTY, oldServerPath, getServerPath());
  }
View Full Code Here


      setLoginData(null);
      propertyChangeSupport.firePropertyChange(SERVER_PATH_PROPERTY, oldServerPath, null);
      return;
    }

    AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData(serverPath, reportDesignerContext);
    if (loginData == null)
    {
      loginData = new AuthenticationData(serverPath);
    }
    setLoginData(loginData);
    propertyChangeSupport.firePropertyChange(SERVER_PATH_PROPERTY, oldServerPath, serverPath);
  }
View Full Code Here

  {
    final GlobalAuthenticationStore authStore = designerContext.getGlobalAuthenticationStore();
    final String rurl = authStore.getMostRecentEntry();
    if (rurl != null)
    {
      final AuthenticationData loginData = getStoredLoginData(rurl, designerContext);
      if (loginData != null)
      {
        return loginData;
      }
    }

    final String user = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.ServerUser");
    final String pass = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.ServerPassword");
    final String url = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.PublishLocation");

    if (StringUtils.isEmpty(url))
    {
      return null;
    }
    return new AuthenticationData(url, user, pass, WorkspaceSettings.getInstance().getConnectionTimeout());
  }
View Full Code Here

    else
    {
      authStore = reportRenderContext.getAuthenticationStore();
    }

    final AuthenticationData data = authStore.getCredentials(baseUrl);
    if (data == null)
    {
      return null;
    }
    return data;
View Full Code Here

    {
      return null;
    }

    PublishSettings.getInstance().setRememberSettings(isRememberSettings());
    final AuthenticationData data = new AuthenticationData(url, getUsername(), getUserPassword(), getTimeout());
    data.setOption(PublishUtil.SERVER_VERSION, String.valueOf(getVersion()));
    return data;
  }
View Full Code Here

    }

    public void actionPerformed(final ActionEvent e)
    {
      final String serverURL = (String) urlCombo.getSelectedItem();
      final AuthenticationData config = getStoredLoginData(serverURL, context);
      if (config != null)
      {
        timeoutField.setValue(PublishUtil.getTimeout(config));
        userField.setText(config.getUsername());
        userPasswordField.setText(config.getPassword());
      }
    }
View Full Code Here

      {
        final AuthenticationStore authStore = activeContext.getAuthenticationStore();
        final String username = authStore.getUsername(path);
        final String password = authStore.getPassword(path);
        final int timeout = authStore.getIntOption(path, "timeout", 0);
        pentahoPathWrapper.setLoginData(new AuthenticationData(path, username, password, timeout));
      }
    }

    final Component c;
    final Object context = getXulDomContainer().getOuterContext();
View Full Code Here

  {
    final GlobalAuthenticationStore authStore = designerContext.getGlobalAuthenticationStore();
    final String rurl = authStore.getMostRecentEntry();
    if (rurl != null)
    {
      final AuthenticationData loginData = getStoredLoginData(rurl, designerContext);
      if (loginData != null)
      {
        return loginData;
      }
    }

    final String user = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.ServerUser");
    final String pass = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.ServerPassword");
    final String url = ReportDesignerBoot.getInstance().getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.designer.extensions.pentaho.repository.PublishLocation");

    if (StringUtils.isEmpty(url))
    {
      return null;
    }
    return new AuthenticationData(url, user, pass, WorkspaceSettings.getInstance().getConnectionTimeout());
  }
View Full Code Here

    else
    {
      authStore = reportRenderContext.getAuthenticationStore();
    }

    final AuthenticationData data = authStore.getCredentials(baseUrl);
    if (data == null)
    {
      return null;
    }
    return data;
View Full Code Here

    {
      return null;
    }

    PublishSettings.getInstance().setRememberSettings(isRememberSettings());
    return new AuthenticationData(url, getUsername(), getUserPassword(), getTimeout());
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.auth.AuthenticationData

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.