nn::nex::DataStoreLogicServerClient::RateObjectsWithPosting Member Function

Syntax

virtual qBool RateObjectsWithPosting(
     ProtocolCallContext * pContext,
     const qVector< DataStoreRatingTarget > & targets,
     const qVector< DataStoreRateObjectParam > & rateParams,
     const qVector< DataStorePostParam > & postParams,
     qBool transactional = true,
     qVector< DataStoreRatingInfo > * pRatings = NULL,
     qVector< qResult > * pResults = NULL
);

virtual qBool RateObjectsWithPosting(
     ProtocolCallContext * pContext,
     const qVector< DataStoreRatingTarget > & targets,
     const DataStoreRateObjectParam & rateParam,
     const DataStorePostParam & postParam,
     qBool transactional = true,
     qVector< DataStoreRatingInfo > * pRatings = NULL,
     qVector< qResult > * pResults = NULL
);

List of Overloaded Member Functions

RateObjectsWithPosting ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const qVector< DataStoreRateObjectParam > &, const qVector< DataStorePostParam > &, qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * ) Rates a batch of data. If there is no data, initializes with the specified value and rates it.
RateObjectsWithPosting ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const DataStoreRateObjectParam &, const DataStorePostParam &, qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * ) Rates a batch of data. If there is no data, initializes with the specified value and rates it. Only one of rating and initial value can be specified.

Description of RateObjectsWithPosting ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const qVector< DataStoreRateObjectParam > &, const qVector< DataStorePostParam > &, qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * )

DataStoreRateObjectParam objects can be specified individually. If the initial values do not exist, they can be configured using DataStorePostParam. Up to 16 sets of metadata can be processed in a single batch process. The rateParams, postParams, and targets parameters must contain the same number of elements. Each parameter is applied to the corresponding target in the order it appears. The pRatings and pResult parameters store the results of the processing on the specified targets in the same order they appear in targets.

Use the DataStorePreparePostParam::SetRatingSetting function in the postParams element to initialize the rating. Specify the initial values of all of the slots required for initialization to the SetRatingSetting function. After initialization, the results if unused slots were reinitialized is QERROR(DataStore, InvalidArgument).

When this function is called to self-rate data that is prohibited from being self-rated or to rate data with a duplicate lock, it returns QERROR(DataStore, OperationNotAllowed). You can check whether a duplicate lock is present and check the lock period, by getting DataStoreRatingLog with the DataStoreClient::GetRating function. Only people who have access rights to the targeted data can rate it.

Description of RateObjectsWithPosting ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const DataStoreRateObjectParam &, const DataStorePostParam &, qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * )

DataStoreRateObjectParam objects can be specified individually. If the initial values do not exist, they can be configured using DataStorePostParam. Up to 16 sets of metadata can be processed in a single batch process. The pRatings and pResult parameters store the results of the processing on the specified targets in the same order they appear in targets.

Use the DataStorePreparePostParam::SetRatingSetting function in the postParam element to initialize the rating. Specify the initial values of all of the slots required for initialization to the SetRatingSetting function. After initialization, the results if unused slots were reinitialized is QERROR(DataStore, InvalidArgument).

When this function is called to self-rate data that is prohibited from being self-rated or to rate data with a duplicate lock, it returns QERROR(DataStore, OperationNotAllowed). You can check whether a duplicate lock is present and check the lock period, by getting DataStoreRatingLog with the DataStoreClient::GetRating function. Only people who have access rights to the targeted data can rate it.


CONFIDENTIAL