summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/include/policy
diff options
context:
space:
mode:
authorAndrey Oleynik <aoleynik@luxoft.com>2017-08-21 13:54:39 +0300
committerAndrey Oleynik <aoleynik@luxoft.com>2017-08-21 16:02:16 +0300
commit08789ae20c7105cbac527c4b044fb2fff9284d07 (patch)
treeb2fc088e85a38d390d22f5c32c35b9e8de254cba /src/components/policy/policy_regular/include/policy
parent829b726b535638b33528fa3da5c593360300954d (diff)
downloadsdl_core-08789ae20c7105cbac527c4b044fb2fff9284d07.tar.gz
Removes unused interfaces from AccessRemote class
Diffstat (limited to 'src/components/policy/policy_regular/include/policy')
-rw-r--r--src/components/policy/policy_regular/include/policy/access_remote.h40
-rw-r--r--src/components/policy/policy_regular/include/policy/access_remote_impl.h8
-rw-r--r--src/components/policy/policy_regular/include/policy/policy_manager_impl.h9
3 files changed, 1 insertions, 56 deletions
diff --git a/src/components/policy/policy_regular/include/policy/access_remote.h b/src/components/policy/policy_regular/include/policy/access_remote.h
index dd0cbb0ce5..0097b3d5c7 100644
--- a/src/components/policy/policy_regular/include/policy/access_remote.h
+++ b/src/components/policy/policy_regular/include/policy/access_remote.h
@@ -93,46 +93,6 @@ class AccessRemote {
public:
virtual ~AccessRemote() {}
/**
- * Allows access subject to object
- * @param who subject is dev_id and app_id
- * @param what object is group_id
- */
- virtual void Allow(const Subject& who, const Object& what) = 0;
-
- /**
- * Denies access subject to object
- * @param who subject is dev_id and app_id
- * @param what object is group_id
- */
- virtual void Deny(const Subject& who, const Object& what) = 0;
-
- /**
- * Resets access subject to all object
- * @param who subject is dev_id and app_id
- */
- virtual void Reset(const Subject& who) = 0;
-
- /**
- * Resets access to object for all subjects
- * @param what object is group
- */
- virtual void Reset(const Object& what) = 0;
-
- /*
- * Resets all stored consents
- */
- virtual void Reset() = 0;
-
- /**
- * Checks access subject to object
- * @param who subject is dev_id and app_id
- * @param what object is group_id
- * @return allowed if access was given, disallowed if access was denied
- * manual if need to ask driver
- */
- virtual TypeAccess Check(const Subject& who, const Object& what) const = 0;
-
- /**
* Checks permissions for module
* @param app_id application ID
* @param module type
diff --git a/src/components/policy/policy_regular/include/policy/access_remote_impl.h b/src/components/policy/policy_regular/include/policy/access_remote_impl.h
index 8b89a42744..bf9d8e1d36 100644
--- a/src/components/policy/policy_regular/include/policy/access_remote_impl.h
+++ b/src/components/policy/policy_regular/include/policy/access_remote_impl.h
@@ -51,13 +51,6 @@ class AccessRemoteImpl : public AccessRemote {
AccessRemoteImpl();
explicit AccessRemoteImpl(utils::SharedPtr<CacheManager> cache);
-
- virtual void Allow(const Subject& who, const Object& what);
- virtual void Deny(const Subject& who, const Object& what);
- virtual void Reset(const Subject& who);
- virtual void Reset(const Object& what);
- virtual void Reset();
- virtual TypeAccess Check(const Subject& who, const Object& what) const;
virtual bool CheckModuleType(const PTString& app_id,
policy_table::ModuleType module) const;
virtual void SetDefaultHmiTypes(const Subject& who,
@@ -82,7 +75,6 @@ class AccessRemoteImpl : public AccessRemote {
bool CompareParameters(const policy_table::Strings& parameters,
RemoteControlParams* input) const;
utils::SharedPtr<CacheManager> cache_;
- AccessControlList acl_;
HMIList hmi_types_;
#ifdef BUILD_TESTS
diff --git a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h
index 0f1a298875..648fd85db6 100644
--- a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h
+++ b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h
@@ -192,10 +192,7 @@ class PolicyManagerImpl : public PolicyManager {
virtual bool GetHMITypes(const std::string& application_id,
std::vector<int>* app_types) OVERRIDE;
virtual void set_access_remote(utils::SharedPtr<AccessRemote> access_remote);
- TypeAccess CheckDriverConsent(const Subject& who,
- const Object& what,
- const std::string& rpc,
- const RemoteControlParams& params);
+
void CheckPTUUpdatesChange(
const utils::SharedPtr<policy_table::Table> pt_update,
const utils::SharedPtr<policy_table::Table> snapshot);
@@ -359,10 +356,6 @@ class PolicyManagerImpl : public PolicyManager {
const PTString& app_id,
const PTString& module);
virtual bool CheckModule(const PTString& app_id, const PTString& module);
- virtual void SetAccess(const PTString& dev_id,
- const PTString& app_id,
- const PTString& module,
- bool allowed);
virtual void SendAppPermissionsChanged(const std::string& device_id,
const std::string& application_id);
virtual bool GetModuleTypes(const std::string& policy_app_id,