Add caching of App/Pkg data & use faster way to retrieve this data 39/176239/12
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 5 Apr 2018 08:44:40 +0000 (10:44 +0200)
committerZofia Grzelewska <z.abramowska@samsung.com>
Tue, 24 Apr 2018 12:47:56 +0000 (14:47 +0200)
commite86f23ff74d9672bc8f46602d71215cb278194f2
tree2ebf1e3d81ab3ab80d21fe95a52026baaf349579
parent59cdde690759b2663bcd6b638e01f6b3f032f667
Add caching of App/Pkg data & use faster way to retrieve this data

In client side, this data needs to be retrieved only once for given client.

PkgMgr is checked only from askuser-notification daemon context, otherwise
AUL environment variables/AUL API is called to get data needed on client side.

This optimization should reduce API call time for ppm_check by ~60%

Change-Id: I5a9238113b062df551b73e3af7e52f6b13643c81
15 files changed:
packaging/askuser-notification.spec
src/client/impl/ApiInterfaceImpl.cpp
src/client/impl/ApiInterfaceImpl.h
src/common/CMakeLists.txt
src/common/policy/AppInfo.cpp [new file with mode: 0644]
src/common/policy/AppInfo.h
src/common/policy/PkgInfo.cpp [new file with mode: 0644]
src/common/policy/PkgInfo.h
src/common/policy/Policy.cpp
src/common/policy/Policy.h
src/common/policy/PrivilegeInfo.cpp
src/common/policy/PrivilegeInfo.h
src/common/policy/PrivilegePolicy.cpp
src/common/policy/PrivilegePolicy.h
src/notification-daemon/Logic.cpp