org.sakaiproject.component.section.sakai
Class ParticipationRecordImpl

java.lang.Object
  extended by org.sakaiproject.component.section.sakai.ParticipationRecordImpl
All Implemented Interfaces:
Serializable, ParticipationRecord
Direct Known Subclasses:
EnrollmentRecordImpl, GroupParticipantImpl, InstructorRecordImpl, TeachingAssistantRecordImpl

public abstract class ParticipationRecordImpl
extends Object
implements ParticipationRecord, Serializable

A base class of ParticipationRecords for detachable persistent storage.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  LearningContext learningContext
           
protected  User user
           
protected  String userUid
           
 
Constructor Summary
ParticipationRecordImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 LearningContext getLearningContext()
          Gets the LearningContext.
 Role getRole()
          Returns null, since this is an unknown type of participant
 User getUser()
          Gets the user.
 String getUserUid()
           
 int hashCode()
           
 void setLearningContext(LearningContext learningContext)
           
 void setUserUid(String userUid)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

user

protected User user

userUid

protected String userUid

learningContext

protected LearningContext learningContext
Constructor Detail

ParticipationRecordImpl

public ParticipationRecordImpl()
Method Detail

getUser

public User getUser()
Description copied from interface: ParticipationRecord
Gets the user.

Specified by:
getUser in interface ParticipationRecord
Returns:

getRole

public Role getRole()
Returns null, since this is an unknown type of participant

Specified by:
getRole in interface ParticipationRecord
Returns:

getUserUid

public String getUserUid()

setUserUid

public void setUserUid(String userUid)

getLearningContext

public LearningContext getLearningContext()
Description copied from interface: ParticipationRecord
Gets the LearningContext.

Specified by:
getLearningContext in interface ParticipationRecord
Returns:

setLearningContext

public void setLearningContext(LearningContext learningContext)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Sakai Project. All Rights Reserved.