Package org.pentaho.platform.api.engine.security.userroledao

Examples of org.pentaho.platform.api.engine.security.userroledao.UserRoleInfo


    return userRoleListService.getRolesForUser( null, username );
  }

  @Override
  public UserRoleInfo getUserRoleInfo() {
    UserRoleInfo userRoleInfo = new UserRoleInfo();
    userRoleInfo.setRoles( getAllRoles() );
    userRoleInfo.setUsers( getAllUsers() );
    return userRoleInfo;
  }
View Full Code Here


  public void testGetUserRoleInfo() throws Exception {
    IUserRoleListWebService service = getUserRoleListWebService();

    try {

      UserRoleInfo userRoleInfo = service.getUserRoleInfo(); //$NON-NLS-1$
      assertNotNull( userRoleInfo );
      assertEquals( userRoleInfo.getRoles().size(), 7 );
      assertEquals( userRoleInfo.getUsers().size(), 4 );
    } catch ( Exception e ) {
      Assert.fail();
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.security.userroledao.UserRoleInfo

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.