Package mondrian.olap.Role

Examples of mondrian.olap.Role.HierarchyAccess


        final Connection connection =
            testContext.withRole("Role1,Role2").getConnection();
        final Cube cube =
            connection.getSchema()
                .lookupCube("Sales", true);
        final HierarchyAccess accessDetails =
            connection.getRole().getAccessDetails(
                cube.lookupHierarchy(
                    new Id.NameSegment("Customers", Id.Quoting.UNQUOTED),
                    false));
        final SchemaReader scr =
            cube.getSchemaReader(null).withLocus();
        assertEquals(
            true,
            accessDetails.hasInaccessibleDescendants(
                scr.getMemberByUniqueName(
                    Util.parseIdentifier("[Customers].[USA]"),
                    true)));
    }
View Full Code Here

TOP

Related Classes of mondrian.olap.Role.HierarchyAccess

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.