diff options
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands/command_impl.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/commands/command_impl.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/command_impl.h b/src/components/application_manager/include/application_manager/commands/command_impl.h index d57568dd6a..4af7f124fa 100644 --- a/src/components/application_manager/include/application_manager/commands/command_impl.h +++ b/src/components/application_manager/include/application_manager/commands/command_impl.h @@ -162,6 +162,20 @@ class CommandImpl : public Command { protected: /** + * @brief Checks message permissions and parameters according to policy table + * permissions + * @param source The source of the command (used to determine if a response + * should be sent on failure) + * @return true if the RPC is allowed, false otherwise + */ + bool CheckAllowedParameters(const Command::CommandSource source); + + /** + * @brief Remove from current message parameters disallowed by policy table + */ + void RemoveDisallowedParameters(); + + /** * @brief Parses mobile message and replaces mobile app id with HMI app id * @param message Message to replace its ids * @return True if replacement succeeded, otherwise - false @@ -183,6 +197,9 @@ class CommandImpl : public Command { HMICapabilities& hmi_capabilities_; policy::PolicyHandlerInterface& policy_handler_; + CommandParametersPermissions parameters_permissions_; + CommandParametersPermissions removed_parameters_permissions_; + #ifdef ENABLE_LOG static log4cxx::LoggerPtr logger_; #endif // ENABLE_LOG |