de.uka.ipd.consensus.foundation.rating
Class RatingEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byde.uka.ipd.consensus.foundation.AbstractConsensusFoundationEvent
          extended byde.uka.ipd.consensus.foundation.rating.RatingEvent
All Implemented Interfaces:
ConsensusFoundationManager, Serializable

public class RatingEvent
extends AbstractConsensusFoundationEvent

Event objects of this type are passed to RatingListeners.

Version:
2006-06-14
Author:
Thomas Much
See Also:
RatingListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RatingEvent(ConsensusFoundationManager cfm, Rating source, User rater, Concept ratedConcept)
           
RatingEvent(ConsensusFoundationManager cfm, Rating source, User rater, Concept ratedConcept, double oldRatingValue)
           
RatingEvent(ConsensusFoundationManager cfm, Rating source, User rater, Concept ratedConcept, User ratedUser, double oldRatingValue)
           
RatingEvent(ConsensusFoundationManager cfm, Rating source, User rater, User ratedUser)
           
RatingEvent(ConsensusFoundationManager cfm, Rating source, User rater, User ratedUser, double oldRatingValue)
           
 
Method Summary
 double getOldRatingValue()
          If a rating was changed this method returns the rating's old value.
 Concept getRatedConcept()
          Returns the rated concept if a concept was rated.
 User getRatedUser()
          Returns the rated user if a user was rated by another user.
 Rating getRating()
          All rating events include a rating that is returned by this method.
 User getUser()
          Returns the user who caused the event, i.e. the user who created or changed the rating etc.
 
Methods inherited from class de.uka.ipd.consensus.foundation.AbstractConsensusFoundationEvent
getDynamicRightsManager, getEvolutionManager, getIncentiveManager, getLoggingManager, getOntologyManager, getRatingManager, getUserManager, getVersion
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RatingEvent

public RatingEvent(ConsensusFoundationManager cfm,
                   Rating source,
                   User rater,
                   Concept ratedConcept,
                   User ratedUser,
                   double oldRatingValue)

RatingEvent

public RatingEvent(ConsensusFoundationManager cfm,
                   Rating source,
                   User rater,
                   Concept ratedConcept)

RatingEvent

public RatingEvent(ConsensusFoundationManager cfm,
                   Rating source,
                   User rater,
                   User ratedUser)

RatingEvent

public RatingEvent(ConsensusFoundationManager cfm,
                   Rating source,
                   User rater,
                   Concept ratedConcept,
                   double oldRatingValue)

RatingEvent

public RatingEvent(ConsensusFoundationManager cfm,
                   Rating source,
                   User rater,
                   User ratedUser,
                   double oldRatingValue)
Method Detail

getRating

public Rating getRating()
All rating events include a rating that is returned by this method.

Returns:
the rating object that every rating event includes

getUser

public User getUser()
Returns the user who caused the event, i.e. the user who created or changed the rating etc.

Returns:
the user who caused the event

getRatedConcept

public Concept getRatedConcept()
Returns the rated concept if a concept was rated.

Returns:
the rated concept or null

getRatedUser

public User getRatedUser()
Returns the rated user if a user was rated by another user.

Returns:
the rated user or null
See Also:
getUser()

getOldRatingValue

public double getOldRatingValue()
If a rating was changed this method returns the rating's old value.

Returns:
the rating's old value if a rating was changed