diff options
author | okozlovlux <okozlov@luxoft.com> | 2017-02-20 19:16:07 +0200 |
---|---|---|
committer | okozlovlux <okozlov@luxoft.com> | 2017-05-17 19:27:11 +0300 |
commit | 6a3c65f64fb7e9e5a770476b3f664d57606af33a (patch) | |
tree | bc618e0ff31525d9157b1df098a5149efe557720 /src/components/policy/policy_regular/include/policy/cache_manager.h | |
parent | 8aadc5d6d51b49c381fb89fd4b1fbfebec732cc3 (diff) | |
download | sdl_core-6a3c65f64fb7e9e5a770476b3f664d57606af33a.tar.gz |
Add functionality for External UCS
- added functionality for External UCS: ON by the User
- added UTs for policices External UCS: ON by the User
- added perstistence for external user consent status received from system
Fix issuies for HTTP and PROPRIETARY mode in mock policy handler
- fixed issues in mock policy handler
- fix coding style
Diffstat (limited to 'src/components/policy/policy_regular/include/policy/cache_manager.h')
-rw-r--r-- | src/components/policy/policy_regular/include/policy/cache_manager.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/policy/policy_regular/include/policy/cache_manager.h b/src/components/policy/policy_regular/include/policy/cache_manager.h index 1bd506656c..73c010ce33 100644 --- a/src/components/policy/policy_regular/include/policy/cache_manager.h +++ b/src/components/policy/policy_regular/include/policy/cache_manager.h @@ -55,6 +55,8 @@ class CacheManager : public CacheManagerInterface { CacheManager(); ~CacheManager(); + const policy_table::Strings& GetGroups(const PTString& app_id); + /** * @brief Check if specified RPC for specified application * has permission to be executed in specified HMI Level @@ -65,7 +67,7 @@ class CacheManager : public CacheManagerInterface { * @return CheckPermissionResult containing flag if HMI Level is allowed * and list of allowed params. */ - virtual void CheckPermissions(const PTString& app_id, + virtual void CheckPermissions(const policy_table::Strings& groups, const PTString& hmi_level, const PTString& rpc, CheckPermissionResult& result); @@ -215,6 +217,15 @@ class CacheManager : public CacheManagerInterface { std::map<std::string, StringArray>& app_hmi_types); /** + * @brief AppHasHMIType checks whether app has been registered with certain + *HMI type. + * + * @return true in case app contains certain HMI type, false otherwise. + */ + virtual bool AppHasHMIType(const std::string& application_id, + policy_table::AppHMIType hmi_type) const OVERRIDE; + + /** * Gets flag updateRequired * @return true if update is required */ |