Class ThemeMgtServiceClient

java.lang.Object
org.wso2.carbon.theme.mgt.ui.clients.ThemeMgtServiceClient

public class ThemeMgtServiceClient extends Object
  • Constructor Details

    • ThemeMgtServiceClient

      public ThemeMgtServiceClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configContext) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • ThemeMgtServiceClient

      public ThemeMgtServiceClient(String cookie, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
    • ThemeMgtServiceClient

      public ThemeMgtServiceClient(javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws org.wso2.carbon.registry.core.exceptions.RegistryException
      Throws:
      org.wso2.carbon.registry.core.exceptions.RegistryException
  • Method Details

    • getResourceTreeEntry

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.ResourceTreeEntryBean getResourceTreeEntry(String resourcePath) throws Exception
      Throws:
      Exception
    • getContent

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.ContentBean getContent(javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • getCollectionContent

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.CollectionContentBean getCollectionContent(javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • getResourceData

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.common.xsd.ResourceData[] getResourceData(String[] paths) throws Exception
      Throws:
      Exception
    • addCollection

      public String addCollection(String parentPath, String collectionName, String mediaType, String description) throws Exception
      Throws:
      Exception
    • addResource

      public void addResource(String path, String mediaType, String description, DataHandler content, String symlinkLocation, String tenantPass) throws Exception
      Throws:
      Exception
    • importResource

      public void importResource(String parentPath, String resourceName, String mediaType, String description, String fetchURL, String symlinkLocation, boolean isAsync, String tenantPass) throws Exception
      Throws:
      Exception
    • addTextResource

      public void addTextResource(String parentPath, String fileName, String mediaType, String description, String content) throws Exception
      Throws:
      Exception
    • getMetadata

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.MetadataBean getMetadata(javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • getMetadata

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.MetadataBean getMetadata(javax.servlet.http.HttpServletRequest request, String root) throws Exception
      Throws:
      Exception
    • getSessionResourcePath

      public String getSessionResourcePath() throws Exception
      Throws:
      Exception
    • getTextContent

      public String getTextContent(javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception
    • updateTextContent

      public void updateTextContent(String resourcePath, String contentText) throws Exception
      Throws:
      Exception
    • getContentDownloadBean

      public org.wso2.carbon.theme.mgt.stub.registry.resource.stub.beans.xsd.ContentDownloadBean getContentDownloadBean(String path) throws Exception
      Throws:
      Exception
    • renameResource

      public void renameResource(String parentPath, String oldResourcePath, String newResourceName) throws Exception
      Throws:
      Exception
    • delete

      public void delete(String pathToDelete) throws Exception
      Throws:
      Exception
    • getAllPaths

      public String[] getAllPaths() throws Exception
      Throws:
      Exception
    • getAllThemes

      public String[] getAllThemes(String tenantPass) throws Exception
      Throws:
      Exception
    • applyTheme

      public void applyTheme(String themeName, String tenantPass) throws Exception
      Throws:
      Exception