Package com.dtsx.astra.sdk.org.domain
Class RoleDefinition.RoleDefinitionBuilder
java.lang.Object
com.dtsx.astra.sdk.org.domain.RoleDefinition.RoleDefinitionBuilder
- Enclosing class:
- RoleDefinition
Pattern builder for class
RoleDefinition
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvide addPermision.Add resources.Add all resources.Add resources for the databaseAdd resources.Add resources.addResourceAllTablesKeyspaceForDatabase
(String dbName, String keyspace) Add resources.addResourceDatabase
(String dbName) Provide dbName.addResourceKeyspaceForDatabase
(String dbName, String keyspace) Add keyspace database.addResourceTable
(String dbName, String keyspace, String tableName) Add table resources.build()
Create the role definition.Provide description.Provide name.Provide organizationid.
-
Constructor Details
-
RoleDefinitionBuilder
Role builder.- Parameters:
orgId
- organization id.
-
-
Method Details
-
organizationId
Provide organizationid.- Parameters:
o
- identifier- Returns:
- self reference
-
name
Provide name.- Parameters:
n
- name- Returns:
- self reference
-
description
Provide description.- Parameters:
n
- description- Returns:
- self reference
-
addPermision
Provide addPermision.- Parameters:
p
- addPermision- Returns:
- self reference
-
addResourceDatabase
Provide dbName.- Parameters:
dbName
- database name- Returns:
- self reference
-
addResourceAllDatabases
Add resources.- Returns:
- self reference
-
addResourceKeyspaceForDatabase
public RoleDefinition.RoleDefinitionBuilder addResourceKeyspaceForDatabase(String dbName, String keyspace) Add keyspace database.- Parameters:
dbName
- db namekeyspace
- keyspace name- Returns:
- self reference
-
addResourceAllKeyspaces
Add all resources.- Returns:
- get all resources
-
addResourceAllKeyspacesForDatabase
Add resources for the database- Parameters:
dbName
- db name- Returns:
- self reference
-
addResourceTable
public RoleDefinition.RoleDefinitionBuilder addResourceTable(String dbName, String keyspace, String tableName) Add table resources.- Parameters:
dbName
- database namekeyspace
- keyspace nametableName
- table name- Returns:
- self reference
-
addResourceAllTablesKeyspaceForDatabase
public RoleDefinition.RoleDefinitionBuilder addResourceAllTablesKeyspaceForDatabase(String dbName, String keyspace) Add resources.- Parameters:
dbName
- database namekeyspace
- keyspace name- Returns:
- self reference
-
addResourceAllTablesForDatabase
Add resources.- Parameters:
dbName
- database name- Returns:
- self reference
-
addResourceAllTables
Add resources.- Returns:
- self reference
-
build
Create the role definition.- Returns:
- target role definition
-