public interface RepositoryAccessor
Title: Fabric Repository Framework
Description: Defines an accessor to the Repository.
Copyright: Copyright (c) 2011
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.
|
java.lang.String getNodeName()
boolean isOpened()
FabricConnection
is closed or
if the Fabric node containing the Repository is detached from the Fabric.true
if the accessor is opened, false
otherwise.SysId getSystemId() throws RepositoryAccessorException
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.lang.String getProviderClass() throws RepositoryAccessorException
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.lang.String getVendor() throws RepositoryAccessorException
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.lang.String getInstallRoot() throws RepositoryAccessorException
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.boolean isTypeResolutionCapable() throws RepositoryAccessorException
true
if the Repository supports object type resolution, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.boolean isObjectReferenceCapable() throws RepositoryAccessorException
true
if the Repository supports object references, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.boolean isGlobalsCapable() throws RepositoryAccessorException
true
if the Repository supports global variables, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.boolean isTransactionCapable() throws RepositoryAccessorException
true
if the Repository supports transactions, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.util.Map getEnvironment() throws RepositoryAccessorException
RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.lang.Object addEnvironmentVariable(java.lang.String name, java.lang.Object value) throws RepositoryAccessorException
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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.java.lang.Object removeEnvironmentVariable(java.lang.String name) throws RepositoryAccessorException
name
- the name of the variable to be removed.null
if such variable did not exist.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.boolean inXact() throws RepositoryAccessorException
true
if the Repository is currently engaged in a transaction, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.com.streamscape.repository.filesystem.FSFile getRootDirectory() throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.FSFile
object corresponding to the root directory.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void createDirectory(com.streamscape.repository.filesystem.FSFile baseDirectory, java.lang.String subDirectoryName) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.baseDirectory
- the name of the base directory.subDirectoryName
- the name of the sub-directory.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.com.streamscape.repository.filesystem.FSFile createDirectory(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the directory to be created.FSFile
object corresponding to the created directory.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void createFile(java.lang.String path, byte[] content, long expiration) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void createFile(java.lang.String path, java.io.File contentFile, long expiration) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void createFile(java.lang.String path, java.io.InputStream stream, int size, long expiration) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void deleteDirectory(java.lang.String path, boolean isRecursive) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the directory to be deleted.isRecursive
- the flag indicating if all sub-directories must be deleted.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void deleteFile(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the file to be deleted.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.boolean existsFile(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the file to be checked.true
if the specified file exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.lang.String getFileContent(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the specified file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.byte[] getFileContentBytes(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the specified file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void getFileContent(java.lang.String path, java.io.OutputStream stream) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the specified file.stream
- the output stream for writing the file content.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.com.streamscape.repository.filesystem.FSFile getDetails(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the specified file.FSFile
object corresponding to the specified file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List getDetails(java.util.Collection paths) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.paths
- the list of the specified paths.FSFile
objects corresponding to the specified locations.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.boolean isDirectory(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to be checked.true
if the specified path corresponds to the existing directory, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.boolean isFile(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to be checked.true
if the specified path corresponds to the existing file, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listFiles(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listDirectories(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listAllArtifacts(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List getFilesDetails(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List getDirectoriesDetails(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List getAllArtifactsDetails(java.lang.String path) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the specified path.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.com.streamscape.repository.filesystem.FSFile renameArtifact(com.streamscape.repository.filesystem.FSFile oldFile, java.lang.String newName) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.oldFile
- the file (or directory) to be renamed.newName
- the new name.FSFile
object corresponding to the new file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void renameArtifact(java.lang.String oldPath, java.lang.String newName) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.oldPath
- the path to the file (or directory) to be renamed.newName
- the new name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void updateFile(java.lang.String path, byte[] content) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the existing file to be updated.content
- the content to be put into the updated file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void updateFile(java.lang.String path, java.io.File contentFile) throws RepositoryAccessorException, RepositoryException
contentFile
) into the specified file.
artifacts
area of the Repository.path
- the path to the existing file to be updated.contentFile
- the file with the content to be put into the updated file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void updateFile(java.lang.String path, java.io.InputStream stream, int size) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void setFileExpiration(java.lang.String path, long expiration) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the specified file.expiration
- the expiration time to be set.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void appendFile(java.lang.String path, byte[] content) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.path
- the path to the existing file to be updated.content
- the content to be put into the updated file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void appendFile(java.lang.String path, java.io.File contentFile) throws RepositoryAccessorException, RepositoryException
contentFile
file) to the specified file.
artifacts
area of the Repository.path
- the path to the existing file to be updated.contentFile
- the file with the content to be put into the updated file.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void appendFile(java.lang.String path, java.io.InputStream stream, int size) throws RepositoryAccessorException, RepositoryException
artifacts
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void saveServiceConfiguration(ServiceConfigurationObject sco) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.sco
- the Service Configuration Object to be saved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified SCO already exists or
if some error occurs in the Repository.ServiceConfigurationObject loadServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.serviceName
- the specified service name.serviceType
- the specified service type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void removeServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.serviceName
- the specified service name.serviceType
- the specified service type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.boolean existsServiceConfiguration(java.lang.String serviceName, java.lang.String serviceType) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.serviceName
- the specified service name.serviceType
- the specified service name.true
if the corresponding Service Configuration Object exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listServiceTypes() throws RepositoryAccessorException, RepositoryException
services
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listServiceNames() throws RepositoryAccessorException, RepositoryException
services
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listServicesByType(java.lang.String serviceType) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.serviceType
- the specified service type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void importServiceConfiguration(java.lang.String directory, java.lang.String serviceName, java.lang.String serviceType, boolean validate) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified SCO already exists or
if some other error occurs in the Repository.void exportServiceConfiguration(java.lang.String directory, java.lang.String serviceName, java.lang.String serviceType) throws RepositoryAccessorException, RepositoryException
services
area of the Repository.directory
- the directory where the SCO file will be exported.serviceName
- the specified service name.serviceType
- the specified service type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified SCO does not exist or
if some other error occurs in the Repository.java.lang.String resolveSemanticType(java.lang.String typeName) throws RepositoryAccessorException, RepositoryException
Semantic Type
with specified name.
types
area of the Repository.typeName
- the name of the type to be resolved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified type is not found or
if some other error occurs in the Repository.java.lang.String resolveSemanticClass(java.lang.String className) throws RepositoryAccessorException, RepositoryException
types
area of the Repository.className
- the implementing class of the type to be resolved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified type is not found or
if some other error occurs in the Repository.SemanticType getSemanticType(java.lang.String typeName) throws RepositoryAccessorException, RepositoryException
Semantic Type
with the specified name.
types
area of the Repository.typeName
- the name of the type to be returned.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified type is not found or
if some other error occurs in the Repository.boolean existsSemanticType(java.lang.String typeName) throws RepositoryAccessorException, RepositoryException
Semantic Type
with the specified name exists in the Repository.
types
area of the Repository.typeName
- the name of the type to be checked.true
if the specified type exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listSemanticTypes() throws RepositoryAccessorException, RepositoryException
types
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List getSemanticTypes() throws RepositoryAccessorException, RepositoryException
types
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.ReferenceContext getRootContext() throws RepositoryAccessorException, RepositoryException
objects
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.ReferenceContext createReferenceContext(java.lang.String namespace) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
namespace
- the fully qualified name of the sub-context to be created.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if some error occurs in the Repository.ReferenceContext createReferenceContext(ReferenceContext parentContext, java.lang.String namespace) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
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.
parentContext
- the parent context.namespace
- the name of the sub-context to be created.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if some error occurs in the Repository.void destroyReferenceContext(ReferenceContext context) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
context
- the context to be removed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if some error occurs in the Repository.void setReferenceContext(ReferenceContext context) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.context
- the context to be set.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.void resetReferenceContext() throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.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.ReferenceContext getReferenceContext() throws RepositoryAccessorException, RepositoryException
objects
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.ReferenceContext lookupReferenceContext(java.lang.String namespace) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
namespace
is '.' the current active context will be returned.
If namespace
is '/' the root context will be returned.
objects
area of the Repository.namespace
- the name of the context to be looked up.or null
for initial root context.null
the corresponding context 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.boolean existsReferenceContext(java.lang.String namespace) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.namespace
- the name of the context to be looked up or null
for initial root context.null
the corresponding context 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.java.util.List listReferenceContexts() throws RepositoryAccessorException, RepositoryException
objects
area of the Repository.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.void bindObject(java.lang.String name, java.lang.Object object) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
name
- the name of the object to be bound.object
- the object to be bound.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if the specified named object is already bound or
if the corresponding semantic type does not exist or
if some other error occurs in the Repository.void rebindObject(java.lang.String name, java.lang.Object object) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
name
- the name of the object to be re-bound.object
- the object to be re-bound.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if the specified named object is not bound or
if some other error occurs in the Repository.void unbindObject(java.lang.String name) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
name
- the name of the object to be unbound.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if the specified named object is not bound or
if some other error occurs in the Repository.void renameObject(java.lang.String oldName, java.lang.String newName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.
This method is allowed only if the user has administrator rights.
oldName
- the old name of the object to be renamed.newName
- the new name of the object to be renamed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if a naming error occurs.RepositoryException
- if the user has not privileges to perform this operation or
if the old object is not bound or the new object is already bound or
if some error occurs in the Repository.java.lang.Object lookupObject(java.lang.String name) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.name
- the name of the object to be looked up.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.java.lang.Object lookupObject(java.lang.String namespace, java.lang.String objectName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.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.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.java.lang.Object lookupObject(ReferenceContext context, java.lang.String objectName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.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.boolean existsObject(java.lang.String name) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.name
- the name of the object to be checked.true
if the specified object exists, false
otherwise.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.java.util.List listQualifiedObjectNames() throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.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.java.util.List listQualifiedObjectNames(ReferenceContext context) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.context
- the specified context.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.java.util.List listObjectNames(java.lang.String objectType) throws RepositoryAccessorException, RepositoryException
objectType
is not null
the object names of the corresponding type will be returned.
objects
area of the Repository.objectType
- the specified object type.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.java.util.List listObjectNames(ReferenceContext context, java.lang.String objectType) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objectType
is not null
the object names of the corresponding type will be returned.
objects
area of the Repository.context
- the specified context.objectType
- the specified object type.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.java.util.List listBindings() throws RepositoryAccessorException, RepositoryException
objects
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listBindings(ReferenceContext context) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
objects
area of the Repository.context
- the list of all bindings.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.void addPackage(Package pkg) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.
pkg
area of the Repository.pkg
- the package to be added.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package already exists or
if any JAR of the specified package is missed or
if some other error occurs in the Repository.void addPackage(Package pkg, java.io.File[] jars) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.
RepositoryAccessor
.pkg
- the package to be added.jars
- JAR files of the package.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package already exists or
if some other error occurs in the Repository.Package getPackage(PackageType type, java.lang.String name) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.type
- the type of the package to be returned.name
- the name of the package to be returned.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package does not exist or
if some other error occurs in the Repository.Package getPackage(java.lang.String fullName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
sdo.TestPackage
).
pkg
area of the Repository.fullName
- the full name of the package to be returned.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if the specified name has invalid format.RepositoryException
- if the specified package does not exist or
if some other error occurs in the Repository.Package getPackageByArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.jarName
- the specified JAR name.null
if the archive is not contained in any package.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void removePackage(PackageType type, java.lang.String name, boolean withJars) throws RepositoryAccessorException, RepositoryException
withJars
to remove package's jar files.
pkg
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the user has not privileges to perform this operation or
if the package is in use and cannot be removed or
if some error occurs in the Repository.void removePackage(java.lang.String fullName, boolean withJars) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
sdo.TestPackage
).
withJars
to remove package's jar files.
pkg
area of the Repository.fullName
- the full name of the package to be removed.withJars
- the flag indicating if the package will be removed with its jar files.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if the specified name has invalid format.RepositoryException
- if the user has not privileges to perform this operation or
if the package is in use and cannot be removed or
if some error occurs in the Repository.boolean existsPackage(PackageType type, java.lang.String name) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.boolean existsPackage(java.lang.String fullName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
sdo.TestPackage
).
pkg
area of the Repository.fullName
- the full name of the package to be checked.true
if the specified package exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if the specified name has invalid format.RepositoryException
- if some error occurs in the Repository.void updatePackage(Package pkg) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.
pkg
area of the Repository.pkg
- the package to be updated.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package does not exist or
if any JAR of the specified package is missed or
if some other error occurs in the Repository.void importPackage(java.lang.String directory, PackageType type, java.lang.String name) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package already exists or
if some other error occurs in the Repository.void importPackage(java.lang.String directory, java.lang.String fullName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
sdo.TestPackage
).
pkg
area of the Repository.directory
- the directory from which the package will be imported.fullName
- the full name of the package to be imported.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if the specified name has invalid format.RepositoryException
- if the specified package already exists or
if some other error occurs in the Repository.void exportPackage(java.lang.String directory, PackageType type, java.lang.String name) throws RepositoryAccessorException, RepositoryException
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.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified package does not exist or
if some other error occurs in the Repository.void exportPackage(java.lang.String directory, java.lang.String fullName) throws RepositoryAccessorException, javax.naming.NamingException, RepositoryException
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.directory
- the directory where the package will be exported.fullName
- the full name of the package to be exported.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.javax.naming.NamingException
- if the specified name has invalid format.RepositoryException
- if the specified package already exists or
if some other error occurs in the Repository.java.util.List listPackages() throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.RepositoryAccessorException
RepositoryException
java.util.List listPackagesByType(PackageType type) throws RepositoryAccessorException, RepositoryException
pkg
area of the Repository.type
- the type of packages which are to be found.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void addArchive(java.io.File jar) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.jar
- the JAR file to be added.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR already exists or
if some other error occurs in the Repository.void addArchive(java.lang.String jarName, byte[] jarContent) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.jarName
- the name of the JAR file to be added.jarContent
- the content of the AR file to be added.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR already exists or
if some other error occurs in the Repository.void removeArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.jarName
- the name of the JAR file to be removed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the user has not privileges to perform this operation or
if the specified JAR does not exist or
if this archive is loaded to the class loader or
if some other error occurs in the Repository.boolean existsArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.jarName
- the name of the JAR file to be checked.true
if the specified archive exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.byte[] getArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.jarName
- the specified JAR name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR does not exist or
if some other error occurs in the Repository.java.io.InputStream getArchiveStream(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.
RepositoryAccessor
.jarName
- the specified JAR name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR does not exist or
if some other error occurs in the Repository.java.net.URL getArchiveURL(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.
RepositoryAccessor
.jarName
- the specified JAR name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR does not exist or
if some other error occurs in the Repository.java.util.List getArchiveURLs() throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.
RepositoryAccessor
.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listArchives() throws RepositoryAccessorException, RepositoryException
lib
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void addExtensionArchive(java.io.File jar) throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.jar
- the JAR file to be added.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR already exists or
if some other error occurs in the Repository.void addExtensionArchive(java.lang.String jarName, byte[] jarContent) throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.jarName
- the name of the JAR file to be added.jarContent
- the content of the JAR file to be added.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR already exists or
if some other error occurs in the Repository.void removeExtensionArchive(java.lang.String jarName, boolean force) throws RepositoryAccessorException, RepositoryException
force
parameter to allow forced archive removal.
ext
area of the Repository.
This method is allowed only if the user has administrator rights.
jarName
- the name of the JAR file to be removed.force
- the flag indicating if the archive will be removed without checking for dependencies.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the user has not privileges to perform this operation or
if the specified JAR does not exist or
if some other error occurs in the Repository.boolean existsExtensionArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.jarName
- the name of the JAR file to be checked.true
if the specified archive exists, false
otherwise.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.byte[] getExtensionArchive(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.jarName
- the specified JAR name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR does not exist or
if some other error occurs in the Repository.java.net.URL getExtensionArchiveURL(java.lang.String jarName) throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.
RepositoryAccessor
.jarName
- the specified JAR name.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified JAR does not exist or
if some other error occurs in the Repository.java.util.List getExtensionArchiveURLs() throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.
RepositoryAccessor
.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listExtensionArchives() throws RepositoryAccessorException, RepositoryException
ext
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void saveTransportFactory(TransportFactory factory) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.factory
- the factory to be saved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some error occurs in the Repository.TransportFactory loadTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some error occurs in the Repository.void removeTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.boolean existsTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listTransportFactoryNames() throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listTransportFactoryTypes() throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listTransportFactoriesByType(java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.factoryType
- the specified factory type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void importTransportFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some other error occurs in the Repository.void exportTransportFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
factories
area of the Repository.directory
- the directory where the factory will be exported.factoryType
- the type of the factory to be exported.factoryName
- the name of the factory to be exported.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.void saveJDBCFactory(JDBCFactory factory) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.factory
- the factory to be saved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some error occurs in the Repository.JDBCFactory loadJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some error occurs in the Repository.void removeJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.boolean existsJDBCFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listJDBCFactoryNames() throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listJDBCFactoryTypes() throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listJDBCFactoriesByType(java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.factoryType
- the specified factory type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void importJDBCFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some other error occurs in the Repository.void exportJDBCFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
jdbc
area of the Repository.directory
- the directory where the factory will be exported.factoryType
- the type of the factory to be exported.factoryName
- the name of the factory to be exported.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.void saveClientFactory(ClientFactory factory) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.factory
- the factory to be saved.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some error occurs in the Repository.ClientFactory loadClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.factoryName
- the name of the factory to be loaded.factoryType
- the type of the factory to be loaded.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some error occurs in the Repository.void removeClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.factoryName
- the name of the factory to be removed.factoryType
- the type of the factory to be removed.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.boolean existsClientFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listClientFactoryNames() throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listClientFactoryTypes() throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.java.util.List listClientFactoriesByType(java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.factoryType
- the specified factory type.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if some error occurs in the Repository.void importClientFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.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.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory already exists or
if some other error occurs in the Repository.void exportClientFactory(java.lang.String directory, java.lang.String factoryName, java.lang.String factoryType) throws RepositoryAccessorException, RepositoryException
clients
area of the Repository.directory
- the directory where the factory will be exported.factoryType
- the type of the factory to be exported.factoryName
- the name of the factory to be exported.RepositoryAccessorException
- if the accessor is closed or some error occurs in the Exchange.RepositoryException
- if the specified factory does not exist or
if some other error occurs in the Repository.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.