platform/core/context/context-store.git
7 years agoMerge branch 'devel/tizen' into tizen 96/133296/1 accepted/tizen/unified/20170609.204943 submit/tizen/20170609.130020
Mu-Woong Lee [Fri, 9 Jun 2017 12:54:48 +0000 (21:54 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Dependency cleanup: apply the modified service & client interfaces

Change-Id: I6a035f56f91c8ede0a869c6c6efee1b7ec107bb4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDependency cleanup: apply the modified service & client interfaces 89/133189/3
Mu-Woong Lee [Fri, 9 Jun 2017 06:29:52 +0000 (15:29 +0900)]
Dependency cleanup: apply the modified service & client interfaces

Change-Id: I67f59823c08eabb70784cb4d83c454e10ed952ac
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 41/127941/1 accepted/tizen/unified/20170504.062633 submit/tizen/20170503.060126 tizen_4.0.m1_release
Mu-Woong Lee [Tue, 2 May 2017 11:56:17 +0000 (20:56 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 1.0.0
  Replace std::atoll and atof with g_ascii_strtoll and g_ascii_strtod
  Remove the implicit column '__ownerId'
  Remove expired logs while creating Store objects

Change-Id: I1513dbdf1f2b1a0cb3dbf16eed0e411108dde1bd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 1.0.0 37/127937/1
Mu-Woong Lee [Tue, 2 May 2017 11:50:03 +0000 (20:50 +0900)]
Version 1.0.0

Change-Id: Id23b5ed216376599aa4cc87ef829083cf79c5735
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReplace std::atoll and atof with g_ascii_strtoll and g_ascii_strtod 31/127931/1
Mu-Woong Lee [Tue, 2 May 2017 11:31:45 +0000 (20:31 +0900)]
Replace std::atoll and atof with g_ascii_strtoll and g_ascii_strtod

These glib string conversion functions are locale-independent.

Change-Id: Iaa6e4b866e2ca81662158f7bb902f4a107a4bad0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove the implicit column '__ownerId' 13/127913/1
Mu-Woong Lee [Tue, 2 May 2017 09:51:23 +0000 (18:51 +0900)]
Remove the implicit column '__ownerId'

Change-Id: Ie7265323208fb0bc882b628c65e3339b6d9bb562
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove expired logs while creating Store objects 07/127907/1
Mu-Woong Lee [Tue, 2 May 2017 09:04:32 +0000 (18:04 +0900)]
Remove expired logs while creating Store objects

Change-Id: I334abe0155bcbf6a8bc91c046c9639606b9753a2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 03/127403/1 accepted/tizen/unified/20170428.032554 submit/tizen/20170427.071620
Mu-Woong Lee [Thu, 27 Apr 2017 07:02:09 +0000 (16:02 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.9.0
  server: add the record insertion API for other services in the context framework
  client: merge PlatformManagedStore into ContextStore and rename it to StoreProxy
  client: remove the enum class DataType
  Implement QueryChecker to prevent SQL injections
  Update the URI format to be aligned with other context URIs
  server: use the util::getFiles() helper instead of readdir_r()
  Add compile options to suppress verbose messages and enable colored diagnostics
  Simplify include directory setting

Change-Id: I8abcda08443ab618a499be92e7469c1a6d5d7ecf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.0 85/127385/1
Mu-Woong Lee [Thu, 27 Apr 2017 06:34:17 +0000 (15:34 +0900)]
Version 0.9.0

Change-Id: I900105939f34dc9346f426ba83532a7bccffc178
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoserver: add the record insertion API for other services in the context framework 50/126950/4
Mu-Woong Lee [Tue, 25 Apr 2017 10:31:01 +0000 (19:31 +0900)]
server: add the record insertion API for other services in the context framework

Change-Id: I79ede86b7164e3b14a79ed9573f32eab92094db1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoclient: merge PlatformManagedStore into ContextStore and rename it to StoreProxy 04/126904/1
Mu-Woong Lee [Tue, 25 Apr 2017 08:32:09 +0000 (17:32 +0900)]
client: merge PlatformManagedStore into ContextStore and rename it to StoreProxy

ContextStore does not support other types of stores except the platform-managed one.
Thus the class hierarchy of ContextStore & PlatformManagedStore classes are not necessary.

Change-Id: Ifd7b69624df98bd96be1b641b51f5dce87f65672
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoclient: remove the enum class DataType 24/126724/1
Mu-Woong Lee [Tue, 25 Apr 2017 03:22:19 +0000 (12:22 +0900)]
client: remove the enum class DataType

It is declared in Tuple.h now.

Change-Id: I2b0c86e55f936a222020c7fce599fc925b802722
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement QueryChecker to prevent SQL injections 57/121957/10
Mu-Woong Lee [Wed, 29 Mar 2017 12:29:02 +0000 (21:29 +0900)]
Implement QueryChecker to prevent SQL injections

Change-Id: If625674bd7710d3d769e28687e333fa6d9f5f4ac
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUpdate the URI format to be aligned with other context URIs 40/126640/1
Mu-Woong Lee [Mon, 24 Apr 2017 11:07:11 +0000 (20:07 +0900)]
Update the URI format to be aligned with other context URIs

Change-Id: I0458ab649109ff6e8fa3283e3a5b8c0d0159c7aa
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoserver: use the util::getFiles() helper instead of readdir_r() 36/126636/1
Mu-Woong Lee [Mon, 24 Apr 2017 10:39:36 +0000 (19:39 +0900)]
server: use the util::getFiles() helper instead of readdir_r()

Change-Id: I40439c07fd5a775eb63ded93281d0357119bc6d9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd compile options to suppress verbose messages and enable colored diagnostics 59/125259/1
Mu-Woong Lee [Fri, 14 Apr 2017 08:49:09 +0000 (17:49 +0900)]
Add compile options to suppress verbose messages and enable colored diagnostics

Change-Id: I515c4c8e4758447464f0c99486ffb3822fca8d14
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSimplify include directory setting 19/124819/1
Mu-Woong Lee [Wed, 12 Apr 2017 11:36:21 +0000 (20:36 +0900)]
Simplify include directory setting

Change-Id: Ia739ed45cf6262ebd9a736c8e32e11f8e50f68ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 30/124730/1 accepted/tizen/unified/20170414.163522 submit/tizen/20170413.031950
Mu-Woong Lee [Wed, 12 Apr 2017 08:07:53 +0000 (17:07 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen: (34 commits)
  Remove redundant try-catch for Tuple::buildFrom()
  Version 0.1.0
  Initialize __storeManager from the constructor of ContextStoreService
  Fix the build script typos and nonconventional so symlink packaging
  Remove redundant exception handlings
  Apply the updated Tuple & Database interfaces
  Replace obsoleted util headers
  Add APIs for client application & daemons, and the other services in contextd
  Rename the packages to clearly denote their roles
  Separate SchemaChecker from Schema to reuse regex while parsing schema files
  Rearrange header directory structure w.r.t. context-common
  Code skeleton of the query validity checker
  Set the default limit parameter of selection queries
  Disable redundant virtual packages
  Rename the pkg config template file
  Rename a pamareter to be consistant through the APIs
  Implement ContextStoreService & ContextStoreClient
  Implement StoreManager & store handle classes in the server
  Implement SchemaLoader in the server
  Implement DatabaseManager in the server
  ...

Change-Id: I1231244e3d8bc90174282cb90734a6127b7d49c7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove redundant try-catch for Tuple::buildFrom() 35/124635/1
Mu-Woong Lee [Wed, 12 Apr 2017 04:27:27 +0000 (13:27 +0900)]
Remove redundant try-catch for Tuple::buildFrom()

Change-Id: I1efe8b7453e7d37eda63a633b0a845c7bb12fd03
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.1.0 76/124276/1
Mu-Woong Lee [Tue, 11 Apr 2017 04:51:25 +0000 (13:51 +0900)]
Version 0.1.0

Change-Id: I6c5af17ad35e2440dbfcfc94564a3df5ffdbbd3d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoInitialize __storeManager from the constructor of ContextStoreService 36/124236/1
Mu-Woong Lee [Tue, 11 Apr 2017 02:03:37 +0000 (11:03 +0900)]
Initialize __storeManager from the constructor of ContextStoreService

Change-Id: I4ee56652bcdd491ddf8da82ef082c37d887ff711
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix the build script typos and nonconventional so symlink packaging 07/123307/2
Mu-Woong Lee [Wed, 5 Apr 2017 07:26:30 +0000 (16:26 +0900)]
Fix the build script typos and nonconventional so symlink packaging

Change-Id: Ib214509b414ff868c44b41595beb9383e07d17ad
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove redundant exception handlings 48/123248/1
Mu-Woong Lee [Wed, 5 Apr 2017 05:07:53 +0000 (14:07 +0900)]
Remove redundant exception handlings

Change-Id: I3c8c004a63e4ac093b91f3ec1f84b53a816e93fc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApply the updated Tuple & Database interfaces 15/122715/1
Mu-Woong Lee [Mon, 3 Apr 2017 07:53:02 +0000 (16:53 +0900)]
Apply the updated Tuple & Database interfaces

Change-Id: Iae7af355b36ab506ee695ce01065995586b198fa
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReplace obsoleted util headers 20/121720/1
Mu-Woong Lee [Tue, 28 Mar 2017 13:10:04 +0000 (22:10 +0900)]
Replace obsoleted util headers

Change-Id: Ib239fff20cbd3163cee14786a6ac6237696b6858
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd APIs for client application & daemons, and the other services in contextd 93/120893/7
Mu-Woong Lee [Fri, 24 Mar 2017 13:00:00 +0000 (22:00 +0900)]
Add APIs for client application & daemons, and the other services in contextd

Change-Id: I0176c6eb838508dd3cccc277902a7b0aeacaab8f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename the packages to clearly denote their roles 33/120633/2
Mu-Woong Lee [Thu, 23 Mar 2017 11:01:17 +0000 (20:01 +0900)]
Rename the packages to clearly denote their roles

Change-Id: I585585d93edd3fa4581febd72fbbbe5b0c79d1f1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSeparate SchemaChecker from Schema to reuse regex while parsing schema files 46/119646/2
Mu-Woong Lee [Sat, 18 Mar 2017 14:20:08 +0000 (07:20 -0700)]
Separate SchemaChecker from Schema to reuse regex while parsing schema files

Change-Id: I81735406af570af5902905f739c362fcf6ffdf28
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRearrange header directory structure w.r.t. context-common 57/119657/1
Mu-Woong Lee [Sun, 19 Mar 2017 15:01:06 +0000 (00:01 +0900)]
Rearrange header directory structure w.r.t. context-common

Change-Id: I561191d1ca2aeeae827c58837cd7213d62949693
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCode skeleton of the query validity checker 58/119358/2
Mu-Woong Lee [Thu, 16 Mar 2017 12:02:55 +0000 (21:02 +0900)]
Code skeleton of the query validity checker

Change-Id: I90c2607563dd19b5b2555abacbbe5f58b5a995fe
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSet the default limit parameter of selection queries 46/119346/1
Mu-Woong Lee [Thu, 16 Mar 2017 11:04:32 +0000 (20:04 +0900)]
Set the default limit parameter of selection queries

Change-Id: I1965cb8970d1c12417cbf479b3e055656a794776
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDisable redundant virtual packages 96/119296/1
Mu-Woong Lee [Thu, 16 Mar 2017 08:46:06 +0000 (17:46 +0900)]
Disable redundant virtual packages

Change-Id: Id77460862b678d34797c0f6a4be54eecb6499dc4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename the pkg config template file 48/119248/1
Mu-Woong Lee [Thu, 16 Mar 2017 06:26:52 +0000 (15:26 +0900)]
Rename the pkg config template file

Change-Id: I91a9526adeb9baacfe9d5b1dfca89faca87cd59c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename a pamareter to be consistant through the APIs 19/118919/2
Mu-Woong Lee [Tue, 14 Mar 2017 12:46:16 +0000 (21:46 +0900)]
Rename a pamareter to be consistant through the APIs

Change-Id: I5338edc46a0f2bbde50badb1cb2e1ab51a6a6f80
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement ContextStoreService & ContextStoreClient 10/118910/2
Mu-Woong Lee [Tue, 14 Mar 2017 11:58:23 +0000 (20:58 +0900)]
Implement ContextStoreService & ContextStoreClient

Change-Id: I6cfe0a430aa6abbebf5ef86ee3b1198990a67f1f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement StoreManager & store handle classes in the server 09/118909/2
Mu-Woong Lee [Tue, 14 Mar 2017 11:55:52 +0000 (20:55 +0900)]
Implement StoreManager & store handle classes in the server

Change-Id: Idcb901e3d7fa4b6bfdb753d428b7ad06c0668c9f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement SchemaLoader in the server 05/118905/2
Mu-Woong Lee [Tue, 14 Mar 2017 11:52:19 +0000 (20:52 +0900)]
Implement SchemaLoader in the server

Change-Id: I86e52eace38cdd0710e198712df1aa894bf68dd4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement DatabaseManager in the server 04/118904/3
Mu-Woong Lee [Tue, 14 Mar 2017 11:47:08 +0000 (20:47 +0900)]
Implement DatabaseManager in the server

Change-Id: Ib88f7fd66583ce4632d52a003b169c9479d664b4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a schema sample xml 03/118903/1
Mu-Woong Lee [Tue, 14 Mar 2017 11:44:26 +0000 (20:44 +0900)]
Add a schema sample xml

Change-Id: Ie233bd104e6538d91857ba4468eaeff6c4e2c7ad
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAPI: fix bugs of query construction & GVariant extraction 02/118902/1
Mu-Woong Lee [Tue, 14 Mar 2017 11:43:09 +0000 (20:43 +0900)]
API: fix bugs of query construction & GVariant extraction

Change-Id: Id47ea1dcddff38717f1aecc8acd8a2cb15bef7a7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDefine shared constants 00/118900/1
Mu-Woong Lee [Tue, 14 Mar 2017 11:38:58 +0000 (20:38 +0900)]
Define shared constants

Change-Id: I17cb3508e80e0699383add2a805923841eab620d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement APIs for platform-managed stores 72/118072/3
Mu-Woong Lee [Wed, 8 Mar 2017 12:39:12 +0000 (21:39 +0900)]
Implement APIs for platform-managed stores

Change-Id: Ifa8e2f3fd0fab6f9f807e39696932aea73467d15
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove API features managing databases in the application directories 92/117992/2
Mu-Woong Lee [Wed, 8 Mar 2017 08:15:37 +0000 (17:15 +0900)]
Remove API features managing databases in the application directories

Not supported in Tizen 4.0.

Change-Id: Icf003353317c9da1f8c4a14c14a4165ba5447c66
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDefine ContextStore C++ internal API (skeleton) 01/116301/6
Mu-Woong Lee [Thu, 23 Feb 2017 13:54:34 +0000 (22:54 +0900)]
Define ContextStore C++ internal API (skeleton)

Change-Id: I3b2f701932d8d27e21013b29bf8e20103b2b9c40
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUpdate the service code skeleton w.r.t. the change of the active user monitoring... 56/117256/1
Mu-Woong Lee [Fri, 3 Mar 2017 11:05:37 +0000 (20:05 +0900)]
Update the service code skeleton w.r.t. the change of the active user monitoring scheme

Change-Id: Iad79d4539e2ea668954acf1343296e6a01fef286
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix the build scripts to be sure that each dummy uses its own pkg check parameter 45/116945/1
Mu-Woong Lee [Thu, 2 Mar 2017 06:06:00 +0000 (15:06 +0900)]
Fix the build scripts to be sure that each dummy uses its own pkg check parameter

Change-Id: I323f97c05a5204ba1b924bd017595eac370c6a31
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSync with the header separation in context-common 32/115632/1
Mu-Woong Lee [Tue, 21 Feb 2017 00:47:28 +0000 (09:47 +0900)]
Sync with the header separation in context-common

Change-Id: I70591a1167e6db3c068dbcb8519ffcb513830f20
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApply updated class names 24/115524/1
Mu-Woong Lee [Mon, 20 Feb 2017 08:14:06 +0000 (17:14 +0900)]
Apply updated class names

Change-Id: I58d902b49d3be20a17f801bb0689c41342e58181
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement the virtual functions added to the DBusService class 70/115470/1
Mu-Woong Lee [Mon, 20 Feb 2017 06:04:06 +0000 (15:04 +0900)]
Implement the virtual functions added to the DBusService class

Change-Id: I877e4862859cef9116a2bfd8b0e56714b4ded2b5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCleanup the build script 42/115442/1
Mu-Woong Lee [Mon, 20 Feb 2017 03:49:40 +0000 (12:49 +0900)]
Cleanup the build script

Change-Id: I60fbf688dea6a0f73467b939f4da36a27a72d801
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCleanup the test code 73/114073/1
Mu-Woong Lee [Fri, 10 Feb 2017 02:08:39 +0000 (11:08 +0900)]
Cleanup the test code

Change-Id: If98b88f8531192bfe34e3835ad713935c24ec8ba
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the code skeleton of store service & client 32/113132/1
Mu-Woong Lee [Mon, 6 Feb 2017 07:50:21 +0000 (16:50 +0900)]
Add the code skeleton of store service & client

Change-Id: Idba58d12d22df60823f93ec11183a4ad04a98a18
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoInitial empty repository master
Jong Jeong Kim [Thu, 10 Nov 2016 07:51:45 +0000 (23:51 -0800)]
Initial empty repository