public final class DataRoleImpl extends RelationalObjectImpl implements DataRole
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
DEFAULT_ALLOW_CREATE_TEMP_TABLES, DEFAULT_ANY_AUTHENTICATED, DEFAULT_GRANT_ALL, IDENTIFIER, NO_DATA_ROLES, RESOLVER, TYPE_ID
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
DataRoleImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
getDescriptor, getDescriptors, getFilters, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasDescriptor, hasProperty, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFilters, setFilters
accept, addChild, addDescriptor, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
public DataRoleImpl(Repository.UnitOfWork uow, Repository repository, String workspacePath) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repository where the relational object exists (cannot be null
)workspacePath
- the workspace path (cannot be empty)KException
- if an error occurspublic KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
public String[] addMappedRole(Repository.UnitOfWork transaction, String roleNameToAdd) throws KException
addMappedRole
in interface DataRole
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)roleNameToAdd
- the name of the mapped role being added (cannot be empty)KException
- if an error occursDataRole.addMappedRole(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public Permission addPermission(Repository.UnitOfWork transaction, String permissionName) throws KException
addPermission
in interface DataRole
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 occursDataRole.addPermission(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public KomodoObject getChild(Repository.UnitOfWork transaction, String name) throws KException
getChild
in interface KomodoObject
getChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public KomodoObject getChild(Repository.UnitOfWork transaction, String name, String typeName) throws KException
getChild
in interface KomodoObject
getChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String, java.lang.String)
public KomodoObject[] getChildren(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getChildren
in interface KomodoObject
getChildren
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChildren(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public KomodoObject[] getChildrenOfType(Repository.UnitOfWork transaction, String type, String... namePatterns) throws KException
getChildrenOfType
in interface KomodoObject
getChildrenOfType
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChildrenOfType(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String[])
public KomodoType[] getChildTypes()
getChildTypes
in interface KomodoObject
getChildTypes
in class ObjectImpl
ObjectImpl.getChildTypes()
public String getDescription(Repository.UnitOfWork uow) throws KException
getDescription
in interface DataRole
uow
- 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 occursDataRole.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] getMappedRoles(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getMappedRoles
in interface DataRole
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 occursDataRole.getMappedRoles(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public Vdb getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface DataRole
getParent
in interface KNode
getParent
in class RelationalObjectImpl
KException
RelationalObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public Permission[] getPermissions(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getPermissions
in interface DataRole
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 occursDataRole.getPermissions(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public boolean hasChild(Repository.UnitOfWork transaction, String name) throws KException
hasChild
in interface KomodoObject
hasChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean hasChild(Repository.UnitOfWork transaction, String name, String typeName) throws KException
hasChild
in interface KomodoObject
hasChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String)
public boolean hasChildren(Repository.UnitOfWork transaction) throws KException
hasChildren
in interface KomodoObject
hasChildren
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChildren(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isAllowCreateTempTables(Repository.UnitOfWork uow) throws KException
isAllowCreateTempTables
in interface DataRole
uow
- 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 occursDataRole.isAllowCreateTempTables(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isAnyAuthenticated(Repository.UnitOfWork uow) throws KException
isAnyAuthenticated
in interface DataRole
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if any authenticatedKException
- if an error occursDataRole.isAnyAuthenticated(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isGrantAll(Repository.UnitOfWork uow) throws KException
isGrantAll
in interface DataRole
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if grant allKException
- if an error occursDataRole.isGrantAll(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] removeMappedRole(Repository.UnitOfWork transaction, String roleNameToRemove) throws KException
removeMappedRole
in interface DataRole
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 occursDataRole.removeMappedRole(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void removePermission(Repository.UnitOfWork transaction, String permissionToRemove) throws KException
removePermission
in interface DataRole
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 occursDataRole.removePermission(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setAllowCreateTempTables(Repository.UnitOfWork uow, boolean newAllowCreateTempTables) throws KException
setAllowCreateTempTables
in interface DataRole
uow
- 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 occursDataRole.setAllowCreateTempTables(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setAnyAuthenticated(Repository.UnitOfWork uow, boolean newAnyAuthenticated) throws KException
setAnyAuthenticated
in interface DataRole
uow
- 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 occursDataRole.setAnyAuthenticated(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setDescription(Repository.UnitOfWork uow, String newDescription) throws KException
setDescription
in interface DataRole
uow
- 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 occursDataRole.setDescription(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setGrantAll(Repository.UnitOfWork uow, boolean newGrantAll) throws KException
setGrantAll
in interface DataRole
uow
- 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 occursDataRole.setGrantAll(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
Copyright © 2013–2019. All rights reserved.