/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | cloud_service_stub.cpp | 182 std::vector<Participant> participants; in OnAllocResourceAndShare() local 183 if (!ITypesUtil::Unmarshal(data, storeId, predicatesMemo, columns, participants)) { in OnAllocResourceAndShare() 187 auto [status, resultSet] = AllocResourceAndShare(storeId, predicatesMemo, columns, participants); in OnAllocResourceAndShare() 220 Participants participants; in OnShare() local 221 if (!ITypesUtil::Unmarshal(data, sharingRes, participants)) { in OnShare() 226 auto status = Share(sharingRes, participants, results); in OnShare() 233 Participants participants; in OnUnshare() local 234 if (!ITypesUtil::Unmarshal(data, sharingRes, participants)) { in OnUnshare() 239 auto status = Unshare(sharingRes, participants, results); in OnUnshare() 258 Participants participants; in OnChangePrivilege() local [all...] |
H A D | cloud_value_util.cpp | 108 std::vector<SharingPtpant> Convert(const std::vector<Participant> &participants) in Convert() argument 110 return Convert<Participant, SharingPtpant>(participants); in Convert()
|
H A D | cloud_service_impl.h | 53 const Participants &participants) override; 54 int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) override; 55 int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) override; 57 int32_t ChangePrivilege(const std::string &sharingRes, const Participants &participants, Results &results) override;
|
H A D | cloud_value_util.h | 48 std::vector<SharingPtpant> Convert(const std::vector<Participant> &participants);
|
H A D | cloud_service_impl.cpp | 1142 const std::vector<std::string> &columns, const Participants &participants) in AllocResourceAndShare() 1188 Share(shareRes, participants, results); in AllocResourceAndShare() 1229 int32_t CloudServiceImpl::Share(const std::string &sharingRes, const Participants &participants, Results &results) in Share() argument 1243 results = instance->Share(hapInfo.user, hapInfo.bundleName, sharingRes, Convert(participants)); in Share() 1250 int32_t CloudServiceImpl::Unshare(const std::string &sharingRes, const Participants &participants, Results &results) in Unshare() argument 1264 results = instance->Unshare(hapInfo.user, hapInfo.bundleName, sharingRes, Convert(participants)); in Unshare() 1293 int32_t CloudServiceImpl::ChangePrivilege(const std::string &sharingRes, const Participants &participants, in ChangePrivilege() argument 1309 results = instance->ChangePrivilege(hapInfo.user, hapInfo.bundleName, sharingRes, Convert(participants)); in ChangePrivilege() 1140 AllocResourceAndShare( const std::string &storeId, const DistributedRdb::PredicatesMemo &predicates, const std::vector<std::string> &columns, const Participants &participants) AllocResourceAndShare() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/include/ |
H A D | cloud_service_proxy.h | 40 const Participants& participants) override; 41 int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) override; 42 int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) override; 45 const std::string &sharingRes, const Participants &participants, Results &results) override;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/ |
H A D | sharing_center.cpp | 19 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in Share() 25 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in Unshare() 37 int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) in ChangePrivilege() 18 Share( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) Share() argument 24 Unshare( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) Unshare() argument 36 ChangePrivilege( int32_t userId, const std::string &bundleName, const std::string &sharingRes, const Participants &participants) ChangePrivilege() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/src/ |
H A D | cloud_service_proxy.cpp | 119 const std::vector<std::string> &columns, const std::vector<Participant> &participants) in AllocResourceAndShare() 122 int32_t status = IPC_SEND(TRANS_ALLOC_RESOURCE_AND_SHARE, reply, storeId, predicates, columns, participants); in AllocResourceAndShare() 157 const std::string &sharingRes, const Participants &participants, Results &results) in Share() 160 int32_t status = IPC_SEND(TRANS_SHARE, reply, sharingRes, participants); in Share() 162 LOG_ERROR("status:0x%{public}x sharingRes:%{public}.6s participants:%{public}zu", in Share() 163 status, sharingRes.c_str(), participants.size()); in Share() 170 const std::string &sharingRes, const Participants &participants, Results &results) in Unshare() 173 int32_t status = IPC_SEND(TRANS_UNSHARE, reply, sharingRes, participants); in Unshare() 175 LOG_ERROR("status:0x%{public}x sharingRes:%{public}.6s participants:%{public}zu", in Unshare() 176 status, sharingRes.c_str(), participants in Unshare() 117 AllocResourceAndShare( const std::string &storeId, const DistributedRdb::PredicatesMemo &predicates, const std::vector<std::string> &columns, const std::vector<Participant> &participants) AllocResourceAndShare() argument 156 Share( const std::string &sharingRes, const Participants &participants, Results &results) Share() argument 169 Unshare( const std::string &sharingRes, const Participants &participants, Results &results) Unshare() argument 193 ChangePrivilege( const std::string &sharingRes, const Participants &participants, Results &results) ChangePrivilege() argument [all...] |
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/cloud_data/include/ |
H A D | cloud_service.h | 109 const Participants &participants) = 0; 110 virtual int32_t Share(const std::string &sharingRes, const Participants &participants, Results &results) = 0; 111 virtual int32_t Unshare(const std::string &sharingRes, const Participants &participants, Results &results) = 0; 114 const std::string &sharingRes, const Participants &participants, Results &results) = 0;
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_cloud_share.cpp | 37 * participants: Array<Participant>, callback: AsyncCallback<relationalStore.ResultSet>): void; 39 * participants: Array<Participant>, columns: Array<string>, 44 * participants: Array<Participant>, columns?: Array<string>): Promise<relationalStore.ResultSet>; 50 Participants participants; in AllocResourceAndShare() member 57 // allocResourceAndShare storeId, predicates, participants 3 required parameter, columns 1 Optional parameter in AllocResourceAndShare() 67 status = JSUtils::Convert2Value(env, argv[2], ctxt->participants); in AllocResourceAndShare() 68 ASSERT_BUSINESS_ERR(ctxt, status == JSUtils::OK && !ctxt->participants.empty(), Status::INVALID_ARGUMENT, in AllocResourceAndShare() 69 "The type of participants must be Array<Participant> and not empty."); in AllocResourceAndShare() 91 ctxt->storeId, ctxt->predicates->GetDistributedPredicates(), ctxt->columns, ctxt->participants); in AllocResourceAndShare() 107 * share(sharingRes: string, participants 117 Participants participants; Share() member 168 Participants participants; Unshare() member 264 Participants participants; ChangePrivilege() member [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/cloud/ |
H A D | sharing_center.h | 83 const Participants &participants); 85 const Participants &participants); 89 const Participants &participants);
|
/foundation/distributeddatamgr/relational_store/test/js/clouddata/unittest/src/ |
H A D | CloudShareTest.js | 55 let participants = [participants1, participants2]; 116 cloudData.sharing.allocResourceAndShare(undefined, predicates, participants, (err, resultSet) => { 138 cloudData.sharing.allocResourceAndShare("employee", undefined, participants, (err, resultSet) => { 188 await cloudData.sharing.allocResourceAndShare(undefined, predicates, participants, columns).then((resultSet) => { 209 await cloudData.sharing.allocResourceAndShare("employee", undefined, participants, columns).then((resultSet) => { 252 cloudData.sharing.share(undefined, participants, ((err, result) => { 294 cloudData.sharing.share(undefined, participants).then(result => { 334 cloudData.sharing.unshare(undefined, participants, ((err, result) => { 376 cloudData.sharing.unshare(undefined, participants).then(result => {
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | cloud_service_impl_test.cpp | 306 CloudData::Participants participants; in HWTEST_F() local 308 auto status = cloudServiceImpl_->Share(sharingRes, participants, results); in HWTEST_F() 321 CloudData::Participants participants; in HWTEST_F() local 323 auto status = cloudServiceImpl_->Unshare(sharingRes, participants, results); in HWTEST_F() 350 CloudData::Participants participants; in HWTEST_F() local 352 auto status = cloudServiceImpl_->ChangePrivilege(sharingRes, participants, results); in HWTEST_F()
|
H A D | cloud_data_test.cpp | 556 CloudData::Participants participants{}; in HWTEST_F() 558 auto ret = cloudServiceImpl_->Share(sharingRes, participants, results); in HWTEST_F() 571 CloudData::Participants participants{}; in HWTEST_F() 573 auto ret = cloudServiceImpl_->Unshare(sharingRes, participants, results); in HWTEST_F() 586 CloudData::Participants participants{}; in HWTEST_F() 588 auto ret = cloudServiceImpl_->ChangePrivilege(sharingRes, participants, results); in HWTEST_F() 675 CloudData::Participants participants; in HWTEST_F() local 676 auto [ret, _] = cloudServiceImpl_->AllocResourceAndShare(TEST_CLOUD_STORE, predicates, columns, participants); in HWTEST_F() 690 std::tie(ret, _) = cloudServiceImpl_->AllocResourceAndShare(TEST_CLOUD_STORE, predicates, columns, participants); in HWTEST_F() 1186 std::vector<CloudData::Participant> participants; in HWTEST_F() local 1207 CloudData::Participants participants; HWTEST_F() local 1229 CloudData::Participants participants; HWTEST_F() local 1272 CloudData::Participants participants; HWTEST_F() local [all...] |