org.sakaiproject.component.section
Class ParticipationRecordImpl

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

public abstract class ParticipationRecordImpl
extends AbstractPersistentObject
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
           
 
Fields inherited from class org.sakaiproject.component.section.AbstractPersistentObject
id, title, uuid, version
 
Constructor Summary
ParticipationRecordImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 LearningContext getLearningContext()
          Gets the LearningContext.
 User getUser()
          Gets the user.
 int hashCode()
           
 void setLearningContext(LearningContext learningContext)
           
 void setUser(User user)
           
 String toString()
           
 
Methods inherited from class org.sakaiproject.component.section.AbstractPersistentObject
getId, getTitle, getUuid, getVersion, setId, setTitle, setUuid, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.section.api.coursemanagement.ParticipationRecord
getRole
 

Field Detail

user

protected User user

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:

setUser

public void setUser(User user)

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 AbstractPersistentObject


Copyright © 2011 Sakai Project. All Rights Reserved.