void WidgetDAO::registerWidget(
const TizenAppId & tzAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
LogDebug("Registering widget");
SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
{
DPL::DB::ORM::wrt::ScopedTransaction transaction(
&WrtDatabase::interface());
- registerWidgetInternal(tzAppId, widgetRegInfo, wacSecurity);
+ registerWidgetInternal(tzAppId, widgetRegInfo, widgetSecurity);
transaction.Commit();
}
SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to register widget")
DbWidgetHandle WidgetDAO::registerWidget(
const WidgetRegisterInfo &pWidgetRegisterInfo,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
//make it more precise due to very fast tests
struct timeval tv;
registerWidget(*pWidgetRegisterInfo.configInfo.tizenAppId,
pWidgetRegisterInfo,
- wacSecurity);
+ widgetSecurity);
return widgetHandle;
}
TizenAppId WidgetDAO::registerWidgetGeneratePkgId(
const WidgetRegisterInfo &pWidgetRegisterInfo,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
TizenAppId tzAppId = generatePkgId();
- registerWidget(tzAppId, pWidgetRegisterInfo, wacSecurity);
+ registerWidget(tzAppId, pWidgetRegisterInfo, widgetSecurity);
return tzAppId;
}
void WidgetDAO::registerWidgetInternal(
const TizenAppId & tzAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity,
+ const IWidgetSecurity &widgetSecurity,
const DPL::Optional<DbWidgetHandle> handle)
{
//Register into WidgetInfo has to be first
//as all other tables depend upon that
DbWidgetHandle widgetHandle = registerWidgetInfo(tzAppId,
widgetRegInfo,
- wacSecurity,
+ widgetSecurity,
handle);
registerWidgetExtendedInfo(widgetHandle, widgetRegInfo);
registerWidgetAllowNavigationInfo(widgetHandle, widgetRegInfo);
- registerWidgetCertificates(widgetHandle, wacSecurity);
+ registerWidgetCertificates(widgetHandle, widgetSecurity);
CertificateChainList list;
- wacSecurity.getCertificateChainList(list, SIGNATURE_DISTRIBUTOR);
+ widgetSecurity.getCertificateChainList(list, SIGNATURE_DISTRIBUTOR);
registerCertificatesChains(widgetHandle, SIGNATURE_DISTRIBUTOR, list);
list.clear();
- wacSecurity.getCertificateChainList(list, SIGNATURE_AUTHOR);
+ widgetSecurity.getCertificateChainList(list, SIGNATURE_AUTHOR);
registerCertificatesChains(widgetHandle, SIGNATURE_AUTHOR, list);
registerWidgetSettings(widgetHandle, widgetRegInfo);
void WidgetDAO::registerOrUpdateWidget(
const TizenAppId & widgetName,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
LogDebug("Reregistering widget");
SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
&WrtDatabase::interface());
unregisterWidgetInternal(widgetName);
- registerWidgetInternal(widgetName, widgetRegInfo, wacSecurity);
+ registerWidgetInternal(widgetName, widgetRegInfo, widgetSecurity);
transaction.Commit();
}
SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to reregister widget")
const TizenAppId & oldAppId,
const TizenAppId & newAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
LogDebug("Backup and Register widget");
SQL_CONNECTION_EXCEPTION_HANDLER_BEGIN
&WrtDatabase::interface());
updateWidgetAppIdInternal(newAppId, oldAppId);
- registerWidgetInternal(newAppId, widgetRegInfo, wacSecurity);
+ registerWidgetInternal(newAppId, widgetRegInfo, widgetSecurity);
transaction.Commit();
}
SQL_CONNECTION_EXCEPTION_HANDLER_END("Failed to reregister widget")
DbWidgetHandle WidgetDAO::registerWidgetInfo(
const TizenAppId & tzAppId,
const WidgetRegisterInfo ®Info,
- const IWacSecurity &wacSecurity,
+ const IWidgetSecurity &widgetSecurity,
const DPL::Optional<DbWidgetHandle> handle)
{
using namespace DPL::DB::ORM;
row.Set_csp_policy_report_only(widgetConfigurationInfo.cspPolicyReportOnly);
row.Set_base_folder(DPL::FromUTF8String(regInfo.baseFolder));
row.Set_webkit_plugins_required(widgetConfigurationInfo.flashNeeded);
- row.Set_recognized(wacSecurity.isRecognized());
- row.Set_distributor_signed(wacSecurity.isDistributorSigned());
+ row.Set_recognized(widgetSecurity.isRecognized());
+ row.Set_distributor_signed(widgetSecurity.isDistributorSigned());
row.Set_tizen_appid(tzAppId);
row.Set_tizen_pkgid(regInfo.tzPkgid);
{
}
void WidgetDAO::registerWidgetCertificates(DbWidgetHandle widgetHandle,
- const IWacSecurity &wacSecurity)
+ const IWidgetSecurity &widgetSecurity)
{
using namespace DPL::DB::ORM;
using namespace DPL::DB::ORM::wrt;
- FOREACH(it, wacSecurity.getCertificateList())
+ FOREACH(it, widgetSecurity.getCertificateList())
{
WidgetCertificateFingerprint::Row row;
row.Set_app_id(widgetHandle);
* @param[in] TizenAppId Widget app id that will be registered.
* @param[in] pWidgetRegisterInfo Specified the widget's information
* needed to be registered.
- * @param[in] wacSecurity Widget's security certificates.
+ * @param[in] widgetSecurity Widget's security certificates.
*/
static void registerWidget(
const TizenAppId& tzAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity);
+ const IWidgetSecurity &widgetSecurity);
static DbWidgetHandle registerWidget(
const WidgetRegisterInfo &pWidgetRegisterInfo,
- const IWacSecurity &wacSecurity) __attribute__((deprecated));
+ const IWidgetSecurity &widgetSecurity) __attribute__((deprecated));
/**
* @brief registerWidgetGenerateTizenId Registers widget with auto-generated
* Function is not thread-safe.
*
* @param pWidgetRegisterInfo registeration information
- * @param wacSecurity Widget's security certificates.
+ * @param widgetSecurity Widget's security certificates.
* @return tzAppId generated
*/
static TizenAppId registerWidgetGeneratePkgId(
const WidgetRegisterInfo &pWidgetRegisterInfo,
- const IWacSecurity &wacSecurity);
+ const IWidgetSecurity &widgetSecurity);
/**
* This method re-registers the widget information to the DB when it is
* @param[in] tzAppId Widget tizen app id that will be registered.
* @param[in] pWidgetRegisterInfo Specified the widget's information
* needed to be registered.
- * @param[in] wacSecurity Widget's security certificates.
+ * @param[in] widgetSecurity Widget's security certificates.
*/
static void registerOrUpdateWidget(
const TizenAppId & tzAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity);
+ const IWidgetSecurity &widgetSecurity);
/* This method backup widget information and update new widget information
* for restore widget information
const TizenAppId & oldAppId,
const TizenAppId & newAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity);
+ const IWidgetSecurity &widgetSecurity);
static void restoreUpdateWidget(
const TizenAppId & oldAppId,
static DbWidgetHandle registerWidgetInfo(
const TizenAppId & widgetName,
const WidgetRegisterInfo ®Info,
- const IWacSecurity &wacSecurity,
+ const IWidgetSecurity &widgetSecurity,
const DPL::Optional<DbWidgetHandle> handle =
DPL::Optional<DbWidgetHandle>());
static void registerWidgetExtendedInfo(
const WidgetRegisterInfo ®Info);
static void registerWidgetCertificates(
DbWidgetHandle widgetHandle,
- const IWacSecurity &wacSecurity);
+ const IWidgetSecurity &widgetSecurity);
static void registerCertificatesChains(
DbWidgetHandle widgetHandle,
CertificateSource certificateSource,
static void registerWidgetInternal(
const TizenAppId & tzAppId,
const WidgetRegisterInfo &widgetRegInfo,
- const IWacSecurity &wacSecurity,
+ const IWidgetSecurity &widgetSecurity,
const DPL::Optional<DbWidgetHandle> handle =
DPL::Optional<DbWidgetHandle>());
static void unregisterWidgetInternal(