Class Axis2RepoManager
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.repomanager.axis2.Axis2RepoManager
public class Axis2RepoManager
extends org.wso2.carbon.core.AbstractAdmin
Axis2 repository manager Admin service
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandownloadArtifact(String filePath) Downloads the relevant artifacts from the repositorybooleanThis method is used to restart the Axis2 server after an artifact has been uploaded.booleanuploadArtifact(Axis2ArtifactUploadData[] artifactUploadDataList, String fileUploadDir) Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
Axis2RepoManager
public Axis2RepoManager()
-
-
Method Details
-
getDirectoryStructure
- Throws:
org.json.JSONException
-
uploadArtifact
public boolean uploadArtifact(Axis2ArtifactUploadData[] artifactUploadDataList, String fileUploadDir) throws IOException - Parameters:
artifactUploadDataList- List containing the Axis2 archive files that are to be uploadedfileUploadDir- The name of the directory to upload the atrifacts- Returns:
- The status of the artifact upload process
- Throws:
IOException- Thrown if an error occurs while uploading the files
-
deleteLib
- Throws:
org.apache.axis2.AxisFault
-
restartAxis2Server
public boolean restartAxis2Server() throws org.apache.axis2.AxisFaultThis method is used to restart the Axis2 server after an artifact has been uploaded. This method is invoked via the management console.- Returns:
- The status of the Axis2 server restart success/failure
- Throws:
org.apache.axis2.AxisFault- If restarting the server in case of a super tenant reload request fails
-
downloadArtifact
Downloads the relevant artifacts from the repository- Parameters:
filePath- path to the artifacts that should be downloaded, relative to the tenants repository- Returns:
- the datahandler corresponding to the artifact that should be downloaded
-