public interface StorageConnector extends StorageConnectorConstants
Modifier and Type | Interface and Description |
---|---|
static class |
StorageConnector.Descriptor
Describes a parameter/property applicable to this storage connector
|
StorageConnectorConstants.Types
DOWNLOADABLE_PATH_PROPERTY, FILE_PATH_PROPERTY, FILES_HOME_PATH_PROPERTY, IMPORT_OVERWRITE_PROPERTY
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
Modifier and Type | Method and Description |
---|---|
StorageTree<String> |
browse() |
void |
dispose()
Dispose of this connector
|
Set<StorageConnector.Descriptor> |
getDescriptors() |
StorageConnectorId |
getId() |
InputStream |
read(Properties parameters) |
boolean |
refresh()
Refreshes the connection and any cached files from the storage location
|
void |
write(Exportable artifact,
Repository.UnitOfWork transaction,
Properties parameters)
Write the
Exportable to the storage according to the
parameters |
StorageConnectorId getId()
Set<StorageConnector.Descriptor> getDescriptors()
void write(Exportable artifact, Repository.UnitOfWork transaction, Properties parameters) throws Exception
Exportable
to the storage according to the
parametersartifact
- parameters
- Exception
- if error occursboolean refresh() throws Exception
Exception
InputStream read(Properties parameters) throws Exception
parameters
- the parameters used to find and read the document.
In most cases this should at least contain StorageConnectorConstants.FILE_PATH_PROPERTY
which
points to relative reference to the fileException
StorageTree<String> browse() throws Exception
null
.Exception
void dispose()
Copyright © 2013–2019. All rights reserved.