public class GitRepositoryImpl extends RelationalChildRestrictedObject implements GitRepository
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
DEFAULT_BRANCH, DEFAULT_COMMIT_AUTHOR, DEFAULT_COMMIT_EMAIL, IDENTIFIER, NO_GIT_REPOSITORIES, 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 |
---|
GitRepositoryImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
addChild, getChildren, getChildrenOfType, getChildTypes, hasChild, hasChildren, isChildRestricted
getChild, getChild, getDescriptor, getDescriptors, getFilters, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasDescriptor, hasProperty, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, 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, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getRepository
public GitRepositoryImpl(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 occurspublic KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
public Profile getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
getParent
in class RelationalObjectImpl
KException
RelationalObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public URL getUrl(Repository.UnitOfWork transaction) throws KException
getUrl
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)url
propertyKException
- if an error occurspublic void setUrl(Repository.UnitOfWork transaction, URL url) throws KException
setUrl
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)url
- the new value for the url
propertyKException
- if an error occurspublic String getBranch(Repository.UnitOfWork transaction) throws KException
getBranch
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)branch
propertyKException
- if an error occurspublic void setBranch(Repository.UnitOfWork transaction, String branch) throws KException
setBranch
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)branch
- the new value for the branch
propertyKException
- if an error occurspublic String getUser(Repository.UnitOfWork transaction) throws KException
getUser
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)user
propertyKException
- if an error occurspublic void setUser(Repository.UnitOfWork transaction, String user) throws KException
setUser
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occurspublic String getPassword(Repository.UnitOfWork transaction) throws KException
getPassword
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)pswd
propertyKException
- if an error occurspublic void setPassword(Repository.UnitOfWork transaction, String password) throws KException
setPassword
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)password
- the new value for the pswd
propertyKException
- if an error occurspublic String getCommitAuthor(Repository.UnitOfWork transaction) throws KException
getCommitAuthor
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)commitAuthor
propertyKException
- if an error occurspublic void setCommitAuthor(Repository.UnitOfWork transaction, String commitAuthor) throws KException
setCommitAuthor
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)commitAuthor
- the new value for the commitAuthor
propertyKException
- if an error occurspublic String getCommitEmail(Repository.UnitOfWork transaction) throws KException
getCommitEmail
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)commitEmail
propertyKException
- if an error occurspublic void setCommitEmail(Repository.UnitOfWork transaction, String commitEmail) throws KException
setCommitEmail
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)commitEmail
- the new value for the commitEmail
propertyKException
- if an error occurspublic String getTargetDirectory(Repository.UnitOfWork transaction) throws KException
getTargetDirectory
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occurspublic void setTargetDirectory(Repository.UnitOfWork transaction, String targetDirectory) throws KException
setTargetDirectory
in interface GitRepository
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)targetDirectory
- the new relative destination parent directory pathKException
- if an error occursCopyright © 2013–2019. All rights reserved.