public class HTTPRepositoryAccessor extends java.lang.Object implements RepositoryAccessor
Title: HTTP Fabric Client
Description: This class defines an API of accessor to the Repository.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
addArchive(java.io.File jar)
Adds the specified JAR file to the Repository.
|
void |
addArchive(java.lang.String jarName,
byte[] jarContent)
Adds the specified JAR file to the Repository.
|
java.lang.Object |
addEnvironmentVariable(java.lang.String name,
java.lang.Object value)
Adds the specified environment variable.
|
void |
addExtensionArchive(java.io.File jar)
Adds the specified extension JAR file to the Repository.
|
void |
addExtensionArchive(java.lang.String jarName,
byte[] jarContent)
Adds the specified JAR file to the Repository.
|
void |
addPackage(Package pkg)
Adds the specified Package to the Repository.
|
void |
addPackage(Package pkg,
java.io.File[] jars)
Adds the specified Package to the Repository.
|
void |
appendFile(java.lang.String path,
byte[] content)
Appends the specified content to the specified file.
|
void |
appendFile(java.lang.String path,
java.io.File contentFile)
Appends the content (taken from the
contentFile file) to the specified file. |
void |
appendFile(java.lang.String path,
java.io.InputStream stream,
int size)
Appends the content (taken from the specified stream) to the specified file.
|
void |
bindObject(java.lang.String name,
java.lang.Object object)
Binds the specified named object to the current active Reference Context by serializing
the object as XML into the repository.
|
void |
createDirectory(com.streamscape.repository.filesystem.FSFile baseDirectory,
java.lang.String subDirectoryName)
Creates a directory with the specified name under the specified base directory.
|
com.streamscape.repository.filesystem.FSFile |
createDirectory(java.lang.String path)
Creates a directory using the specified path.
|
void |
createFile(java.lang.String path,
byte[] content,
long expiration)
Create a file using the specified path and the specified content.
|
void |
createFile(java.lang.String path,
java.io.File contentFile,
long expiration)
Creates a file using the specified path name and the content taken from the specified file.
|
void |
createFile(java.lang.String path,
java.io.InputStream stream,
int size,
long expiration)
Creates a file using the specified path name and the content taken from the specified stream.
|
ReferenceContext |
createReferenceContext(ReferenceContext parentContext,
java.lang.String namespace)
Creates a new Reference Context with the specified name under the specified parent context.
|
ReferenceContext |
createReferenceContext(java.lang.String namespace)
Creates a new Reference Context with the specified fully qualified name.
|
void |
deleteDirectory(java.lang.String path,
boolean isRecursive)
Deletes the specified directory.
|
void |
deleteFile(java.lang.String path)
Deletes the specified file.
|
void |
destroyReferenceContext(ReferenceContext context)
Destroys the Reference Context with the specified name.
|
boolean |
existsArchive(java.lang.String jarName)
Checks if the specified JAR file exists in the Repository.
|
boolean |
existsClientFactory(java.lang.String factoryName,
java.lang.String factoryType)
Checks if the specified Client Factory exists in the Repository.
|
boolean |
existsExtensionArchive(java.lang.String jarName)
Checks if the specified extension JAR file exists in the Repository.
|
boolean |
existsFile(java.lang.String path)
Checks if the specified file (or directory) exists.
|
boolean |
existsJDBCFactory(java.lang.String factoryName,
java.lang.String factoryType)
Checks if the specified JDBC Factory exists in the Repository.
|
boolean |
existsObject(java.lang.String name)
Checks if the named object with the specified name exists in the current active Reference Context
This operation is applicable to the objects area of the Repository. |
boolean |
existsPackage(PackageType type,
java.lang.String name)
Checks if the specified Package exists in the Repository.
|
boolean |
existsPackage(java.lang.String fullName)
Checks if the specified Package exists in the Repository.
|
boolean |
existsReferenceContext(java.lang.String namespace)
Checks if the Reference Context corresponding to the specified namespace exists.
|
boolean |
existsSemanticType(java.lang.String typeName)
Checks if a
Semantic Type with the specified name exists in the Repository. |
boolean |
existsServiceConfiguration(java.lang.String serviceName,
java.lang.String serviceType)
Checks if a Service Configuration Object corresponding to a service with the specified type and name exists.
|
boolean |
existsTransportFactory(java.lang.String factoryName,
java.lang.String factoryType)
Checks if the specified Transport Factory exists in the Repository.
|
void |
exportClientFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Exports the specified Client Factory to the specified directory.
|
void |
exportJDBCFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Exports the specified JDBC Factory to the specified directory.
|
void |
exportPackage(java.lang.String directory,
PackageType type,
java.lang.String name)
Exports the specified Package to the specified directory.
|
void |
exportPackage(java.lang.String directory,
java.lang.String fullName)
Exports the specified Package to the specified directory.
|
void |
exportServiceConfiguration(java.lang.String directory,
java.lang.String serviceName,
java.lang.String serviceType)
Exports a Service Configuration Object corresponding to a service with the specified type and name
to an external file located in the specified directory.
|
void |
exportTransportFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Exports the specified Transport Factory to the specified directory.
|
java.util.List |
getAllArtifactsDetails(java.lang.String path)
Returns the list with detailed information about files and directories located at the specified path.
|
byte[] |
getArchive(java.lang.String jarName)
Returns the content of the specified JAR file.
|
java.io.InputStream |
getArchiveStream(java.lang.String jarName)
Returns an input stream of the specified JAR file.
|
java.net.URL |
getArchiveURL(java.lang.String jarName)
Returns the reference to the specified JAR file as a URL.
|
java.util.List |
getArchiveURLs()
Returns a list of the references to all JAR files in the Repository.
|
java.util.List |
getDetails(java.util.Collection paths)
Returns detailed information for a list of specified locations.
|
com.streamscape.repository.filesystem.FSFile |
getDetails(java.lang.String path)
Returns detailed information about the specified file or directory.
|
java.util.List |
getDirectoriesDetails(java.lang.String path)
Returns the list with detailed information about directories located at the specified path.
|
java.util.Map |
getEnvironment()
Returns the copy of the environment variables of the Repository.
|
byte[] |
getExtensionArchive(java.lang.String jarName)
Returns the content of the specified extension JAR file.
|
java.net.URL |
getExtensionArchiveURL(java.lang.String jarName)
Returns the reference to the specified extension JAR file as a URL.
|
java.util.List |
getExtensionArchiveURLs()
Returns a list of the references to all extension JAR files in the Repository.
|
java.lang.String |
getFileContent(java.lang.String path)
Returns a content of the specified file.
|
void |
getFileContent(java.lang.String path,
java.io.OutputStream stream)
Writes a content of the specified file to the specified output stream.
|
byte[] |
getFileContentBytes(java.lang.String path)
Returns a content of the specified file.
|
java.util.List |
getFilesDetails(java.lang.String path)
Returns the list with detailed information about files located at the specified path.
|
java.lang.String |
getInstallRoot()
Returns the root directory where the Repository vendor software is installed.
|
java.lang.String |
getNodeName()
Returns the name of the Fabric Node in which the Repository is located.
|
Package |
getPackage(PackageType type,
java.lang.String name)
Returns the specified Package from the Repository.
|
Package |
getPackage(java.lang.String fullName)
Returns the specified Package from the Repository.
|
Package |
getPackageByArchive(java.lang.String jarName)
Returns a Package that contains the specified JAR file.
|
java.lang.String |
getProviderClass()
Returns the fully qualified class name reference of the Repository provider.
|
ReferenceContext |
getReferenceContext()
Returns the current active Reference Context.
|
ReferenceContext |
getRootContext()
Returns the root Reference Context of the Repository.
|
com.streamscape.repository.filesystem.FSFile |
getRootDirectory()
Returns detailed information about the root directory.
|
SemanticType |
getSemanticType(java.lang.String typeName)
Returns a
Semantic Type with the specified name. |
java.util.List |
getSemanticTypes()
Returns a list of all Semantic Types in the Repository.
|
SysId |
getSystemId()
Returns the object that contains system information about the Repository.
|
java.lang.String |
getVendor()
Returns the name of the Repository vendor.
|
void |
importClientFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Imports the specified Client Factory from an external file located in the specified directory.
|
void |
importJDBCFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Imports the specified JDBC Factory from an external file located in the specified directory.
|
void |
importPackage(java.lang.String directory,
PackageType type,
java.lang.String name)
Imports the specified Package from the specified directory.
|
void |
importPackage(java.lang.String directory,
java.lang.String fullName)
Imports the specified Package from the specified directory.
|
void |
importServiceConfiguration(java.lang.String directory,
java.lang.String serviceName,
java.lang.String serviceType,
boolean validate)
Imports a Service Configuration Object corresponding to a service with the specified type and name
from an external file located in the specified directory.
|
void |
importTransportFactory(java.lang.String directory,
java.lang.String factoryName,
java.lang.String factoryType)
Imports the specified Transport Factory from an external file located in the specified directory.
|
boolean |
inXact()
Checks if the Repository is currently engaged in a transaction.
|
boolean |
isDirectory(java.lang.String path)
Checks if the specified path corresponds to the existing directory.
|
boolean |
isFile(java.lang.String path)
Checks if the specified path corresponds to the existing file.
|
boolean |
isGlobalsCapable()
Checks if the Repository supports global variables.
|
boolean |
isObjectReferenceCapable()
Checks if the Repository supports object references.
|
boolean |
isOpened()
Checks if the accessor is opened.
|
boolean |
isTransactionCapable()
Checks if the Repository supports a using of transactional locking to manage an access control to artifacts.
|
boolean |
isTypeResolutionCapable()
Checks if the Repository supports object type resolution.
|
java.util.List |
listAllArtifacts(java.lang.String path)
Returns the list of files and directories located at the specified path.
|
java.util.List |
listArchives()
Returns a list of names of all JAR files in the Repository.
|
java.util.List |
listBindings()
Returns a list of all Binding instances in the current active Reference Context.
|
java.util.List |
listBindings(ReferenceContext context)
Returns a list of all Binding instances in the specified Reference Context.
|
java.util.List |
listClientFactoriesByType(java.lang.String factoryType)
Returns a list of names of all Client Factories having the specified type.
|
java.util.List |
listClientFactoryNames()
Returns a list of names of all Client Factories in the Repository.
|
java.util.List |
listClientFactoryTypes()
Returns a list of types of all Client Factories in the Repository.
|
java.util.List |
listDirectories(java.lang.String path)
Returns the list of directories located at the specified path.
|
java.util.List |
listExtensionArchives()
Returns a list of names of all extension JAR files in the Repository.
|
java.util.List |
listFiles(java.lang.String path)
Returns the list of files located at the specified path.
|
java.util.List |
listJDBCFactoriesByType(java.lang.String factoryType)
Returns a list of names of all JDBC Factories having the specified type.
|
java.util.List |
listJDBCFactoryNames()
Returns a list of names of all JDBC Factories in the Repository.
|
java.util.List |
listJDBCFactoryTypes()
Returns a list of types of all JDBC Factories in the Repository.
|
java.util.List |
listObjectNames(ReferenceContext context,
java.lang.String objectType)
Returns a list of the qualified names of the objects in the specified Reference Context.
|
java.util.List |
listObjectNames(java.lang.String objectType)
Returns a list of the names of the objects in the current active Reference Context.
|
java.util.List |
listPackages()
Returns a list of Packages for all types in the format of <PackageType>.<PackageName>.
|
java.util.List |
listPackagesByType(PackageType type)
Returns a list of packages of the specified type.
|
java.util.List |
listQualifiedObjectNames()
Returns a list of the qualified names of the objects in the current active Reference Context.
|
java.util.List |
listQualifiedObjectNames(ReferenceContext context)
Returns a list of the qualified names of the objects in the specified Reference Context.
|
java.util.List |
listReferenceContexts()
Returns a list of names of the all sub-contexts under the current active Reference Context.
|
java.util.List |
listSemanticTypes()
Returns a list of names of all Semantic Types in the Repository.
|
java.util.List |
listServiceNames()
Returns a list of names of all services in the Repository.
|
java.util.List |
listServicesByType(java.lang.String serviceType)
Returns a list of names of all services having the specified type.
|
java.util.List |
listServiceTypes()
Returns a list of types of all services in the Repository.
|
java.util.List |
listTransportFactoriesByType(java.lang.String factoryType)
Returns a list of names of all Transport Factories having the specified type.
|
java.util.List |
listTransportFactoryNames()
Returns a list of names of all Transport Factories in the Repository.
|
java.util.List |
listTransportFactoryTypes()
Returns a list of types of all Transport Factories in the Repository.
|
ClientFactory |
loadClientFactory(java.lang.String factoryName,
java.lang.String factoryType)
Loads and returns a copy of the specified Client Factory from the Repository.
|
JDBCFactory |
loadJDBCFactory(java.lang.String factoryName,
java.lang.String factoryType)
Loads and returns a copy of the specified JDBC Factory from the Repository.
|
ServiceConfigurationObject |
loadServiceConfiguration(java.lang.String serviceName,
java.lang.String serviceType)
Loads and returns a copy of Service Configuration Object corresponding to a service with
the specified type and name.
|
TransportFactory |
loadTransportFactory(java.lang.String factoryName,
java.lang.String factoryType)
Loads and returns a copy of the specified Transport Factory from the Repository.
|
java.lang.Object |
lookupObject(ReferenceContext context,
java.lang.String objectName)
Looks up the named object with the specified name in the specified Reference Context.
|
java.lang.Object |
lookupObject(java.lang.String name)
Looks up the named object with the specified name in the current active Reference Context.
|
java.lang.Object |
lookupObject(java.lang.String namespace,
java.lang.String objectName)
Looks up the named object with the specified name in the Reference Context associated with the specified namespace.
|
ReferenceContext |
lookupReferenceContext(java.lang.String namespace)
Looks up the Reference Context corresponding to the specified namespace.
|
void |
rebindObject(java.lang.String name,
java.lang.Object object)
Re-binds the specified named object to the current active Reference Context.
|
void |
removeArchive(java.lang.String jarName)
Removes the specified JAR file from the Repository.
|
void |
removeClientFactory(java.lang.String factoryName,
java.lang.String factoryType)
Removes the specified Client Factory from the Repository.
|
java.lang.Object |
removeEnvironmentVariable(java.lang.String name)
Remove the environment variable with the specified name.
|
void |
removeExtensionArchive(java.lang.String jarName,
boolean force)
Removes the specified JAR file from the Repository.
|
void |
removeJDBCFactory(java.lang.String factoryName,
java.lang.String factoryType)
Removes the specified JDBC Factory from the Repository.
|
void |
removePackage(PackageType type,
java.lang.String name,
boolean withJars)
Removes the specified Package from the Repository.
|
void |
removePackage(java.lang.String fullName,
boolean withJars)
Removes the specified Package from the Repository.
|
void |
removeServiceConfiguration(java.lang.String serviceName,
java.lang.String serviceType)
Removes a Service Configuration Object corresponding to a service with the specified type and name.
|
void |
removeTransportFactory(java.lang.String factoryName,
java.lang.String factoryType)
Removes the specified Transport Factory from the Repository.
|
com.streamscape.repository.filesystem.FSFile |
renameArtifact(com.streamscape.repository.filesystem.FSFile oldFile,
java.lang.String newName)
Renames the specified file (or directory) using the specified new name.
|
void |
renameArtifact(java.lang.String oldPath,
java.lang.String newName)
Renames the specified file (or directory) using the specified new name.
|
void |
renameObject(java.lang.String oldName,
java.lang.String newName)
Renames the specified named object in the current active Reference Context.
|
void |
resetReferenceContext()
Sets the current active Reference Context to the initial root context.
|
java.lang.String |
resolveSemanticClass(java.lang.String className)
Returns the name of Semantic Type associated with the specified class.
|
java.lang.String |
resolveSemanticType(java.lang.String typeName)
Returns the name of the implementing class for a
Semantic Type with specified name. |
void |
saveClientFactory(ClientFactory factory)
Saves the specified Client Factory to the Repository as a serialized XML artifact.
|
void |
saveJDBCFactory(JDBCFactory factory)
Saves the specified JDBC Factory to the Repository as a serialized XML artifact.
|
void |
saveServiceConfiguration(ServiceConfigurationObject sco)
Saves the specified Service Configuration Object to the Repository as a serialized XML artifact.
|
void |
saveTransportFactory(TransportFactory factory)
Saves the specified Transport Factory to the Repository as a serialized XML artifact.
|
void |
setFileExpiration(java.lang.String path,
long expiration)
Sets the specified expiration time for the specified file.
|
void |
setReferenceContext(ReferenceContext context)
Sets the current active Reference Context, switching to the specified context for all
subsequent object operations such as bind, unbind, rebind, rename
and lookup.
|
void |
unbindObject(java.lang.String name)
Unbinds the specified named object from the current active Reference Context.
|
void |
updateFile(java.lang.String path,
byte[] content)
Writes the specified content into the specified file.
|
void |
updateFile(java.lang.String path,
java.io.File contentFile)
Writes the content (taken from the
contentFile ) into the specified file. |
void |
updateFile(java.lang.String path,
java.io.InputStream stream,
int size)
Writes the content (taken from the specified stream) into the specified file.
|
void |
updatePackage(Package pkg)
Updates the specified Package in the Repository.
|
public java.lang.String getNodeName()
RepositoryAccessor
getNodeName
in interface RepositoryAccessor
public boolean isOpened()
RepositoryAccessor
FabricConnection
is closed or
if the Fabric node containing the Repository is detached from the Fabric.isOpened
in interface RepositoryAccessor
true
if the accessor is opened, false
otherwise.public SysId getSystemId() throws HTTPFabricException
RepositoryAccessor
getSystemId
in interface RepositoryAccessor
HTTPFabricException
public java.lang.String getProviderClass() throws HTTPFabricException
RepositoryAccessor
getProviderClass
in interface RepositoryAccessor
HTTPFabricException
public java.lang.String getVendor() throws HTTPFabricException
RepositoryAccessor
getVendor
in interface RepositoryAccessor
HTTPFabricException
public java.lang.String getInstallRoot() throws HTTPFabricException
RepositoryAccessor
getInstallRoot
in interface RepositoryAccessor
HTTPFabricException
public boolean isTypeResolutionCapable() throws HTTPFabricException
RepositoryAccessor
isTypeResolutionCapable
in interface RepositoryAccessor
true
if the Repository supports object type resolution, false
otherwise.HTTPFabricException
public boolean isObjectReferenceCapable() throws HTTPFabricException
RepositoryAccessor
isObjectReferenceCapable
in interface RepositoryAccessor
true
if the Repository supports object references, false
otherwise.HTTPFabricException
public boolean isGlobalsCapable() throws HTTPFabricException
RepositoryAccessor
isGlobalsCapable
in interface RepositoryAccessor
true
if the Repository supports global variables, false
otherwise.HTTPFabricException
public boolean isTransactionCapable() throws HTTPFabricException
RepositoryAccessor
isTransactionCapable
in interface RepositoryAccessor
true
if the Repository supports transactions, false
otherwise.HTTPFabricException
public java.util.Map getEnvironment() throws HTTPFabricException
RepositoryAccessor
getEnvironment
in interface RepositoryAccessor
HTTPFabricException
public java.lang.Object addEnvironmentVariable(java.lang.String name, java.lang.Object value) throws HTTPFabricException
RepositoryAccessor
addEnvironmentVariable
in interface RepositoryAccessor
name
- the name of the variable to be added.value
- the value of the variable to be added.null
if such variable did not exist.HTTPFabricException
public java.lang.Object removeEnvironmentVariable(java.lang.String name) throws HTTPFabricException
RepositoryAccessor
removeEnvironmentVariable
in interface RepositoryAccessor
name
- the name of the variable to be removed.null
if such variable did not exist.HTTPFabricException
public boolean inXact() throws HTTPFabricException
RepositoryAccessor
inXact
in interface RepositoryAccessor
true
if the Repository is currently engaged in a transaction, false
otherwise.HTTPFabricException
public com.streamscape.repository.filesystem.FSFile getRootDirectory() throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getRootDirectory
in interface RepositoryAccessor
FSFile
object corresponding to the root directory.HTTPFabricException
public void createDirectory(com.streamscape.repository.filesystem.FSFile baseDirectory, java.lang.String subDirectoryName) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.createDirectory
in interface RepositoryAccessor
baseDirectory
- the name of the base directory.subDirectoryName
- the name of the sub-directory.HTTPFabricException
public com.streamscape.repository.filesystem.FSFile createDirectory(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.createDirectory
in interface RepositoryAccessor
path
- the path to the directory to be created.FSFile
object corresponding to the created directory.HTTPFabricException
public void createFile(java.lang.String path, byte[] content, long expiration) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.createFile
in interface RepositoryAccessor
path
- the path to the file to be created.content
- the content to be put into the new file.expiration
- the expiration time of the new file.HTTPFabricException
public void createFile(java.lang.String path, java.io.File contentFile, long expiration) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.createFile
in interface RepositoryAccessor
path
- the path to the file to be created.contentFile
- the file with the content to be put into the new file.expiration
- the expiration time of the new file.HTTPFabricException
public void createFile(java.lang.String path, java.io.InputStream stream, int size, long expiration) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.createFile
in interface RepositoryAccessor
path
- the path to the file to be created.stream
- the stream with the content to be put into the new file.size
- the number of bytes to be put into the new file from the specified stream.expiration
- the expiration time of the new file.HTTPFabricException
public void deleteDirectory(java.lang.String path, boolean isRecursive) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.deleteDirectory
in interface RepositoryAccessor
path
- the path to the directory to be deleted.isRecursive
- the flag indicating if all sub-directories must be deleted.HTTPFabricException
public void deleteFile(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.deleteFile
in interface RepositoryAccessor
path
- the path to the file to be deleted.HTTPFabricException
public boolean existsFile(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.existsFile
in interface RepositoryAccessor
path
- the path to the file to be checked.true
if the specified file exists, false
otherwise.HTTPFabricException
public java.lang.String getFileContent(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getFileContent
in interface RepositoryAccessor
path
- the path to the specified file.HTTPFabricException
public byte[] getFileContentBytes(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getFileContentBytes
in interface RepositoryAccessor
path
- the path to the specified file.HTTPFabricException
public void getFileContent(java.lang.String path, java.io.OutputStream stream) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getFileContent
in interface RepositoryAccessor
path
- the path to the specified file.stream
- the output stream for writing the file content.HTTPFabricException
public com.streamscape.repository.filesystem.FSFile getDetails(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getDetails
in interface RepositoryAccessor
path
- the path to the specified file.FSFile
object corresponding to the specified file.HTTPFabricException
public java.util.List getDetails(java.util.Collection paths) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getDetails
in interface RepositoryAccessor
paths
- the list of the specified paths.FSFile
objects corresponding to the specified locations.HTTPFabricException
public boolean isDirectory(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.isDirectory
in interface RepositoryAccessor
path
- the path to be checked.true
if the specified path corresponds to the existing directory, false
otherwise.HTTPFabricException
public boolean isFile(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.isFile
in interface RepositoryAccessor
path
- the path to be checked.true
if the specified path corresponds to the existing file, false
otherwise.HTTPFabricException
public java.util.List listFiles(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.listFiles
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public java.util.List listDirectories(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.listDirectories
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public java.util.List listAllArtifacts(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.listAllArtifacts
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public java.util.List getFilesDetails(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getFilesDetails
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public java.util.List getDirectoriesDetails(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getDirectoriesDetails
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public java.util.List getAllArtifactsDetails(java.lang.String path) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.getAllArtifactsDetails
in interface RepositoryAccessor
path
- the specified path.HTTPFabricException
public com.streamscape.repository.filesystem.FSFile renameArtifact(com.streamscape.repository.filesystem.FSFile oldFile, java.lang.String newName) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.renameArtifact
in interface RepositoryAccessor
oldFile
- the file (or directory) to be renamed.newName
- the new name.FSFile
object corresponding to the new file.HTTPFabricException
public void renameArtifact(java.lang.String oldPath, java.lang.String newName) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.renameArtifact
in interface RepositoryAccessor
oldPath
- the path to the file (or directory) to be renamed.newName
- the new name.HTTPFabricException
public void updateFile(java.lang.String path, byte[] content) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.updateFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.content
- the content to be put into the updated file.HTTPFabricException
public void updateFile(java.lang.String path, java.io.File contentFile) throws HTTPFabricException
RepositoryAccessor
contentFile
) into the specified file.
artifacts
area of the Repository.updateFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.contentFile
- the file with the content to be put into the updated file.HTTPFabricException
public void updateFile(java.lang.String path, java.io.InputStream stream, int size) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.updateFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.stream
- the stream with the content to be put into the updated file.size
- the number of bytes to be put into the updated file from the specified stream.HTTPFabricException
public void setFileExpiration(java.lang.String path, long expiration) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.setFileExpiration
in interface RepositoryAccessor
path
- the path to the specified file.expiration
- the expiration time to be set.HTTPFabricException
public void appendFile(java.lang.String path, byte[] content) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.appendFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.content
- the content to be put into the updated file.HTTPFabricException
public void appendFile(java.lang.String path, java.io.File contentFile) throws HTTPFabricException
RepositoryAccessor
contentFile
file) to the specified file.
artifacts
area of the Repository.appendFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.contentFile
- the file with the content to be put into the updated file.HTTPFabricException
public void appendFile(java.lang.String path, java.io.InputStream stream, int size) throws HTTPFabricException
RepositoryAccessor
artifacts
area of the Repository.appendFile
in interface RepositoryAccessor
path
- the path to the existing file to be updated.stream
- the stream with the content to be put into the updated file.size
- the number of bytes to be put into the updated file from the specified stream.HTTPFabricException
public void saveServiceConfiguration(ServiceConfigurationObject sco) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.saveServiceConfiguration
in interface RepositoryAccessor
sco
- the Service Configuration Object to be saved.HTTPFabricException
public ServiceConfigurationObject loadServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.loadServiceConfiguration
in interface RepositoryAccessor
serviceName
- the specified service name.serviceType
- the specified service type.HTTPFabricException
public void removeServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.removeServiceConfiguration
in interface RepositoryAccessor
serviceName
- the specified service name.serviceType
- the specified service type.HTTPFabricException
public boolean existsServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.existsServiceConfiguration
in interface RepositoryAccessor
serviceName
- the specified service name.serviceType
- the specified service name.true
if the corresponding Service Configuration Object exists, false
otherwise.HTTPFabricException
public java.util.List listServiceTypes() throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.listServiceTypes
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listServiceNames() throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.listServiceNames
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listServicesByType(java.lang.String serviceType) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.listServicesByType
in interface RepositoryAccessor
serviceType
- the specified service type.HTTPFabricException
public void importServiceConfiguration(java.lang.String directory, java.lang.String serviceName, java.lang.String serviceType, boolean validate) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.importServiceConfiguration
in interface RepositoryAccessor
directory
- the directory to search for the SCO> file.serviceName
- the specified service name.serviceType
- the specified service type.validate
- indicates if the configuration validator should be called.HTTPFabricException
public void exportServiceConfiguration(java.lang.String directory, java.lang.String serviceName, java.lang.String serviceType) throws HTTPFabricException
RepositoryAccessor
services
area of the Repository.exportServiceConfiguration
in interface RepositoryAccessor
directory
- the directory where the SCO file will be exported.serviceName
- the specified service name.serviceType
- the specified service type.HTTPFabricException
public java.lang.String resolveSemanticType(java.lang.String typeName) throws HTTPFabricException
RepositoryAccessor
Semantic Type
with specified name.
types
area of the Repository.resolveSemanticType
in interface RepositoryAccessor
typeName
- the name of the type to be resolved.HTTPFabricException
public java.lang.String resolveSemanticClass(java.lang.String className) throws HTTPFabricException
RepositoryAccessor
types
area of the Repository.resolveSemanticClass
in interface RepositoryAccessor
className
- the implementing class of the type to be resolved.HTTPFabricException
public SemanticType getSemanticType(java.lang.String typeName) throws HTTPFabricException
RepositoryAccessor
Semantic Type
with the specified name.
types
area of the Repository.getSemanticType
in interface RepositoryAccessor
typeName
- the name of the type to be returned.HTTPFabricException
public boolean existsSemanticType(java.lang.String typeName) throws HTTPFabricException
RepositoryAccessor
Semantic Type
with the specified name exists in the Repository.
types
area of the Repository.existsSemanticType
in interface RepositoryAccessor
typeName
- the name of the type to be checked.true
if the specified type exists, false
otherwise.HTTPFabricException
public java.util.List listSemanticTypes() throws HTTPFabricException
RepositoryAccessor
types
area of the Repository.listSemanticTypes
in interface RepositoryAccessor
HTTPFabricException
public java.util.List getSemanticTypes() throws HTTPFabricException
RepositoryAccessor
types
area of the Repository.getSemanticTypes
in interface RepositoryAccessor
HTTPFabricException
public ReferenceContext getRootContext() throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.getRootContext
in interface RepositoryAccessor
HTTPFabricException
public ReferenceContext createReferenceContext(java.lang.String namespace) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
createReferenceContext
in interface RepositoryAccessor
namespace
- the fully qualified name of the sub-context to be created.HTTPFabricException
public ReferenceContext createReferenceContext(ReferenceContext parentContext, java.lang.String namespace) throws HTTPFabricException
RepositoryAccessor
parentContext
is null
the sub-context will be created under the current active context.
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
createReferenceContext
in interface RepositoryAccessor
parentContext
- the parent context.namespace
- the name of the sub-context to be created.HTTPFabricException
public void destroyReferenceContext(ReferenceContext context) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
destroyReferenceContext
in interface RepositoryAccessor
context
- the context to be removed.HTTPFabricException
public void setReferenceContext(ReferenceContext context) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.setReferenceContext
in interface RepositoryAccessor
context
- the context to be set.HTTPFabricException
public void resetReferenceContext() throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
RepositoryAccessor
objects
area of the Repository.resetReferenceContext
in interface RepositoryAccessor
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if some error occurs in the Repository.public ReferenceContext getReferenceContext() throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.getReferenceContext
in interface RepositoryAccessor
HTTPFabricException
public ReferenceContext lookupReferenceContext(java.lang.String namespace) throws HTTPFabricException
RepositoryAccessor
namespace
is '.' the current active context will be returned.
If namespace
is '/' the root context will be returned.
objects
area of the Repository.lookupReferenceContext
in interface RepositoryAccessor
namespace
- the name of the context to be looked up.or null
for initial root context.null
the corresponding context is not found.HTTPFabricException
public boolean existsReferenceContext(java.lang.String namespace) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.existsReferenceContext
in interface RepositoryAccessor
namespace
- the name of the context to be looked up or null
for initial root context.null
the corresponding context is not found.HTTPFabricException
public java.util.List listReferenceContexts() throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.listReferenceContexts
in interface RepositoryAccessor
HTTPFabricException
public void bindObject(java.lang.String name, java.lang.Object object) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
bindObject
in interface RepositoryAccessor
name
- the name of the object to be bound.object
- the object to be bound.HTTPFabricException
public void rebindObject(java.lang.String name, java.lang.Object object) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
rebindObject
in interface RepositoryAccessor
name
- the name of the object to be re-bound.object
- the object to be re-bound.HTTPFabricException
public void unbindObject(java.lang.String name) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
unbindObject
in interface RepositoryAccessor
name
- the name of the object to be unbound.HTTPFabricException
public void renameObject(java.lang.String oldName, java.lang.String newName) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
renameObject
in interface RepositoryAccessor
oldName
- the old name of the object to be renamed.newName
- the new name of the object to be renamed.HTTPFabricException
public java.lang.Object lookupObject(java.lang.String name) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.lookupObject
in interface RepositoryAccessor
name
- the name of the object to be looked up.null
if the corresponding object is not found.HTTPFabricException
public java.lang.Object lookupObject(java.lang.String namespace, java.lang.String objectName) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.lookupObject
in interface RepositoryAccessor
namespace
- the namespace where the object will be searched.objectName
- the name of the object to be searched.null
if the corresponding object is not found.HTTPFabricException
public java.lang.Object lookupObject(ReferenceContext context, java.lang.String objectName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
RepositoryAccessor
objects
area of the Repository.lookupObject
in interface RepositoryAccessor
context
- the reference context where the object will be searched.objectName
- the name of the object to be searched.null
if the corresponding object is not found.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if some error occurs in the Repository.public boolean existsObject(java.lang.String name) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.existsObject
in interface RepositoryAccessor
name
- the name of the object to be checked.true
if the specified object exists, false
otherwise.HTTPFabricException
public java.util.List listQualifiedObjectNames() throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.listQualifiedObjectNames
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listQualifiedObjectNames(ReferenceContext context) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.listQualifiedObjectNames
in interface RepositoryAccessor
context
- the specified context.HTTPFabricException
public java.util.List listObjectNames(java.lang.String objectType) throws HTTPFabricException
RepositoryAccessor
objectType
is not null
the object names of the corresponding type will be returned.
objects
area of the Repository.listObjectNames
in interface RepositoryAccessor
objectType
- the specified object type.HTTPFabricException
public java.util.List listObjectNames(ReferenceContext context, java.lang.String objectType) throws HTTPFabricException
RepositoryAccessor
objectType
is not null
the object names of the corresponding type will be returned.
objects
area of the Repository.listObjectNames
in interface RepositoryAccessor
context
- the specified context.objectType
- the specified object type.HTTPFabricException
public java.util.List listBindings() throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.listBindings
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listBindings(ReferenceContext context) throws HTTPFabricException
RepositoryAccessor
objects
area of the Repository.listBindings
in interface RepositoryAccessor
context
- the list of all bindings.HTTPFabricException
public void addPackage(Package pkg) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.
pkg
area of the Repository.addPackage
in interface RepositoryAccessor
pkg
- the package to be added.HTTPFabricException
public void addPackage(Package pkg, java.io.File[] jars) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.
RepositoryAccessor
.addPackage
in interface RepositoryAccessor
pkg
- the package to be added.jars
- JAR files of the package.HTTPFabricException
public Package getPackage(PackageType type, java.lang.String name) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.getPackage
in interface RepositoryAccessor
type
- the type of the package to be returned.name
- the name of the package to be returned.HTTPFabricException
public Package getPackage(java.lang.String fullName) throws HTTPFabricException
RepositoryAccessor
sdo.TestPackage
).
pkg
area of the Repository.getPackage
in interface RepositoryAccessor
fullName
- the full name of the package to be returned.HTTPFabricException
public Package getPackageByArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.getPackageByArchive
in interface RepositoryAccessor
jarName
- the specified JAR name.null
if the archive is not contained in any package.HTTPFabricException
public void removePackage(PackageType type, java.lang.String name, boolean withJars) throws HTTPFabricException
RepositoryAccessor
withJars
to remove package's jar files.
pkg
area of the Repository.removePackage
in interface RepositoryAccessor
type
- the type of the package to be removed.name
- the name of the package to be removed.withJars
- the flag indicating if the package will be removed with its jar files.HTTPFabricException
public void removePackage(java.lang.String fullName, boolean withJars) throws HTTPFabricException
RepositoryAccessor
sdo.TestPackage
).
withJars
to remove package's jar files.
pkg
area of the Repository.removePackage
in interface RepositoryAccessor
fullName
- the full name of the package to be removed.withJars
- the flag indicating if the package will be removed with its jar files.HTTPFabricException
public boolean existsPackage(PackageType type, java.lang.String name) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.existsPackage
in interface RepositoryAccessor
type
- the type of the package to be checked.name
- the name of the package to be checked.true
if the specified package exists, false
otherwise.HTTPFabricException
public boolean existsPackage(java.lang.String fullName) throws HTTPFabricException
RepositoryAccessor
sdo.TestPackage
).
pkg
area of the Repository.existsPackage
in interface RepositoryAccessor
fullName
- the full name of the package to be checked.true
if the specified package exists, false
otherwise.HTTPFabricException
public void updatePackage(Package pkg) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.
pkg
area of the Repository.updatePackage
in interface RepositoryAccessor
pkg
- the package to be updated.HTTPFabricException
public void importPackage(java.lang.String directory, PackageType type, java.lang.String name) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.importPackage
in interface RepositoryAccessor
directory
- the directory from which the package will be imported.type
- the type of the package to be imported.name
- the name of the package to be imported.HTTPFabricException
public void importPackage(java.lang.String directory, java.lang.String fullName) throws HTTPFabricException
RepositoryAccessor
sdo.TestPackage
).
pkg
area of the Repository.importPackage
in interface RepositoryAccessor
directory
- the directory from which the package will be imported.fullName
- the full name of the package to be imported.HTTPFabricException
public void exportPackage(java.lang.String directory, PackageType type, java.lang.String name) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.
It is expected that the package configuration and all associated JAR files are also exported into the
working directory specified.exportPackage
in interface RepositoryAccessor
directory
- the directory where the package will be exported.type
- the type of the package to be exported.name
- the name of the package to be exported.HTTPFabricException
public void exportPackage(java.lang.String directory, java.lang.String fullName) throws HTTPFabricException
RepositoryAccessor
sdo.TestPackage
).
pkg
area of the Repository.
It is expected that the package configuration and all associated JAR files are also exported into the
working directory specified.exportPackage
in interface RepositoryAccessor
directory
- the directory where the package will be exported.fullName
- the full name of the package to be exported.HTTPFabricException
public java.util.List listPackages() throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.listPackages
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listPackagesByType(PackageType type) throws HTTPFabricException
RepositoryAccessor
pkg
area of the Repository.listPackagesByType
in interface RepositoryAccessor
type
- the type of packages which are to be found.HTTPFabricException
public void addArchive(java.io.File jar) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.addArchive
in interface RepositoryAccessor
jar
- the JAR file to be added.HTTPFabricException
public void addArchive(java.lang.String jarName, byte[] jarContent) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.addArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be added.jarContent
- the content of the AR file to be added.HTTPFabricException
public void removeArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.removeArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be removed.HTTPFabricException
public boolean existsArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.existsArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be checked.true
if the specified archive exists, false
otherwise.HTTPFabricException
public byte[] getArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.getArchive
in interface RepositoryAccessor
jarName
- the specified JAR name.HTTPFabricException
public java.io.InputStream getArchiveStream(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.
RepositoryAccessor
.getArchiveStream
in interface RepositoryAccessor
jarName
- the specified JAR name.HTTPFabricException
public java.net.URL getArchiveURL(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.
RepositoryAccessor
.getArchiveURL
in interface RepositoryAccessor
jarName
- the specified JAR name.HTTPFabricException
public java.util.List getArchiveURLs() throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.
RepositoryAccessor
.getArchiveURLs
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listArchives() throws HTTPFabricException
RepositoryAccessor
lib
area of the Repository.listArchives
in interface RepositoryAccessor
HTTPFabricException
public void addExtensionArchive(java.io.File jar) throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.addExtensionArchive
in interface RepositoryAccessor
jar
- the JAR file to be added.HTTPFabricException
public void addExtensionArchive(java.lang.String jarName, byte[] jarContent) throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.addExtensionArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be added.jarContent
- the content of the JAR file to be added.HTTPFabricException
public void removeExtensionArchive(java.lang.String jarName, boolean force) throws HTTPFabricException
RepositoryAccessor
force
parameter to allow forced archive removal.
ext
area of the Repository.
This method is allowed only if the user has administrator rights.
removeExtensionArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be removed.force
- the flag indicating if the archive will be removed without checking for dependencies.HTTPFabricException
public boolean existsExtensionArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.existsExtensionArchive
in interface RepositoryAccessor
jarName
- the name of the JAR file to be checked.true
if the specified archive exists, false
otherwise.HTTPFabricException
public byte[] getExtensionArchive(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.getExtensionArchive
in interface RepositoryAccessor
jarName
- the specified JAR name.HTTPFabricException
public java.net.URL getExtensionArchiveURL(java.lang.String jarName) throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.
RepositoryAccessor
.getExtensionArchiveURL
in interface RepositoryAccessor
jarName
- the specified JAR name.HTTPFabricException
public java.util.List getExtensionArchiveURLs() throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.
RepositoryAccessor
.getExtensionArchiveURLs
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listExtensionArchives() throws HTTPFabricException
RepositoryAccessor
ext
area of the Repository.listExtensionArchives
in interface RepositoryAccessor
HTTPFabricException
public void saveTransportFactory(TransportFactory factory) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.saveTransportFactory
in interface RepositoryAccessor
factory
- the factory to be saved.HTTPFabricException
public TransportFactory loadTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.loadTransportFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.HTTPFabricException
public void removeTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.removeTransportFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.HTTPFabricException
public boolean existsTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.existsTransportFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be checked.factoryType
- the name of the factory to be checked.true
if the specified factory exists, false
otherwise.HTTPFabricException
public java.util.List listTransportFactoryNames() throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.listTransportFactoryNames
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listTransportFactoryTypes() throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.listTransportFactoryTypes
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listTransportFactoriesByType(java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.listTransportFactoriesByType
in interface RepositoryAccessor
factoryType
- the specified factory type.HTTPFabricException
public void importTransportFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.importTransportFactory
in interface RepositoryAccessor
directory
- the directory from which the factory will be imported.factoryName
- the type of the factory to be imported.factoryType
- the name of the factory to be imported.HTTPFabricException
public void exportTransportFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
factories
area of the Repository.exportTransportFactory
in interface RepositoryAccessor
directory
- the directory where the factory will be exported.factoryName
- the name of the factory to be exported.factoryType
- the type of the factory to be exported.HTTPFabricException
public void saveJDBCFactory(JDBCFactory factory) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.saveJDBCFactory
in interface RepositoryAccessor
factory
- the factory to be saved.HTTPFabricException
public JDBCFactory loadJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.loadJDBCFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.HTTPFabricException
public void removeJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.removeJDBCFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.HTTPFabricException
public boolean existsJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.existsJDBCFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be checked.factoryType
- the name of the factory to be checked.true
if the specified factory exists, false
otherwise.HTTPFabricException
public java.util.List listJDBCFactoryNames() throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.listJDBCFactoryNames
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listJDBCFactoryTypes() throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.listJDBCFactoryTypes
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listJDBCFactoriesByType(java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.listJDBCFactoriesByType
in interface RepositoryAccessor
factoryType
- the specified factory type.HTTPFabricException
public void importJDBCFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.importJDBCFactory
in interface RepositoryAccessor
directory
- the directory from which the factory will be imported.factoryName
- the type of the factory to be imported.factoryType
- the name of the factory to be imported.HTTPFabricException
public void exportJDBCFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
jdbc
area of the Repository.exportJDBCFactory
in interface RepositoryAccessor
directory
- the directory where the factory will be exported.factoryName
- the name of the factory to be exported.factoryType
- the type of the factory to be exported.HTTPFabricException
public void saveClientFactory(ClientFactory factory) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.saveClientFactory
in interface RepositoryAccessor
factory
- the factory to be saved.HTTPFabricException
public ClientFactory loadClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.loadClientFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.HTTPFabricException
public void removeClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.removeClientFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.HTTPFabricException
public boolean existsClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.existsClientFactory
in interface RepositoryAccessor
factoryName
- the name of the factory to be checked.factoryType
- the name of the factory to be checked.true
if the specified factory exists, false
otherwise.HTTPFabricException
public java.util.List listClientFactoryNames() throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.listClientFactoryNames
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listClientFactoryTypes() throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.listClientFactoryTypes
in interface RepositoryAccessor
HTTPFabricException
public java.util.List listClientFactoriesByType(java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.listClientFactoriesByType
in interface RepositoryAccessor
factoryType
- the specified factory type.HTTPFabricException
public void importClientFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.importClientFactory
in interface RepositoryAccessor
directory
- the directory from which the factory will be imported.factoryName
- the type of the factory to be imported.factoryType
- the name of the factory to be imported.HTTPFabricException
public void exportClientFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws HTTPFabricException
RepositoryAccessor
clients
area of the Repository.exportClientFactory
in interface RepositoryAccessor
directory
- the directory where the factory will be exported.factoryName
- the name of the factory to be exported.factoryType
- the type of the factory to be exported.HTTPFabricException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.