public interface DataRole extends RelationalObject
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_CREATE_TEMP_TABLES
The default value for the
create temporary tables property. |
static boolean |
DEFAULT_ANY_AUTHENTICATED
The default value for the
any authenticated property. |
static boolean |
DEFAULT_GRANT_ALL
The default value for the
grant all property. |
static KomodoType |
IDENTIFIER
Identifier of this object
|
static DataRole[] |
NO_DATA_ROLES
An empty array of data roles.
|
static TypeResolver<DataRole> |
RESOLVER
The resolver of a
DataRole . |
static int |
TYPE_ID
The type identifier.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, getTypeIdentifier, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final boolean DEFAULT_ALLOW_CREATE_TEMP_TABLES
create temporary tables
property. Value is false .static final boolean DEFAULT_ANY_AUTHENTICATED
any authenticated
property. Value is false .static final boolean DEFAULT_GRANT_ALL
grant all
property. Value is false .static final DataRole[] NO_DATA_ROLES
static final TypeResolver<DataRole> RESOLVER
DataRole
.Vdb getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
String[] addMappedRole(Repository.UnitOfWork transaction, String roleName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)roleName
- the name of the mapped role being added (cannot be empty)KException
- if an error occursPermission addPermission(Repository.UnitOfWork transaction, String permissionName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)permissionName
- the name of the permission being added (cannot be empty)null
)KException
- if an error occursString getDescription(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)description
property (can be empty)KException
- if an error occursString[] getMappedRoles(Repository.UnitOfWork transaction, String... namePatterns) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursPermission[] getPermissions(Repository.UnitOfWork transaction, String... namePatterns) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursboolean isAllowCreateTempTables(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if allows creating temporary tablesKException
- if an error occursDEFAULT_ALLOW_CREATE_TEMP_TABLES
boolean isAnyAuthenticated(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if any authenticatedKException
- if an error occursDEFAULT_ANY_AUTHENTICATED
boolean isGrantAll(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if grant allKException
- if an error occursDEFAULT_GRANT_ALL
String[] removeMappedRole(Repository.UnitOfWork transaction, String roleNameToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)roleNameToRemove
- the name of the role being removed (cannot be empty)null
but can be empty)KException
- if an error occursvoid removePermission(Repository.UnitOfWork transaction, String permissionToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)permissionToRemove
- the name of the permission being removed (cannot be empty)KException
- if an error occursvoid setAllowCreateTempTables(Repository.UnitOfWork transaction, boolean newAllowCreateTempTables) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowCreateTempTables
- the new value for the allow creating temporary tables
propertyKException
- if an error occursDEFAULT_ALLOW_CREATE_TEMP_TABLES
void setAnyAuthenticated(Repository.UnitOfWork transaction, boolean newAnyAuthenticated) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAnyAuthenticated
- the new value for the any authenticated
propertyKException
- if an error occursDEFAULT_ANY_AUTHENTICATED
void setDescription(Repository.UnitOfWork transaction, String newDescription) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDescription
- the new value of the description
propertyKException
- if an error occursvoid setGrantAll(Repository.UnitOfWork transaction, boolean newGrantAll) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newGrantAll
- the new value for the grant all
propertyKException
- if an error occursDEFAULT_GRANT_ALL
Copyright © 2013–2019. All rights reserved.