Skip to content

Commit a28deb4

Browse files
dbulahovstbischof
authored andcommitted
update tutorials formatting
Signed-off-by: dbulahov <[email protected]>
1 parent 46a9d8b commit a28deb4

8 files changed

+73
-71
lines changed

docs/cubeserver/tutorial/tutorial.access.cataloggrand.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ number: 2.4.4
88

99
This tutorial discusses roles with CatalogGrant.
1010

11-
roleAll role : use CatalogGrant access all; (access cube1)
12-
roleNone role : use CatalogGrant access none; (no access cube1)
13-
roleAllDimWithCubeGrand role : use CatalogGrant access all_dimensions; CubeGrant cube1 access all; cube2 access none (access cube1)
14-
roleAllDimWithoutCubeGrand role: use CatalogGrant access all_dimensions without cube grant (As result is 'no access'. For access need CubeGrant with custom or all);
11+
`roleAll` role : use CatalogGrant access `all`; (access `cube1`)<br />
12+
`roleNone` role : use CatalogGrant access `none`; (no access `cube1`)<br />
13+
`roleAllDimWithCubeGrand` role : use CatalogGrant access `all_dimensions`; CubeGrant `cube1` access all; `cube2` access none (access `cube1`)<br />
14+
`roleAllDimWithoutCubeGrand` role: use CatalogGrant access `all_dimensions` without cube grant (As result is 'no access'. For access need CubeGrant with `custom` or `all`)<br />;
1515

1616

1717
## Database Schema
1818

19-
The Database Schema contains the Fact table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
19+
The Database Schema contains the `Fact` table with two columns: `KEY` and `VALUE`. The `KEY` column is used as the discriminator in the the Level and Hierarchy definitions.
2020

2121

2222
```xml
@@ -31,7 +31,7 @@ The Database Schema contains the Fact table with two columns: KEY and VALUE. The
3131
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
3232
## Query
3333

34-
The Query is a simple TableQuery that selects all columns from the Fact table to use in in the hierarchy and in the cube for the measures.
34+
The Query is a simple TableQuery that selects all columns from the `Fact` table to use in in the hierarchy and in the cube for the measures.
3535

3636

3737
```xml
@@ -41,7 +41,7 @@ The Query is a simple TableQuery that selects all columns from the Fact table to
4141
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
4242
## Level1
4343

44-
This Example uses one simple Level1 bases on the KEY column.
44+
This Example uses one simple Level1 bases on the `KEY` column.
4545

4646

4747
```xml
@@ -87,7 +87,7 @@ The cube1 is defines by the DimensionConnector1 and the DimensionConnector2 and
8787
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
8888
## roleAll
8989

90-
The roleAll use CatalogGrant access all; (access cube1)
90+
The roleAll use CatalogGrant access `all`; (access `cube1`)
9191

9292

9393
```xml
@@ -99,7 +99,7 @@ The roleAll use CatalogGrant access all; (access cube1)
9999
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
100100
## roleNone
101101

102-
The roleNone use CatalogGrant access none; (no access cube1)
102+
The `roleNone` use CatalogGrant access `none`; (no access `cube1`)
103103

104104

