public class Axis2RepoManager
extends org.wso2.carbon.core.AbstractAdmin
Constructor and Description |
---|
Axis2RepoManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteLib(String libPath) |
DataHandler |
downloadArtifact(String filePath)
Downloads the relevant artifacts from the repository
|
DirectoryStructureMetaData |
getDirectoryStructure() |
boolean |
restartAxis2Server()
This method is used to restart the Axis2 server after an artifact has been uploaded.
|
boolean |
uploadArtifact(Axis2ArtifactUploadData[] artifactUploadDataList,
String fileUploadDir) |
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public DirectoryStructureMetaData getDirectoryStructure() throws org.json.JSONException
org.json.JSONException
public boolean uploadArtifact(Axis2ArtifactUploadData[] artifactUploadDataList, String fileUploadDir) throws IOException
artifactUploadDataList
- List containing the Axis2 archive files that are to be uploadedfileUploadDir
- The name of the directory to upload the atrifactsIOException
- Thrown if an error occurs while uploading the filespublic boolean deleteLib(String libPath) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public boolean restartAxis2Server() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
- If restarting the server in case of a super tenant
reload request failspublic DataHandler downloadArtifact(String filePath)
filePath
- path to the artifacts that should be downloaded, relative to the tenants repositoryCopyright © 2017 WSO2. All rights reserved.