public class RegistryBasedRepository extends Object
Constructor and Description |
---|
RegistryBasedRepository(org.wso2.carbon.registry.core.session.UserRegistry configSystemRegistry,
String registryPath,
String fileSystemRepo) |
Modifier and Type | Method and Description |
---|---|
void |
deleteArtifactFromRegistry(String fileSystemPath)
When a path to an artifact which is in the file system repository is given, deletes that
artifact from the registry based repository.
|
void |
storeArtifactToRegistry(InputStream artifactStream,
String resourcePath)
Stores an artifact in the repository which is in Registry
|
void |
updateFileSystemFromRegistry()
Copies the repository in the given path to the local file system and returns the path.
|
public void updateFileSystemFromRegistry()
public void storeArtifactToRegistry(InputStream artifactStream, String resourcePath) throws Exception
artifactStream
- - input stream of the artifactresourcePath
- - path to storeException
- - error in accessing registrypublic void deleteArtifactFromRegistry(String fileSystemPath)
fileSystemPath
- - absolute path of the artifact in the file systemCopyright © 2016 WSO2 Inc. All rights reserved.