com.ibm.ram.client
Class RAMVote

java.lang.Object
  extended by com.ibm.ram.client.RAMVote

public class RAMVote
extends java.lang.Object

Represents a user's approval or rejection of an asset

Since:
7.2

Field Summary
static java.lang.String APPROVE
          Votes to approve the asset
static java.lang.String REJECT
          Votes to reject the asset
 
Constructor Summary
RAMVote()
           
 
Method Summary
 java.lang.String getComment()
          Returns the comment associated with this vote or null if none is set
protected  Vote getInternalVote()
           
 RAMStateHistory getStateHistory()
           
 RAMUser getUser()
           
 java.lang.String getVoteChoice()
          Returns the users vote choice
 void setComment(java.lang.String comment)
          Returns the comment associated with this vote or null if none is set
protected  void setInternalVote(Vote vote)
           
 void setVoteChoice(java.lang.String voteChoice)
          Sets the users vote choice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPROVE

public static java.lang.String APPROVE
Votes to approve the asset

Since:
7.2.0.2

REJECT

public static java.lang.String REJECT
Votes to reject the asset

Since:
7.2.0.2
Constructor Detail

RAMVote

public RAMVote()
Since:
7.2.0.2
Method Detail

getInternalVote

protected Vote getInternalVote()
Returns:
Returns the fVote.
Since:
7.2.0.2

setInternalVote

protected void setInternalVote(Vote vote)
Parameters:
vote - The fVote to set.
Since:
7.2.0.2

getComment

public java.lang.String getComment()
                            throws RAMRuntimeException
Returns the comment associated with this vote or null if none is set

Returns:
Throws:
RAMRuntimeException
Since:
7.2.0.2

setComment

public void setComment(java.lang.String comment)
Returns the comment associated with this vote or null if none is set

Since:
7.2.0.2

getVoteChoice

public java.lang.String getVoteChoice()
Returns the users vote choice

Since:
7.2.0.2
See Also:
approve choice, reject choice

setVoteChoice

public void setVoteChoice(java.lang.String voteChoice)
Sets the users vote choice

Since:
7.2.0.2
See Also:
approve choice, reject choice

getStateHistory

public RAMStateHistory getStateHistory()
Returns:
Returns the fStateHistory.
Since:
7.2.0.2

getUser

public RAMUser getUser()
Returns:
Returns the user that made the comment or null if not set
Since:
7.2.0.2