public class ThemeManagerHostObject
extends org.mozilla.javascript.ScriptableObject
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_PORTAL_THEME_FILE_EXTENSION |
| Constructor and Description |
|---|
ThemeManagerHostObject() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUserPortalThemeInfo(String tenantDomain,
String name,
String description)
Add user-portal theme information for given tenant.
|
static void |
deleteCustomThemeTempDirectory(String customThemeFilePath)
Delete user portal theme temp directory
|
static void |
deleteUserPortalThemeInfo(String tenantDomain)
Remove user-portal theme information for given tenant.
|
static String |
downloadCustomTheme(String tenantDomain)
Generate user portal theme temp zip file.
|
String |
getClassName() |
static org.wso2.carbon.appmgt.api.model.UserPortalTheme |
getUserPortalTheme(String tenantDomain)
Get user-portal theme for a given tenant.
|
static Path |
getUserPortalThemePathPerTenant(String tenantDomain)
Get user portal custom theme path for given tenant.
|
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr) |
static boolean |
jsFunction_addCustomTheme(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Add the custom theme for given tenant.
|
static void |
jsFunction_deleteCustomTheme(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Remove deployed custom theme for the given tenant.
|
static void |
jsFunction_deleteCustomThemeTempDirectory(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Remove deployed custom theme for the given tenant.
|
static String |
jsFunction_downloadCustomTheme(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Download the custom theme for given tenant.
|
static org.json.simple.JSONObject |
jsFunction_getDeployedThemeInfo(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
Get the custom themes information deployed in the given tenant.
|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototypepublic static final String USER_PORTAL_THEME_FILE_EXTENSION
public String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException,
org.wso2.carbon.appmgt.api.AppManagementException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic static boolean jsFunction_addCustomTheme(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.wso2.carbon.appmgt.api.AppManagementException
cx - thisObj - args - funObj - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static String jsFunction_downloadCustomTheme(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] args, org.mozilla.javascript.Function funObj) throws org.wso2.carbon.appmgt.api.AppManagementException
cx - thisObj - args - funObj - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static org.json.simple.JSONObject jsFunction_getDeployedThemeInfo(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.wso2.carbon.appmgt.api.AppManagementException
cx - thisObj - args - funObj - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static void jsFunction_deleteCustomThemeTempDirectory(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.wso2.carbon.appmgt.api.AppManagementException
cx - thisObj - args - funObj - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static void jsFunction_deleteCustomTheme(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws org.wso2.carbon.appmgt.api.AppManagementException
cx - thisObj - args - funObj - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static String downloadCustomTheme(String tenantDomain) throws org.wso2.carbon.appmgt.api.AppManagementException
tenantDomain - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static void deleteCustomThemeTempDirectory(String customThemeFilePath) throws org.wso2.carbon.appmgt.api.AppManagementException
customThemeFilePath - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic static Path getUserPortalThemePathPerTenant(String tenantDomain)
tenantDomain - public static void addUserPortalThemeInfo(String tenantDomain, String name, String description) throws org.wso2.carbon.appmgt.api.AppManagementException
tenantDomain - Tenant Domainname - Theme namedescription - Theme descriptionorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic static void deleteUserPortalThemeInfo(String tenantDomain) throws org.wso2.carbon.appmgt.api.AppManagementException
tenantDomain - Tenant Domainorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic static org.wso2.carbon.appmgt.api.model.UserPortalTheme getUserPortalTheme(String tenantDomain) throws org.wso2.carbon.appmgt.api.AppManagementException
tenantDomain - org.wso2.carbon.appmgt.api.AppManagementExceptionCopyright © 2017 WSO2. All rights reserved.