public class LocalRepository extends RepositoryImpl
Modifier and Type | Class and Description |
---|---|
static class |
LocalRepository.LocalRepositoryId
Identifier for the local repository
|
RepositoryImpl.UnitOfWorkImpl
Repository.Id, Repository.KeywordCriteria, Repository.OperationType, Repository.State, Repository.Type, Repository.UnitOfWork, Repository.UnitOfWorkListener
Modifier and Type | Field and Description |
---|---|
static LocalRepository.LocalRepositoryId |
DEFAULT_LOCAL_REPOSITORY_ID
The default local repository identifier used for the production komodo engine.
|
ENV_ROOT, kEngine, KOMODO_ROOT, LIBRARY_ROOT, LOGGER, PROFILES_ROOT, REPO_ROOT, SEARCHES_ROOT, VALIDATION_ROOT
SYSTEM_USER
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 |
---|
LocalRepository()
Create an instance of local repository using default configuration file and workspace name.
|
LocalRepository(LocalRepository.LocalRepositoryId repositoryId)
Create an instance of local repository.
|
LocalRepository(URL configPathUrl,
String workspaceName)
Create an instance if a local repository using the specified configuration file.
|
Modifier and Type | Method and Description |
---|---|
Repository.UnitOfWork |
createTransaction(String userName,
String name,
boolean rollbackOnly,
Repository.UnitOfWorkListener callback,
String repoUser) |
boolean |
equals(Object obj) |
KObjectFactory |
getObjectFactory() |
KPropertyFactory |
getPropertyFactory() |
protected KQueryManager |
getQueryManager() |
Repository.State |
getState() |
int |
hashCode() |
void |
notify(RepositoryClientEvent event) |
boolean |
ping() |
add, addClient, addObserver, errorObservers, getFromWorkspace, getId, getKEngine, getMetadataInstance, getReservedPaths, getType, getUsingId, getValidationManager, isReservedPath, isSystemTx, komodoEnvironment, komodoLibrary, komodoProfile, komodoProfilePath, komodoProfiles, komodoRoot, komodoSearches, komodoValidationRoot, komodoWorkspace, komodoWorkspacePath, notifyObservers, provision, provision, publish, query, registerKEngine, remove, removeClient, removeObserver, retrieve, searchByKeyword, searchByPath, searchByType, unpublish
public static final LocalRepository.LocalRepositoryId DEFAULT_LOCAL_REPOSITORY_ID
public LocalRepository(URL configPathUrl, String workspaceName)
configPathUrl
- the URL of the configuration file (cannot be empty)workspaceName
- the name of the repository workspace in the configuration file (cannot be empty)public LocalRepository(LocalRepository.LocalRepositoryId repositoryId)
repositoryId
- repository configuration of the instancepublic LocalRepository()
public KObjectFactory getObjectFactory()
getObjectFactory
in interface Repository
getObjectFactory
in class RepositoryImpl
public KPropertyFactory getPropertyFactory()
getPropertyFactory
in interface Repository
getPropertyFactory
in class RepositoryImpl
protected KQueryManager getQueryManager()
getQueryManager
in class RepositoryImpl
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public Repository.State getState()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean ping()
public Repository.UnitOfWork createTransaction(String userName, String name, boolean rollbackOnly, Repository.UnitOfWorkListener callback, String repoUser) throws KException
KException
org.komodo.spi.repository.Repository#createTransaction(java.lang.String, boolean,
org.komodo.spi.repository.Repository.UnitOfWorkListener)
public void notify(RepositoryClientEvent event)
RepositoryImpl
notify
in interface Repository
notify
in class RepositoryImpl
Repository.notify(org.komodo.spi.repository.RepositoryClientEvent)
Copyright © 2013–2019. All rights reserved.