Class ResourceAdminServiceClient

java.lang.Object
org.wso2.am.admin.clients.registry.ResourceAdminServiceClient

public class ResourceAdminServiceClient extends Object
  • Constructor Details

    • ResourceAdminServiceClient

      public ResourceAdminServiceClient(String serviceUrl, String sessionCookie) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • ResourceAdminServiceClient

      public ResourceAdminServiceClient(String backEndUrl, String userName, String password) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
  • Method Details

    • addResource

      public boolean addResource(String destinationPath, String mediaType, String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • getResource

      public org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] getResource(String destinationPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • getCollectionContent

      public org.wso2.carbon.registry.resource.stub.beans.xsd.CollectionContentBean getCollectionContent(String destinationPath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • deleteResource

      public boolean deleteResource(String destinationPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addWSDL

      public void addWSDL(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addWADL

      public void addWADL(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addSchema

      public void addSchema(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addPolicy

      public void addPolicy(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • uploadArtifact

      public void uploadArtifact(String description, DataHandler dh) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addCollection

      public String addCollection(String parentPath, String collectionName, String mediaType, String description) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addSymbolicLink

      public void addSymbolicLink(String parentPath, String name, String targetPath) throws org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException, RemoteException
      Throws:
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      RemoteException
    • addTextResource

      public void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • addResourcePermission

      public void addResourcePermission(String pathToAuthorize, String roleToAuthorize, String actionToAuthorize, String permissionType) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceResourceServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceResourceServiceExceptionException
    • getProperty

      public String getProperty(String resourcePath, String key) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getMetadata

      public org.wso2.carbon.registry.resource.stub.beans.xsd.MetadataBean getMetadata(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getResourceContent

      public org.wso2.carbon.registry.resource.stub.beans.xsd.ContentBean getResourceContent(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getResourceData

      public org.wso2.carbon.registry.resource.stub.common.xsd.ResourceData[] getResourceData(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getHumanReadableMediaTypes

      public String getHumanReadableMediaTypes() throws Exception
      Throws:
      Exception
    • getMimeTypeFromHuman

      public String getMimeTypeFromHuman(String mediaType) throws Exception
      Throws:
      Exception
    • updateTextContent

      public void updateTextContent(String path, String content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • copyResource

      public void copyResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • moveResource

      public void moveResource(String parentPath, String oldResourcePath, String destinationPath, String targetName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getVersionPaths

      public org.wso2.carbon.registry.resource.stub.beans.xsd.VersionPath[] getVersionPaths(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getVersionsBean

      public org.wso2.carbon.registry.resource.stub.beans.xsd.VersionsBean getVersionsBean(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • createVersion

      public void createVersion(String resourcePath) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • deleteVersionHistory

      public void deleteVersionHistory(String path, String snapshotID) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • restoreVersion

      public boolean restoreVersion(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getTextContent

      public String getTextContent(String path) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • getPermission

      public org.wso2.carbon.registry.resource.stub.beans.xsd.PermissionBean getPermission(String path) throws Exception
      Throws:
      Exception
    • renameResource

      public void renameResource(String parentPath, String oldResourcePath, String newResourceName) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • addExtension

      public boolean addExtension(String name, DataHandler content) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • removeExtension

      public boolean removeExtension(String name) throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • listExtensions

      public String[] listExtensions() throws RemoteException, org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException
    • setDescription

      public void setDescription(String path, String description) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.info.stub.RegistryExceptionException
    • getContentDownloadBean

      public org.wso2.carbon.registry.resource.stub.beans.xsd.ContentDownloadBean getContentDownloadBean(String path) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.info.stub.RegistryExceptionException
    • getResourceTreeEntryBean

      public org.wso2.carbon.registry.resource.stub.beans.xsd.ResourceTreeEntryBean getResourceTreeEntryBean(String resourcePath) throws RemoteException, org.wso2.carbon.registry.info.stub.RegistryExceptionException
      Throws:
      RemoteException
      org.wso2.carbon.registry.info.stub.RegistryExceptionException