public class DSMigrationTool extends Object
| Constructor and Description |
|---|
DSMigrationTool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dashboardGadgetUpdater(org.json.simple.JSONArray gadgetArr)
update the gadgetId of gadgets in the dashboard json with the modified gadgetID
|
protected void |
gadgetJSONUpdater(File artifactPath)
Update the gadgetJSON in the gadgets folders.iterate through all the gadgets and update the gadget jsons
|
protected String |
replace(String srcWord,
String toReplace,
String replacement)
Replace a specific word from specific text using given replacement text
|
void |
setTenantDomain(String tenantDomain)
set tenant domain in portal app migration for logging purposes
|
protected void |
updateDashboardBlocks(org.json.simple.JSONArray blocksArray)
update the blocks section of dashboard json in order to compatible with carbon-dashboards version 1.0.15+
|
protected void gadgetJSONUpdater(File artifactPath)
artifactPath - artifact path which consists the gadgets foldersprotected String replace(String srcWord, String toReplace, String replacement)
srcWord - original stringtoReplace - text to be replacedreplacement - replacement textprotected void updateDashboardBlocks(org.json.simple.JSONArray blocksArray)
blocksArray - blocks array dashboard jsonprotected void dashboardGadgetUpdater(org.json.simple.JSONArray gadgetArr)
gadgetArr - gadgets Array to updatepublic void setTenantDomain(String tenantDomain)
tenantDomain - given tenantIdCopyright © 2016 WSO2. All rights reserved.