public class ProfileImpl extends RelationalObjectImpl implements Profile
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_PROFILES, 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 |
---|
ProfileImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
Modifier and Type | Method and Description |
---|---|
GitRepository |
addGitRepository(Repository.UnitOfWork transaction,
String repoName,
URL url,
String user,
String password) |
ViewEditorState |
addViewEditorState(Repository.UnitOfWork transaction,
String stateId) |
KomodoObject[] |
getChildren(Repository.UnitOfWork transaction,
String... namePatterns) |
KomodoType[] |
getChildTypes() |
GitRepository[] |
getGitRepositories(Repository.UnitOfWork transaction,
String... namePatterns) |
KomodoType |
getTypeIdentifier(Repository.UnitOfWork uow) |
ViewEditorState[] |
getViewEditorStates(Repository.UnitOfWork transaction,
String... namePatterns) |
boolean |
hasChild(Repository.UnitOfWork transaction,
String name) |
void |
removeGitRepository(Repository.UnitOfWork transaction,
String gitRepoToRemove) |
void |
removeViewEditorState(Repository.UnitOfWork transaction,
String viewEditorStateId) |
getChild, getChild, getChildrenOfType, getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasChildren, 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, getTypeId, 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, getChild, getChild, getChildrenOfType, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getParent, getRepository
public ProfileImpl(Repository.UnitOfWork uow, Repository repository, String path) 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
)path
- the path (cannot be empty)KException
- if an error occurs or if node at specified path is not a modelpublic KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
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 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 KomodoType[] getChildTypes()
getChildTypes
in interface KomodoObject
getChildTypes
in class ObjectImpl
ObjectImpl.getChildTypes()
public GitRepository[] getGitRepositories(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getGitRepositories
in interface Profile
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 occursorg.komodo.relational.profile.GitRepository#getGitRepositories(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public GitRepository addGitRepository(Repository.UnitOfWork transaction, String repoName, URL url, String user, String password) throws KException
addGitRepository
in interface Profile
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repoName
- the name of the git repository being added (cannot be empty)url
- the url of the git repositoryuser
- the user name required to connect to the repositorypassword
- the password required to connect to the repositorynull
)KException
- if an error occurspublic void removeGitRepository(Repository.UnitOfWork transaction, String gitRepoToRemove) throws KException
removeGitRepository
in interface Profile
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)gitRepoToRemove
- the name of the git repository being removed (cannot be empty)KException
- if an error occurspublic ViewEditorState addViewEditorState(Repository.UnitOfWork transaction, String stateId) throws KException
addViewEditorState
in interface Profile
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)stateId
- the id of the view editor statenull
)KException
- if an error occurspublic ViewEditorState[] getViewEditorStates(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getViewEditorStates
in interface Profile
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 occurspublic void removeViewEditorState(Repository.UnitOfWork transaction, String viewEditorStateId) throws KException
removeViewEditorState
in interface Profile
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)viewEditorStateId
- the id of the viewEditorState being removed (cannot be empty)KException
- if an error occursCopyright © 2013–2019. All rights reserved.