Class ThemeMgtService
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.theme.mgt.services.ThemeMgtService
public class ThemeMgtService
extends org.wso2.carbon.core.AbstractAdmin
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCollection(String parentPath, String collectionName, String mediaType, String description) voidaddResource(String path, String mediaType, String description, DataHandler content, String symlinkLocation, String tenantPass) voidaddTextResource(String parentPath, String fileName, String mediaType, String description, String content) voidapplyTheme(String themeName, String tenantPass) voidString[]String[]getAllThemes(String tenantPass) org.wso2.carbon.registry.resource.beans.CollectionContentBeangetCollectionContent(String path) org.wso2.carbon.registry.resource.beans.ContentBeangetContentBean(String path) org.wso2.carbon.registry.resource.beans.ContentDownloadBeangetContentDownloadBean(String path) org.wso2.carbon.registry.resource.beans.MetadataBeangetMetadata(String path) org.wso2.carbon.registry.common.ResourceData[]getResourceData(String[] paths) org.wso2.carbon.registry.resource.beans.ResourceTreeEntryBeangetResourceTreeEntry(String resourcePath) getTextContent(String path) voidimportResource(String parentPath, String resourceName, String mediaType, String description, String fetchURL, String symlinkLocation, String tenantPass) voidrenameResource(String parentPath, String oldResourcePath, String newResourceName) voidupdateTextContent(String resourcePath, String contentText) Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserId, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
ThemeMgtService
public ThemeMgtService()
-
-
Method Details
-
getResourceTreeEntry
public org.wso2.carbon.registry.resource.beans.ResourceTreeEntryBean getResourceTreeEntry(String resourcePath) throws Exception - Throws:
Exception
-
getContentBean
public org.wso2.carbon.registry.resource.beans.ContentBean getContentBean(String path) throws Exception - Throws:
Exception
-
getCollectionContent
public org.wso2.carbon.registry.resource.beans.CollectionContentBean getCollectionContent(String path) throws Exception - Throws:
Exception
-
getResourceData
public org.wso2.carbon.registry.common.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, 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.registry.resource.beans.MetadataBean getMetadata(String path) throws Exception - Throws:
Exception
-
getSessionResourcePath
- Throws:
Exception
-
getTextContent
- Throws:
Exception
-
updateTextContent
- Throws:
Exception
-
getContentDownloadBean
public org.wso2.carbon.registry.resource.beans.ContentDownloadBean getContentDownloadBean(String path) throws Exception - Throws:
Exception
-
renameResource
public void renameResource(String parentPath, String oldResourcePath, String newResourceName) throws Exception - Throws:
Exception
-
delete
- Throws:
Exception
-
getAllPaths
- Throws:
Exception
-
getAllThemes
- Throws:
Exception
-
applyTheme
- Throws:
Exception
-