public class VdbEntryImpl extends RelationalObjectImpl implements VdbEntry
DataServiceEntry.PublishPolicy
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_ENTRIES
NO_CONTENT
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 |
---|
VdbEntryImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
Modifier and Type | Method and Description |
---|---|
byte[] |
export(Repository.UnitOfWork uow,
Properties properties) |
String |
getArchiveFolder() |
Vdb |
getReference(Repository.UnitOfWork uow) |
String |
getVdbName(Repository.UnitOfWork transaction) |
String |
getVdbVersion(Repository.UnitOfWork transaction) |
void |
setVdbName(Repository.UnitOfWork transaction,
String vdbName) |
void |
setVdbVersion(Repository.UnitOfWork transaction,
String vdbVersion) |
getChild, getChild, getChildren, getChildrenOfType, getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasProperty, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getChildTypes, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, getTypeId, getTypeIdentifier, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentType, getEntryPath, getPublishPolicy, setEntryPath, setPublishPolicy, setReference
getName
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, getParent, getRepository
public VdbEntryImpl(Repository.UnitOfWork uow, Repository repository, String path) throws KException
uow
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repository where the object is located (cannot be null
)path
- the workspace path (cannot be null
or empty)KException
- if an error occurspublic byte[] export(Repository.UnitOfWork uow, Properties properties) throws KException
export
in interface DataServiceEntry<Vdb>
export
in interface Exportable
KException
Exportable.export(org.komodo.spi.repository.Repository.UnitOfWork, java.util.Properties)
public String getArchiveFolder()
getArchiveFolder
in interface DataServiceEntry<Vdb>
null
or empty if the resource
should be located at the archive root)DataServiceEntry.getArchiveFolder()
public Vdb getReference(Repository.UnitOfWork uow) throws KException
getReference
in interface DataServiceEntry<Vdb>
uow
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
if none existsKException
- if an error occursDataServiceEntry.getReference(org.komodo.spi.repository.Repository.UnitOfWork)
public String getVdbName(Repository.UnitOfWork transaction) throws KException
getVdbName
in interface VdbEntry
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if an error occursVdbEntry.getVdbName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getVdbVersion(Repository.UnitOfWork transaction) throws KException
getVdbVersion
in interface VdbEntry
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if an error occursVdbEntry.getVdbVersion(org.komodo.spi.repository.Repository.UnitOfWork)
public void setVdbName(Repository.UnitOfWork transaction, String vdbName) throws KException
setVdbName
in interface VdbEntry
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)vdbName
- the value to use to set the VDB name of the entry (can be null
or empty)KException
- if an error occursVdbEntry.setVdbName(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setVdbVersion(Repository.UnitOfWork transaction, String vdbVersion) throws KException
setVdbVersion
in interface VdbEntry
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)vdbVersion
- the value to use to set the VDB version of the entry (can be null
or empty)KException
- if an error occursVdbEntry.setVdbVersion(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
Copyright © 2013–2019. All rights reserved.