Package org.pentaho.platform.security.userroledao

Examples of org.pentaho.platform.security.userroledao.PentahoUser


    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( null, USER_6, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( Exception ex ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( mainTenant_1, null, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( mainTenant_1, UNKNOWN_USER, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }
View Full Code Here


    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( null, USER_6, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( Exception ex ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( mainTenant_1, null, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }

    try {
      pentahoUser = new PentahoUser( mainTenant_1, UNKNOWN_USER, PASSWORD_6, USER_DESCRIPTION_6, true );
      userRoleDaoProxy.deleteUser( pentahoUser );
      fail( "Exception not thrown" );
    } catch ( NotFoundException e ) {
      // Expected exception
    }
View Full Code Here

      if ( tenant == null ) {
        tenant = getDefaultTenant();
      }
      IPentahoUser user = getUser( tenant, username );
      if ( user == null ) {
        user = new PentahoUser( tenant, username, password, description, true );
        users.add( user );
        setUserRoles( tenant, username, roleNames );
      }
      return user;
    }
View Full Code Here

    if ( credentials instanceof CryptedSimpleCredentials ) {
      password = new String( ( (CryptedSimpleCredentials) credentials ).getPassword() );
    }

    pentahoUser =
        new PentahoUser( tenantedUserNameUtils.getTenant( jackrabbitUser.getID() ), tenantedUserNameUtils
            .getPrincipleName( jackrabbitUser.getID() ), password, description, !jackrabbitUser.isDisabled() );

    userCache.put( jackrabbitUser.getID(), pentahoUser );
    return pentahoUser;
  }
View Full Code Here

   * <code>user</code> is unmodified.
   */
  public static IPentahoUser syncUsers( IPentahoUser user, ProxyPentahoUser proxyUser ) {
    IPentahoUser syncedUser = user;
    if ( syncedUser == null ) {
      syncedUser = new PentahoUser( proxyUser.getName() );
    }
    syncedUser.setDescription( proxyUser.getDescription() );

    // PPP-1527: Password is never sent back to the UI. It always shows as blank. If the user leaves it blank,
    // password is not changed. If the user enters a value, set the password.
View Full Code Here

TOP

Related Classes of org.pentaho.platform.security.userroledao.PentahoUser

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.