org.sakaiproject.component.section
Class EnrollmentRecordImpl

java.lang.Object
  extended by org.sakaiproject.component.section.AbstractPersistentObject
      extended by org.sakaiproject.component.section.ParticipationRecordImpl
          extended by org.sakaiproject.component.section.EnrollmentRecordImpl
All Implemented Interfaces:
Serializable, EnrollmentRecord, ParticipationRecord

public class EnrollmentRecordImpl
extends ParticipationRecordImpl
implements EnrollmentRecord, Serializable

A detachable EnrollmentRecord for persistent storage.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  String status
           
 
Fields inherited from class org.sakaiproject.component.section.ParticipationRecordImpl
learningContext, user
 
Fields inherited from class org.sakaiproject.component.section.AbstractPersistentObject
id, title, uuid, version
 
Constructor Summary
EnrollmentRecordImpl()
          No-arg constructor needed for hibernate
EnrollmentRecordImpl(LearningContext learningContext, String status, User user)
           
 
Method Summary
 Role getRole()
          Gets the Role for this user in this LearningContext.
 String getStatus()
          Gets the status of the enrollment.
 void setStatus(String status)
           
 
Methods inherited from class org.sakaiproject.component.section.ParticipationRecordImpl
equals, getLearningContext, getUser, hashCode, setLearningContext, setUser, 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
getLearningContext, getUser
 

Field Detail

status

protected String status
Constructor Detail

EnrollmentRecordImpl

public EnrollmentRecordImpl()
No-arg constructor needed for hibernate


EnrollmentRecordImpl

public EnrollmentRecordImpl(LearningContext learningContext,
                            String status,
                            User user)
Method Detail

getRole

public Role getRole()
Description copied from interface: ParticipationRecord
Gets the Role for this user in this LearningContext.

Specified by:
getRole in interface ParticipationRecord
Returns:

getStatus

public String getStatus()
Description copied from interface: EnrollmentRecord
Gets the status of the enrollment.

Specified by:
getStatus in interface EnrollmentRecord
Returns:

setStatus

public void setStatus(String status)


Copyright © 2011 Sakai Project. All Rights Reserved.