nn::nex::DataStoreLogicServerClient::RateObject Member Function

Syntax

virtual qBool RateObject(
     ProtocolCallContext * pContext,
     const DataStoreRatingTarget & target,
     const DataStoreRateObjectParam & param,
     DataStoreRatingInfo * pRating
);
virtual qBool RateObject(
     ProtocolCallContext * pContext,
     const qVector< DataStoreRatingTarget > & targets,
     const DataStoreRateObjectParam & param,
     const qBool transactional = true,
     qVector< DataStoreRatingInfo > * pRatings = NULL,
     qVector< qResult > * pResults = NULL
);
virtual qBool RateObject(
     ProtocolCallContext * pContext,
     const qVector< DataStoreRatingTarget > & targets,
     const qVector< DataStoreRateObjectParam > & params,
     const qBool transactional = true,
     qVector< DataStoreRatingInfo > * pRatings = NULL,
     qVector< qResult > * pResults = NULL
);

Overloads

RateObject ( ProtocolCallContext *, const DataStoreRatingTarget &, const DataStoreRateObjectParam &, DataStoreRatingInfo * ) Rates data.
RateObject ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const DataStoreRateObjectParam &, const qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * ) Rates a batch of data.
RateObject ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const qVector< DataStoreRateObjectParam > &, const qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * ) Rates a batch of data.

Description of RateObject ( ProtocolCallContext *, const DataStoreRatingTarget &, const DataStoreRateObjectParam &, DataStoreRatingInfo * )

To perform evaluation, the data slot must be initialized ahead of time. The rating is initialized by DataStorePreparePostParam::SetRatingSetting when performing DataStoreClient::PostObject. 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 RateObject ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const DataStoreRateObjectParam &, const qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * )

Up to 16 sets of metadata can be batch-processed. Parameters specified in param are applied to all targets specified in targets. The pRatings and pResult parameters store the results of the processing on the specified targets in the same order they appear in targets.

To perform evaluation, the data slot must be initialized ahead of time. The rating is initialized by DataStorePreparePostParam::SetRatingSetting when performing DataStoreClient::PostObject. 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 RateObject ( ProtocolCallContext *, const qVector< DataStoreRatingTarget > &, const qVector< DataStoreRateObjectParam > &, const qBool, qVector< DataStoreRatingInfo > *, qVector< qResult > * )

DataStoreRateObjectParam objects can be specified individually. Up to 16 sets of metadata can be batch-processed. The params and targets arguments 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.

To perform evaluation, the data slot must be initialized ahead of time. The rating is initialized by DataStorePreparePostParam::SetRatingSetting when performing DataStoreClient::PostObject. 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