Package org.pentaho.platform.security.userroledao.ws

Examples of org.pentaho.platform.security.userroledao.ws.UserRoleSecurityInfo


    ( (BindingProvider) userRoleWebService ).getRequestContext().put( BindingProvider.USERNAME_PROPERTY, "admin" );
    ( (BindingProvider) userRoleWebService ).getRequestContext().put( BindingProvider.PASSWORD_PROPERTY, "password" );
    // accept cookies to maintain session on server
    ( (BindingProvider) userRoleWebService ).getRequestContext().put( BindingProvider.SESSION_MAINTAIN_PROPERTY, true );

    UserRoleSecurityInfo info = userRoleWebService.getUserRoleSecurityInfo();

    // should be Authenticated
    System.out.println( info.getDefaultRoles().get( 0 ) );

  }
View Full Code Here


      Assert.assertTrue( e.getMessage().indexOf( "ERROR_0001" ) >= 0 );
    }

    isAdmin = true;

    UserRoleSecurityInfo info = service.getUserRoleSecurityInfo();

    Assert.assertNotNull( info );
    Assert.assertEquals( 2, info.getRoles().size() );
    Assert.assertEquals( 2, info.getUsers().size() );
    Assert.assertEquals( 2, info.getAssignments().size() );
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.security.userroledao.ws.UserRoleSecurityInfo

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.