use of org.pentaho.platform.api.engine.security.userroledao.UserRoleInfo in project pentaho-platform by pentaho.
the class DefaultUserRoleListWebService method getUserRoleInfo.
@Override
public UserRoleInfo getUserRoleInfo() {
UserRoleInfo userRoleInfo = new UserRoleInfo();
userRoleInfo.setRoles(getAllRoles());
userRoleInfo.setUsers(getAllUsers());
return userRoleInfo;
}
use of org.pentaho.platform.api.engine.security.userroledao.UserRoleInfo in project pentaho-platform by pentaho.
the class UserDetailsRoleListWebServiceBase method testGetUserRoleInfo.
@Test
public void testGetUserRoleInfo() throws Exception {
IUserRoleListWebService service = getUserRoleListWebService();
try {
// $NON-NLS-1$
UserRoleInfo userRoleInfo = service.getUserRoleInfo();
assertNotNull(userRoleInfo);
assertEquals(userRoleInfo.getRoles().size(), 7);
assertEquals(userRoleInfo.getUsers().size(), 4);
} catch (Exception e) {
Assert.fail();
}
}
Aggregations