|
|
@ -154,9 +154,11 @@ public class WhiteLabelManagementServiceImpl implements WhiteLabelManagementServ
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void resetToDefaultWhiteLabelTheme() throws MetadataManagementException {
|
|
|
|
public void resetToDefaultWhiteLabelTheme() throws MetadataManagementException {
|
|
|
|
|
|
|
|
int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(true);
|
|
|
|
WhiteLabelTheme whiteLabelTheme = getDefaultWhiteLabelTheme();
|
|
|
|
WhiteLabelTheme whiteLabelTheme = getDefaultWhiteLabelTheme();
|
|
|
|
Metadata metadata = constructWhiteLabelThemeMetadata(whiteLabelTheme);
|
|
|
|
Metadata metadata = constructWhiteLabelThemeMetadata(whiteLabelTheme);
|
|
|
|
DeviceManagementDataHolder.getInstance().getMetadataManagementService().updateMetadata(metadata);
|
|
|
|
DeviceManagementDataHolder.getInstance().getMetadataManagementService().updateMetadata(metadata);
|
|
|
|
|
|
|
|
WhiteLabelStorageUtil.deleteWhiteLabelImageForTenantIfExists(tenantId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|