public class ResourceAdminServiceClient extends Object
| Constructor and Description |
|---|
ResourceAdminServiceClient(String serviceUrl,
String sessionCookie) |
ResourceAdminServiceClient(String backEndUrl,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
addCollection(String parentPath,
String collectionName,
String mediaType,
String description) |
boolean |
addExtension(String name,
DataHandler content) |
void |
addPolicy(String description,
DataHandler dh) |
boolean |
addResource(String destinationPath,
String mediaType,
String description,
DataHandler dh) |
void |
addResourcePermission(String pathToAuthorize,
String roleToAuthorize,
String actionToAuthorize,
String permissionType) |
void |
addSchema(String description,
DataHandler dh) |
void |
addSymbolicLink(String parentPath,
String name,
String targetPath) |
void |
addTextResource(String parentPath,
String fileName,
String mediaType,
String description,
String content) |
void |
addWADL(String description,
DataHandler dh) |
void |
addWSDL(String description,
DataHandler dh) |
void |
copyResource(String parentPath,
String oldResourcePath,
String destinationPath,
String targetName) |
void |
createVersion(String resourcePath) |
boolean |
deleteResource(String destinationPath) |
void |
deleteVersionHistory(String path,
String snapshotID) |
org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean |
getCollectionContent(String destinationPath) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean |
getContentDownloadBean(String path) |
String |
getHumanReadableMediaTypes() |
org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean |
getMetadata(String resourcePath) |
String |
getMimeTypeFromHuman(String mediaType) |
org.wso2.carbon.registry.resource.stub.beans.xsd.PermissionBean |
getPermission(String path) |
String |
getProperty(String resourcePath,
String key) |
org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] |
getResource(String destinationPath) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ContentBean |
getResourceContent(String resourcePath) |
org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] |
getResourceData(String resourcePath) |
org.wso2.carbon.registry.resource.stub.beans.xsd.ResourceTreeEntryBean |
getResourceTreeEntryBean(String resourcePath) |
String |
getTextContent(String path) |
org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath[] |
getVersionPaths(String path) |
org.wso2.carbon.registry.resource.stub.beans.xsd.VersionsBean |
getVersionsBean(String path) |
String[] |
listExtensions() |
void |
moveResource(String parentPath,
String oldResourcePath,
String destinationPath,
String targetName) |
boolean |
removeExtension(String name) |
void |
renameResource(String parentPath,
String oldResourcePath,
String newResourceName) |
boolean |
restoreVersion(String path) |
void |
setDescription(String path,
String description) |
void |
updateTextContent(String path,
String content) |
void |
uploadArtifact(String description,
DataHandler dh) |
public ResourceAdminServiceClient(String serviceUrl, String sessionCookie) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic boolean addResource(String destinationPath, String mediaType, String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] getResource(String destinationPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean getCollectionContent(String destinationPath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic boolean deleteResource(String destinationPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addWSDL(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addWADL(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addSchema(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addPolicy(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void uploadArtifact(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic String addCollection(String parentPath, String collectionName, String mediaType, String description) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addSymbolicLink(String parentPath, String name, String targetPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionRemoteExceptionpublic void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void addResourcePermission(String pathToAuthorize, String roleToAuthorize, String actionToAuthorize, String permissionType) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceResourceServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceResourceServiceExceptionExceptionpublic String getProperty(String resourcePath, String key) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean getMetadata(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.ContentBean getResourceContent(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] getResourceData(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic String getHumanReadableMediaTypes() throws Exception
Exceptionpublic String getMimeTypeFromHuman(String mediaType) throws Exception
Exceptionpublic void updateTextContent(String path, String content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void copyResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void moveResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath[] getVersionPaths(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.VersionsBean getVersionsBean(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void createVersion(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void deleteVersionHistory(String path, String snapshotID) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic boolean restoreVersion(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic String getTextContent(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.PermissionBean getPermission(String path) throws Exception
Exceptionpublic void renameResource(String parentPath, String oldResourcePath, String newResourceName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic boolean addExtension(String name, DataHandler content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic boolean removeExtension(String name) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic String[] listExtensions() throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
RemoteExceptionorg.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionExceptionpublic void setDescription(String path, String description) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
RemoteExceptionorg.wso2.carbon.registry.info.stub.RegistryExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean getContentDownloadBean(String path) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
RemoteExceptionorg.wso2.carbon.registry.info.stub.RegistryExceptionExceptionpublic org.wso2.carbon.registry.resource.stub.beans.xsd.ResourceTreeEntryBean getResourceTreeEntryBean(String resourcePath) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
RemoteExceptionorg.wso2.carbon.registry.info.stub.RegistryExceptionExceptionCopyright © 2022 WSO2 Inc. All rights reserved.