com.ibm.ram.client
Class RAMAssetRatings

java.lang.Object
  extended by com.ibm.ram.common.data.AssetRatings
      extended by com.ibm.ram.client.RAMAssetRatings

public class RAMAssetRatings
extends AssetRatings

Represents the cumulative set of ratings for an asset.

Since:
7.1
Author:
kbauer

Method Summary
 AssetInformation getAsset()
          Return the asset this rating is for
 AssetFeedback[] getFeedback()
           
 AssetRating getRating()
           
 void rateAsset(int rating, java.lang.String comment, boolean asAnonymous)
          Rate this asset.
 void setFeedback(AssetFeedback[] feedback)
           
 void setRating(AssetRating rating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

rateAsset

public void rateAsset(int rating,
                      java.lang.String comment,
                      boolean asAnonymous)
Rate this asset. Leave your star rating and comments about this asset. After adding your rating you must put this asset to the server to apply your rating.

Parameters:
rating -
comment -
asAnonymous -
Since:
7.1.1

getFeedback

public AssetFeedback[] getFeedback()
Overrides:
getFeedback in class AssetRatings
Returns:
Returns the feedback.

getRating

public AssetRating getRating()
Overrides:
getRating in class AssetRatings
Returns:
Returns the rating.

getAsset

public AssetInformation getAsset()
Return the asset this rating is for

Returns:
Since:
7.1.1

setFeedback

public void setFeedback(AssetFeedback[] feedback)
Overrides:
setFeedback in class AssetRatings
Parameters:
feedback - The feedback to set.

setRating

public void setRating(AssetRating rating)
Overrides:
setRating in class AssetRatings
Parameters:
rating - The rating to set.