* the IMapDataControlResponseListener::OnMapDataControlGetValueResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a registry section to get from @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The total size of the method arguments has exceeded the maximum limit.
* - The number of requests sent have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The total size of the method arguments is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
* the IMapDataControlResponseListener::OnMapDataControlAddValueResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a registry section to add to @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The total size of the method arguments has exceeded the maximum limit.
* - The number of requests sent have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The total size of the method arguments is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
* the IMapDataControlResponseListener::OnMapDataControlSetValueResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a registry section to update @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The total size of the method arguments has exceeded the maximum limit.
* - The number of requests sent have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The total size of the method arguments is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
* the IMapDataControlResponseListener::OnMapDataControlRemoveValueResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a registry section to remove from @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The total size of the method arguments has exceeded the maximum limit.
* - The number of requests sent have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The total size of the method arguments is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
* the ISqlDataControlResponseListener::OnSqlDataControlSelectResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a database table to query from @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The size of the sending buffer has exceeded the maximum limit.
* - The number of sending requests have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The recommended data size is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
* the ISqlDataControlResponseListener::OnSqlDataControlInsertResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a database table to insert into @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The size of the sending buffer has exceeded the maximum limit.
* - The number of sending requests have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The recommended data size is under 1MB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 1MB.
* the ISqlDataControlResponseListener::OnSqlDataControlUpdateResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a database table to update @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The size of the sending buffer has exceeded the maximum limit.
* - The number of sending requests have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The recommended data size is under 1MB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 1MB.
* the ISqlDataControlResponseListener::OnSqlDataControlDeleteResponseReceived() method is called.
*
* @since 2.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/datacontrol.consumer
*
* @return An error code
* @param[in] dataId The string that identifies the specific data, usually a database table to delete from @n
* @exception E_MAX_EXCEEDED Either of the following conditions has occurred:
* - The size of the sending buffer has exceeded the maximum limit.
* - The number of sending requests have exceeded the maximum limit.
+ * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_SYSTEM A system error has occurred.
* @remarks The recommended data size is under 16KB because a severe system performance degradation may occur for larger messages. @n
* @c E_MAX_EXCEEDED may be returned for messages over 16KB.
#include <FBase_NativeError.h>
#include "FApp_MapDataControlImpl.h"
+#include <FSec_AccessController.h>
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::App;
+using namespace Tizen::Security;
namespace Tizen { namespace App {
MapDataControl::GetValue(const String& dataId, const String& key,
RequestId& reqId, int pageNo, int countPerPage)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pMapDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed yet.");
MapDataControl::AddValue(const String& dataId, const String& key,
const String& value, RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pMapDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed yet.");
MapDataControl::SetValue(const String& dataId, const String& key,
const String& oldValue, const String& newValue, RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pMapDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed yet.");
MapDataControl::RemoveValue(const String& dataId, const String& key,
const String& value, RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pMapDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed yet.");
#include <FBase_NativeError.h>
#include "FApp_SqlDataControlImpl.h"
+#include <FSec_AccessController.h>
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
+using namespace Tizen::Security;
namespace Tizen { namespace App
{
SqlDataControl::Select(const String& dataId, const IList* pColumnList, const String* pWhere,
const String *pOrder, RequestId& reqId, int pageNo, int countPerPage)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pSqlDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed.");
SqlDataControl::Insert(const Tizen::Base::String& dataId, const Tizen::Base::Collection::IMap& insertMap,
RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pSqlDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed.");
SqlDataControl::Update(const Tizen::Base::String& dataId, const Tizen::Base::Collection::IMap& updateMap,
const Tizen::Base::String* pWhere, RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pSqlDataControlImpl, E_INVALID_STATE, "This instance has not been properly constructed.");
return __pSqlDataControlImpl->Update(dataId, updateMap, pWhere, reqId);
result
SqlDataControl::Delete(const Tizen::Base::String& dataId, const Tizen::Base::String* pWhere, RequestId& reqId)
{
+ result r = _AccessController::CheckUserPrivilege(_PRV_DATACONTROL_CONSUMER);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
SysTryReturnResult(NID_APP, __pSqlDataControlImpl, E_INVALID_STATE,
"This instance has not been properly constructed.");