org.sakaiproject.component.section
Class CourseImpl

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

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()
          Whether the course is externally managed by the enterprise and should be read-only within the LMS.
 boolean isSelfRegistrationAllowed()
          Whether students are allowed to register for sections themselves.
 boolean isSelfSwitchingAllowed()
          Whether students are allowed to switch sections themselves.
 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.api.section.coursemanagement.LearningContext
getTitle, getUuid
 

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()
Description copied from interface: Course
Whether students are allowed to switch sections themselves.

Specified by:
isSelfSwitchingAllowed in interface Course
Returns:

setSelfSwitchingAllowed

public void setSelfSwitchingAllowed(boolean selfSwitchingAllowed)

isSelfRegistrationAllowed

public boolean isSelfRegistrationAllowed()
Description copied from interface: Course
Whether students are allowed to register for sections themselves.

Specified by:
isSelfRegistrationAllowed in interface Course
Returns:

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()
Description copied from interface: Course
Whether the course is externally managed by the enterprise and should be read-only within the LMS.

Specified by:
isExternallyManaged in interface Course
Returns:

setExternallyManaged

public void setExternallyManaged(boolean externallyManaged)

toString

public String toString()
Overrides:
toString in class AbstractPersistentObject