public interface Permission extends RelationalObject
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_ALTER
The default value indicating if this permission allows alter.
|
static boolean |
DEFAULT_ALLOW_CREATE
The default value indicating if this permission allows create.
|
static boolean |
DEFAULT_ALLOW_DELETE
The default value indicating if this permission allows delete.
|
static boolean |
DEFAULT_ALLOW_EXECUTE
The default value indicating if this permission allows execute.
|
static boolean |
DEFAULT_ALLOW_LANGUAGE
The default value indicating if this permission allows language.
|
static boolean |
DEFAULT_ALLOW_READ
The default value indicating if this permission allows read.
|
static boolean |
DEFAULT_ALLOW_UPDATE
The default value indicating if this permission allows update.
|
static KomodoType |
IDENTIFIER
Identifier of this object
|
static Permission[] |
NO_PERMISSIONS
An empty array of permissions.
|
static TypeResolver<Permission> |
RESOLVER
The resolver of a
Permission . |
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_ALTER
static final boolean DEFAULT_ALLOW_CREATE
static final boolean DEFAULT_ALLOW_DELETE
static final boolean DEFAULT_ALLOW_EXECUTE
static final boolean DEFAULT_ALLOW_LANGUAGE
static final boolean DEFAULT_ALLOW_READ
static final boolean DEFAULT_ALLOW_UPDATE
static final Permission[] NO_PERMISSIONS
static final TypeResolver<Permission> RESOLVER
Permission
.DataRole getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
Condition addCondition(Repository.UnitOfWork transaction, String conditionName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)conditionName
- the name of the condition being added (cannot be empty)null
)KException
- if an error occursMask addMask(Repository.UnitOfWork transaction, String maskName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)maskName
- the name of the mask being added (cannot be empty)null
)KException
- if an error occursCondition[] getConditions(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 occursMask[] getMasks(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 occursString getResourceName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursboolean isAllowAlter(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 this permission allows alterKException
- if an error occursDEFAULT_ALLOW_ALTER
boolean isAllowCreate(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 this permission allows createKException
- if an error occursDEFAULT_ALLOW_CREATE
boolean isAllowDelete(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 this permission allows deleteKException
- if an error occursDEFAULT_ALLOW_DELETE
boolean isAllowExecute(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 this permission allows executeKException
- if an error occursDEFAULT_ALLOW_EXECUTE
boolean isAllowLanguage(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 this permission allows languageKException
- if an error occursDEFAULT_ALLOW_LANGUAGE
boolean isAllowRead(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 this permission allows readKException
- if an error occursDEFAULT_ALLOW_READ
boolean isAllowUpdate(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 this permission allows updateKException
- if an error occursDEFAULT_ALLOW_UPDATE
void removeCondition(Repository.UnitOfWork transaction, String conditionToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)conditionToRemove
- the name of the condition being removed (cannot be empty)KException
- if an error occursvoid removeMask(Repository.UnitOfWork transaction, String maskToRemove) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)maskToRemove
- the name of the mask being removed (cannot be empty)KException
- if an error occursvoid setAllowAlter(Repository.UnitOfWork transaction, boolean newAllowAlter) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowAlter
- the new value for the allow alter
propertyKException
- if an error occursDEFAULT_ALLOW_ALTER
void setAllowCreate(Repository.UnitOfWork transaction, boolean newAllowCreate) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowCreate
- the new value for the allow create
propertyKException
- if an error occursDEFAULT_ALLOW_CREATE
void setAllowDelete(Repository.UnitOfWork transaction, boolean newAllowDelete) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowDelete
- the new value for the allow delete
propertyKException
- if an error occursDEFAULT_ALLOW_DELETE
void setAllowExecute(Repository.UnitOfWork transaction, boolean newAllowExecute) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowExecute
- the new value for the allow execute
propertyKException
- if an error occursDEFAULT_ALLOW_EXECUTE
void setAllowLanguage(Repository.UnitOfWork transaction, boolean newAllowLanguage) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowLanguage
- the new value for the allow language
propertyKException
- if an error occursDEFAULT_ALLOW_LANGUAGE
void setAllowRead(Repository.UnitOfWork transaction, boolean newAllowRead) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowRead
- the new value for the allow read
propertyKException
- if an error occursDEFAULT_ALLOW_READ
void setAllowUpdate(Repository.UnitOfWork transaction, boolean newAllowUpdate) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAllowUpdate
- the new value for the allow update
propertyKException
- if an error occursDEFAULT_ALLOW_UPDATE
Copyright © 2013–2019. All rights reserved.