Package org.wso2.carbon.theme.mgt.util
Class ThemeUtil
java.lang.Object
org.wso2.carbon.theme.mgt.util.ThemeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyTheme(String themeName, String tenantPass, org.wso2.carbon.registry.core.session.UserRegistry systemTenantRegistry) static voidapplyThemeForDomain(String themeName, org.wso2.carbon.registry.core.session.UserRegistry systemTenantRegistry) static String[]static StringgetCurrentTheme(String tenantPass, org.wso2.carbon.registry.core.session.UserRegistry registry) static org.wso2.carbon.user.core.service.RealmServicestatic org.wso2.carbon.registry.core.service.RegistryServicestatic org.wso2.carbon.registry.core.session.UserRegistrygetThemeMgtSystemRegistry(String tenantPass) static org.wso2.carbon.registry.core.session.UserRegistrygetThemeRegistry(org.wso2.carbon.registry.core.Registry registry) static org.wso2.carbon.registry.core.session.UserRegistrygetThemeRegistryFromTenantPass(String tenantPass) static voidstatic voidloadTheme(int tenantId) static voidremoveTheUUID(String tenantPass) static voidsetRealmService(org.wso2.carbon.user.core.service.RealmService service) static voidsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService service) static voidtransferAllThemesToRegistry(File rootDirectory, org.wso2.carbon.registry.core.Registry registry, String registryPath)
-
Constructor Details
-
ThemeUtil
public ThemeUtil()
-
-
Method Details
-
setRegistryService
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService service) -
getRegistryService
public static org.wso2.carbon.registry.core.service.RegistryService getRegistryService() -
setRealmService
public static void setRealmService(org.wso2.carbon.user.core.service.RealmService service) -
getRealmService
public static org.wso2.carbon.user.core.service.RealmService getRealmService() -
getThemeMgtSystemRegistry
public static org.wso2.carbon.registry.core.session.UserRegistry getThemeMgtSystemRegistry(String tenantPass) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
removeTheUUID
public static void removeTheUUID(String tenantPass) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
transferAllThemesToRegistry
public static void transferAllThemesToRegistry(File rootDirectory, org.wso2.carbon.registry.core.Registry registry, String registryPath) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getThemeRegistryFromTenantPass
public static org.wso2.carbon.registry.core.session.UserRegistry getThemeRegistryFromTenantPass(String tenantPass) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getThemeRegistry
public static org.wso2.carbon.registry.core.session.UserRegistry getThemeRegistry(org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
loadResourceThemes
public static void loadResourceThemes() throws org.wso2.carbon.registry.core.exceptions.RegistryException- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getAvailableThemes
public static String[] getAvailableThemes() throws org.wso2.carbon.registry.core.exceptions.RegistryException- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
loadTheme
public static void loadTheme(int tenantId) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
applyTheme
public static void applyTheme(String themeName, String tenantPass, org.wso2.carbon.registry.core.session.UserRegistry systemTenantRegistry) throws Exception - Throws:
Exception
-
applyThemeForDomain
public static void applyThemeForDomain(String themeName, org.wso2.carbon.registry.core.session.UserRegistry systemTenantRegistry) throws org.wso2.carbon.registry.core.exceptions.RegistryException - Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException
-
getCurrentTheme
public static String getCurrentTheme(String tenantPass, org.wso2.carbon.registry.core.session.UserRegistry registry) throws Exception - Throws:
Exception
-