SAP NetWeaver '04

Package com.sapportals.wcm.repository.service.rating

Provides a service for evaluating resources.

See:
          Description

Interface Summary
IRating The interface represents a service for handling the rating of resources.
 

Package com.sapportals.wcm.repository.service.rating Description

Provides a service for evaluating resources.

Package Specification

Purpose

The rating service handles the ratings that users give to express their evaluation of a resource. It supports add and get methods.

Configuration

The rating service can be configured with the parameters shown in the table.
The parameters can be set with the help of the user interface of the Content Management configuration framework.
For more information see the documentation Administering Content Management.

Property Required Description
class yes The class that implements the comment service interface and is used for this system
Empty rating icon No Empty icon (located in /etc/public/mimes/images)
Full rating Icon No Filled icon (located in /etc/public/mimes/images)
Count rate No Number of rating values (e.g. 5)
Icon height No Height of icons
Icon width No Width of icons
Max Comment No Number of comments initially displayed together
Ratingvalues No A file which includes customer settings (without extension)

The following shows a sample configuration:

Name Value
class com.sapportals.wcm.repository.service.rating.RatingManager
Empty rating icon empty_icon.gif
Full rating Icon Full_icon.gif
Count rate 5
Icon height 7
Icon width 7
Max Comment 3
Ratingvalues CustomerRating

 

 

An instance of the commnet service must be configured for each repository where it is required.

 Implementation notes

A customer can define the Gifs, texts and ranges for rating . The definitions are stored in the files ending in .RatingValues. The file is stored in the directory /etc/rating and is handled as a resource bundle.

The following files must be located under /etc/rating:

·        CustomerRating.properties

·        CustomerRating_<Locale>.properties


SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.