* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
* @deprecated This class is deprecated. Instead of using this class, use the Tizen::Shell::NotificationManager class.
* @since 2.0
*
- * @privlevel partner
- * @privilege %http://tizen.org/privilege/notification
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/notification @n
+ * (%http://tizen.org/privilege/notificationmanager is deprecated.)
*
* @return An error code
* @param[in] appId The application ID
SysTryReturnResult(NID_APP, appId.GetLength() <= WIDGET_APP_MAX_APPID_LENGTH, E_MAX_EXCEEDED,
"The length of appid exceeded the limit(%d).", WIDGET_APP_MAX_APPID_LENGTH);
+ result r = _AccessController::CheckUserPrivilege(_PRV_APPLICATION_KILL, _PRV_APPMANAGER_KILL);
+ SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+
return __pAppManagerImpl->TerminateApplication(appId);
}