org.sakaiproject.component.section
Class CourseImpl

java.lang.Object
  extended by org.sakaiproject.component.section.AbstractPersistentObject
      extended by org.sakaiproject.component.section.LearningContextImpl
          extended by org.sakaiproject.component.section.CourseImpl
All Implemented Interfaces:
Serializable, Course, LearningContext

public class CourseImpl
extends LearningContextImpl
implements Course, Serializable

A detachable Course for persistent storage.

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  boolean externallyManaged
           
protected  boolean selfRegistrationAllowed
           
protected  boolean selfSwitchingAllowed
           
protected  String siteContext
           
 
Fields inherited from class org.sakaiproject.component.section.AbstractPersistentObject
id, title, uuid, version
 
Constructor Summary
CourseImpl()
           
 
Method Summary
 String getSiteContext()
          The site associated with this course.
 boolean isExternallyManaged()
           
 boolean isSelfRegistrationAllowed()
           
 boolean isSelfSwitchingAllowed()
           
 void setExternallyManaged(boolean externallyManaged)
           
 void setSelfRegistrationAllowed(boolean selfRegistrationAllowed)
           
 void setSelfSwitchingAllowed(boolean selfSwitchingAllowed)
           
 void setSiteContext(String siteContext)
           
 String toString()
           
 
Methods inherited from class org.sakaiproject.component.section.LearningContextImpl
equals, hashCode
 
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.LearningContext
getTitle, getUuid, setTitle
 

Field Detail

siteContext

protected String siteContext

externallyManaged

protected boolean externallyManaged

selfRegistrationAllowed

protected boolean selfRegistrationAllowed

selfSwitchingAllowed

protected boolean selfSwitchingAllowed
Constructor Detail

CourseImpl

public CourseImpl()
Method Detail

isSelfSwitchingAllowed

public boolean isSelfSwitchingAllowed()

setSelfSwitchingAllowed

public void setSelfSwitchingAllowed(boolean selfSwitchingAllowed)

isSelfRegistrationAllowed

public boolean isSelfRegistrationAllowed()

setSelfRegistrationAllowed

public void setSelfRegistrationAllowed(boolean selfRegistrationAllowed)

getSiteContext

public String getSiteContext()
Description copied from interface: Course
The site associated with this course.

Specified by:
getSiteContext in interface Course
Returns:

setSiteContext

public void setSiteContext(String siteContext)

isExternallyManaged

public boolean isExternallyManaged()

setExternallyManaged

public void setExternallyManaged(boolean externallyManaged)

toString

public String toString()
Overrides:
toString in class AbstractPersistentObject


Copyright © 2011 Sakai Project. All Rights Reserved.