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

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


  public static AuthenticationData getStoredLoginData(final String baseUrl,
                                                      final ReportDesignerContext context)
  {
    final ReportDocumentContext reportRenderContext = context.getActiveContext();
    final AuthenticationStore authStore;
    if (reportRenderContext == null)
    {
      authStore = context.getGlobalAuthenticationStore();
    }
    else
    {
      authStore = reportRenderContext.getAuthenticationStore();
    }

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


    if (pentahoPathWrapper.getLoginData() == null)
    {
      final String path = getModel().getDrillDownPath();
      if (path != null)
      {
        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;
View Full Code Here

    if (loginDialog != null && loginDialog.isRememberSettings())
    {
      final ReportDocumentContext reportRenderContext = designerContext.getActiveContext();
      if (reportRenderContext != null)
      {
        final AuthenticationStore store = reportRenderContext.getAuthenticationStore();
        store.add(loginData, true);
      }
      else
      {
        designerContext.getGlobalAuthenticationStore().add(loginData, true);
      }
View Full Code Here

    if (loginDialog != null && loginDialog.isRememberSettings())
    {
      final ReportRenderContext reportRenderContext = designerContext.getActiveContext();
      if (reportRenderContext != null)
      {
        final AuthenticationStore store = reportRenderContext.getAuthenticationStore();
        store.add(loginData, true);
      }
      else
      {
        designerContext.getGlobalAuthenticationStore().add(loginData, true);
      }
View Full Code Here

  public static AuthenticationData getStoredLoginData(final String baseUrl,
                                                      final ReportDesignerContext context)
  {
    final ReportRenderContext reportRenderContext = context.getActiveContext();
    final AuthenticationStore authStore;
    if (reportRenderContext == null)
    {
      authStore = context.getGlobalAuthenticationStore();
    }
    else
    {
      authStore = reportRenderContext.getAuthenticationStore();
    }

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

    {
      final ReportRenderContext reportRenderContext = activeContext;
      final String path = getModel().getDrillDownPath();
      if (path != null)
      {
        final AuthenticationStore authStore = reportRenderContext.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;
View Full Code Here

TOP

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

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.