105105
```xml
@@ -111,7 +111,7 @@ The roleNone use CatalogGrant access none; (no access cube1)
111111
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
112112
## roleAllDimWithCubeGrand
113113

114-
The roleAll use CatalogGrant access all_dimensions; CubeGrant access all; (access cube1)
114+
The `roleAllDimWithCubeGrand` use CatalogGrant access `all_dimensions`; CubeGrant access `all`; (access `cube1`)
115115

116116

117117
```xml
@@ -125,7 +125,7 @@ The roleAll use CatalogGrant access all_dimensions; CubeGrant access all; (acces
125125
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
126126
## roleAllDimWithoutCubeGrand
127127

128-
The roleAll use CatalogGrant access all_dimensions without CubeGrant; (no access cube1)
128+
The `roleAllDimWithoutCubeGrand` use CatalogGrant access `all_dimensions` without CubeGrant; (no access `cube1`)
129129

130130

131131
```xml
@@ -163,12 +163,12 @@ This files represent the complete definition of the catalog.
163163
<measures xsi:type="roma:SumMeasure" id="_measure_sum" name="Measure1" column="_column_fact_value"/>
164164
</measureGroups>
165165
</roma:PhysicalCube>
166-
<roma:AccessRole id="_accessRole_all" name="roleAll">
167-
<accessCatalogGrants catalogAccess="all"/>
168-
</roma:AccessRole>
169166
<roma:AccessRole id="_accessRole_none" name="roleNone">
170167
<accessCatalogGrants/>
171168
</roma:AccessRole>
169+
<roma:AccessRole id="_accessRole_all" name="roleAll">
170+
<accessCatalogGrants catalogAccess="all"/>
171+
</roma:AccessRole>
172172
<roma:AccessRole id="_accessRole_allDimWithoutCubeGrand" name="roleAllDimWithoutCubeGrand">
173173
<accessCatalogGrants catalogAccess="all_dimensions">
174174
<databaseSchemaGrants databaseSchemaAccess="all" databaseSchema="_databaseSchema_CatalogGrand"/>

docs/cubeserver/tutorial/tutorial.access.columngrand.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ number: 2.4.3
88

99
This tutorial discusses roles with ColumnGrant.
1010

11-
roleAll role: use TableGrant access all; (access all database all tables all columns)
12-
roleNone role: use TableGrant access none; (no access to database columns)
11+
roleAll role: use TableGrant access all; (access all database all tables all columns)<br />
12+
roleNone role: use TableGrant access none; (no access to database columns)<br />
1313

1414

1515
## Database Schema
1616

17-
The Database Schema contains the Fact table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
17+
The Database Schema contains the `Fact` table with two columns: `KEY` and `VALUE`. The `KEY` column is used as the discriminator in the the Level and Hierarchy definitions.
1818

1919

2020
```xml
@@ -29,7 +29,7 @@ The Database Schema contains the Fact table with two columns: KEY and VALUE. The
2929
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
3030
## Query
3131

32-
The Query is a simple TableQuery that selects all columns from the Fact table to use in in the hierarchy and in the cube for the measures.
32+
The Query is a simple TableQuery that selects all columns from the `Fact` table to use in in the hierarchy and in the cube for the measures.
3333

3434

3535
```xml
@@ -39,7 +39,7 @@ The Query is a simple TableQuery that selects all columns from the Fact table to
3939
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
4040
## Cube1 with access all
4141

42-
The cube1 is defines by the DimensionConnector1 and the DimensionConnector2 and the MeasureGroup with measure with aggregation sum.
42+
The `cube1` is defines by the DimensionConnector1 and the DimensionConnector2 and the MeasureGroup with measure with aggregation sum.
4343

4444

4545
```xml
@@ -53,7 +53,7 @@ The cube1 is defines by the DimensionConnector1 and the DimensionConnector2 and
5353
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
5454
## roleAll
5555

56-
The roleAll use TableGrant access all; (access all tables columns)
56+
The `roleAll` use TableGrant access `all`; (access all tables columns)
5757

5858

5959
```xml
@@ -73,7 +73,7 @@ The roleAll use TableGrant access all; (access all tables columns)
7373
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
7474
## roleNone
7575

76-
The roleNone use ColumnGrant access none; (no access to all tables columns)
76+
The `roleNone` use ColumnGrant access `none`; (no access to all tables columns)
7777

7878

7979
```xml
@@ -111,23 +111,23 @@ This files represent the complete definition of the catalog.
111111
<measures xsi:type="roma:SumMeasure" id="_measure_sum" name="Measure1" column="_column_fact_value"/>
112112
</measureGroups>
113113
</roma:PhysicalCube>
114-
<roma:AccessRole id="_accessRole_none" name="roleNone">
114+
<roma:AccessRole id="_accessRole_all" name="roleAll">
115115
<accessCatalogGrants catalogAccess="all">
116116
<cubeGrants cubeAccess="all" cube="_cube_main"/>
117117
<databaseSchemaGrants databaseSchemaAccess="custom" databaseSchema="_databaseSchema_ColumnGrand">
118118
<tableGrants tableAccess="custom" table="_table_fact">
119-
<columnGrants column="_column_fact_value"/>
119+
<columnGrants columnAccess="all" column="_column_fact_value"/>
120+
<columnGrants columnAccess="all" column="_column_fact_key"/>
120121
</tableGrants>
121122
</databaseSchemaGrants>
122123
</accessCatalogGrants>
123124
</roma:AccessRole>
124-
<roma:AccessRole id="_accessRole_all" name="roleAll">
125+
<roma:AccessRole id="_accessRole_none" name="roleNone">
125126
<accessCatalogGrants catalogAccess="all">
126127
<cubeGrants cubeAccess="all" cube="_cube_main"/>
127128
<databaseSchemaGrants databaseSchemaAccess="custom" databaseSchema="_databaseSchema_ColumnGrand">
128129
<tableGrants tableAccess="custom" table="_table_fact">
129-
<columnGrants columnAccess="all" column="_column_fact_value"/>
130-
<columnGrants columnAccess="all" column="_column_fact_key"/>
130+
<columnGrants column="_column_fact_value"/>
131131
</tableGrants>
132132
</databaseSchemaGrants>
133133
</accessCatalogGrants>

docs/cubeserver/tutorial/tutorial.access.cubegrand.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@ This files represent the complete definition of the catalog.
131131
<roma:TableQuery id="_query_factQuery" table="_table_fact"/>
132132
<roma:Level id="_level_Level1" name="Level1" column="_column_fact_key"/>
133133
<roma:StandardDimension id="_dimension_Dimension1" name="Dimension1" hierarchies="_hierarchy_Hierarchy1"/>
134+
<roma:PhysicalCube id="_cube_Cube2" name="Cube2" query="_query_factQuery">
135+
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension1" overrideDimensionName="Dimension1" id="_dimensionConnector_dimension1"/>
136+
<measureGroups/>
137+
</roma:PhysicalCube>
134138
<roma:PhysicalCube id="_cube_Cube1" name="Cube1" query="_query_factQuery">
135139
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension1" overrideDimensionName="Dimension1" id="_dimensionConnector_dimension11"/>
136140
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension1" overrideDimensionName="Dimension2" id="_dimensionConnector_dimension12"/>
137141
<measureGroups>
138142
<measures xsi:type="roma:SumMeasure" id="_measure_Measure1" name="Measure1" column="_column_fact_value"/>
139143
</measureGroups>
140144
</roma:PhysicalCube>
141-
<roma:PhysicalCube id="_cube_Cube2" name="Cube2" query="_query_factQuery">
142-
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension1" overrideDimensionName="Dimension1" id="_dimensionConnector_dimension1"/>
143-
<measureGroups/>
144-
</roma:PhysicalCube>
145145
<roma:AccessRole id="_accessRole_role1" name="role1">
146146
<accessCatalogGrants catalogAccess="all_dimensions">
147147
<cubeGrants cubeAccess="all" cube="_cube_Cube1"/>

docs/cubeserver/tutorial/tutorial.access.databaseschemagrand.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,15 @@ number: 2.4.1
66
---
77
# Daanse Tutorial - Access Database Schema Grant
88

9-
Cube with examples of roles with SchemaGrant all_dimensions
10-
Cube1 - all access
11-
Cube2 - no access
12-
13-
14-
# Cube with role access database schema
15-
169
This tutorial discusses roles with with DatabaseSchemaGrant.
1710

18-
roleAll role : use DatabaseSchemaGrant access all; (access all database)
19-
roleNone role: use CatalogGrant access none; (no access to database)
11+
`roleAll` role : use DatabaseSchemaGrant access `all`; (access all database)<br />
12+
`roleNone` role: use CatalogGrant access `none`; (no access to database)<br />
2013

2114

2215
## Database Schema
2316

24-
The Database Schema contains the Fact table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
17+
The Database Schema contains the `Fact` table with two columns: `KEY` and `VALUE`. The `KEY` column is used as the discriminator in the the Level and Hierarchy definitions.
2518

2619

2720
```xml
@@ -60,7 +53,7 @@ The cube1 is defines by the DimensionConnector1 and the DimensionConnector2 and
6053
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
6154
## roleAll
6255

63-
The roleAll use DatabaseSchemaGrant access all; (access all database)
56+
The `roleAll` use DatabaseSchemaGrant access `all`; (access all database)
6457

6558

6659
```xml
@@ -75,7 +68,7 @@ The roleAll use DatabaseSchemaGrant access all; (access all database)
7568
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
7669
## roleNone
7770

78-
The roleNone use DatabaseSchemaGrant access none; (no access to database)
71+
The `roleNone` use DatabaseSchemaGrant access `none`; (no access to database)
7972

8073

8174
```xml

docs/cubeserver/tutorial/tutorial.access.dimensiongrand.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ number: 2.4.6
88

99
This tutorial discusses roles with DimensionGrant.
1010

11-
role1 role: use DimensionGrant access to Dimension1 and not access to Dimension2 of cube1
11+
`role1` role: use DimensionGrant access to `Dimension1` and not access to `Dimension2` of `cube1`
1212

1313

1414

1515
## Database Schema
1616

17-
The Database Schema contains the Fact table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
17+
The Database Schema contains the `Fact` table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
1818

1919

2020
```xml
@@ -29,7 +29,7 @@ The Database Schema contains the Fact table with two columns: KEY and VALUE. The
2929
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
3030
## Query
3131

32-
The Query is a simple TableQuery that selects all columns from the Fact table to use in in the hierarchy and in the cube for the measures.
32+
The Query is a simple TableQuery that selects all columns from the `Fact` table to use in in the hierarchy and in the cube for the measures.
3333

3434

3535
```xml
@@ -85,7 +85,7 @@ The cube1 is defines by the DimensionConnector1 and the DimensionConnector2 and
8585
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
8686
## Role1
8787

88-
The role1 use CatalogGrant access all_dimensions; CubeGrant cube1 access all; cube2 access none (access cube1)
88+
The `role1` use CatalogGrant access `all_dimensions`; CubeGrant cube1 access `all`; cube2 access `none` (access cube1)
8989

9090

9191
```xml
@@ -119,10 +119,10 @@ This files represent the complete definition of the catalog.
119119
</tables>
120120
</roma:DatabaseSchema>
121121
<roma:TableQuery id="_query_factQuery" table="_table_fact"/>
122-
<roma:Level id="_level_Level1" name="Level1" column="_column_fact_key"/>
123122
<roma:Level id="_level_Level2" name="Level2" column="_column_fact_key"/>
124-
<roma:StandardDimension id="_dimension_Dimension1" name="Dimension1" hierarchies="_hierarchy_Hierarchy1"/>
123+
<roma:Level id="_level_Level1" name="Level1" column="_column_fact_key"/>
125124
<roma:StandardDimension id="_dimension_Dimension2" name="Dimension2" hierarchies="_hierarchy_Hierarchy2"/>
125+
<roma:StandardDimension id="_dimension_Dimension1" name="Dimension1" hierarchies="_hierarchy_Hierarchy1"/>
126126
<roma:PhysicalCube id="_cube_Cube1" name="Cube1" query="_query_factQuery">
127127
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension1" overrideDimensionName="Dimension1" id="_dimensionConnector_dimension1"/>
128128
<dimensionConnectors foreignKey="_column_fact_key" dimension="_dimension_Dimension2" overrideDimensionName="Dimension2" id="_dimensionConnector_dimension2"/>

docs/cubeserver/tutorial/tutorial.access.hierarchygrand.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ number: 2.4.7
88

99
This tutorial discusses role with HierarchyGrant
1010

11-
role1 role: use HierarchyGrant hierarchy1 access all hierarchy2 access none;
11+
`role1` role: use HierarchyGrant hierarchy1 access `all` hierarchy2 access `none`;
1212

1313

1414
## Database Schema
1515

16-
The Database Schema contains the Fact table with two columns: KEY and VALUE. The KEY column is used as the discriminator in the the Level and Hierarchy definitions.
16+
The Database Schema contains the `Fact` table with two columns: `KEY` and `VALUE`. The `KEY` column is used as the discriminator in the the Level and Hierarchy definitions.
1717

1818

1919
```xml
@@ -28,7 +28,7 @@ The Database Schema contains the Fact table with two columns: KEY and VALUE. The
2828
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
2929
## Query
3030

31-
The Query is a simple TableQuery that selects all columns from the Fact table to use in in the hierarchy and in the cube for the measures.
31+
The Query is a simple TableQuery that selects all columns from the `Fact` table to use in in the hierarchy and in the cube for the measures.
3232

3333

3434
```xml
@@ -83,8 +83,11 @@ The cube1 is defines by the DimensionConnector1 and the MeasureGroup with measur
8383
*<small>Note: This is only a symbolic example. For the exact definition, see the [Definition](#definition) section.</small>*
8484
## Role1
8585

86-
The role1 use CatalogGrant access all; CubeGrant cube1 access all; dimensionGrant dimension1 access all;
87-
hierarchyGrant hierarchy1 access custom with member grants [Dimension1].[A] -all, [Dimension1].[B] -none, [Dimension1].[C] -none;
86+
The `role1` use CatalogGrant access `all`; CubeGrant cube1 access `all`; dimensionGrant dimension1 access `all`;
87+
hierarchyGrant hierarchy1 access custom with member grants<br />
88+
[Dimension1].[A] -all,<br />
89+
[Dimension1].[B] -none,<br />
90+
[Dimension1].[C] -none;<br />
8891
(Cube1 - access to "A" Cube2 - no access)
8992

9093

@@ -109,8 +112,8 @@ This files represent the complete definition of the catalog.
109112
```xml
110113
<?xml version="1.0" encoding="UTF-8"?>
111114
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:roma="https://www.daanse.org/spec/org.eclipse.daanse.rolap.mapping">
112-
<roma:ExplicitHierarchy id="_hierarchy_Hierarchy1" name="Hierarchy1" hasAll="false" primaryKey="_column_fact_key" query="_query_factQuery" levels="_level_Level1"/>
113115
<roma:ExplicitHierarchy id="_hierarchy_Hierarchy2" name="Hierarchy1" hasAll="false" primaryKey="_column_fact_key" query="_query_factQuery" levels="_level_Level2"/>
116+
<roma:ExplicitHierarchy id="_hierarchy_Hierarchy1" name="Hierarchy1" hasAll="false" primaryKey="_column_fact_key" query="_query_factQuery" levels="_level_Level1"/>
114117
<roma:Catalog description="Access control with hierarchy-level grants" name="Daanse Tutorial - Access Hierarchy Grant" cubes="_cube_Cube1" accessRoles="_accessRole_role1" dbschemas="_databaseSchema_HierarchyGrand"/>
115118
<roma:DatabaseSchema id="_databaseSchema_HierarchyGrand">
116119
<tables xsi:type="roma:PhysicalTable" id="_table_fact" name="Fact">

0 commit comments

Comments
 (0)