org.sakaiproject.component.section.sakai21
Class CourseImpl

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

public class CourseImpl
extends Object
implements Course, Serializable

See Also:
Serialized Form

Field Summary
static String EXTERNALLY_MAINTAINED
           
protected  boolean externallyManaged
           
protected  boolean selfRegistrationAllowed
           
protected  boolean selfSwitchingAllowed
           
protected  String siteContext
           
static String STUDENT_REGISTRATION_ALLOWED
           
static String STUDENT_SWITCHING_ALLOWED
           
protected  String title
           
protected  String uuid
           
 
Constructor Summary
CourseImpl(Site site)
          Creates a course from a sakai Site
 
Method Summary
 void decorateSite(Site site)
           
 Site getSite()
           
 String getSiteContext()
          The site associated with this course.
 String getTitle()
           
 String getUuid()
           
 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)
           
 void setTitle(String title)
           
 void setUuid(String uuid)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTERNALLY_MAINTAINED

public static final String EXTERNALLY_MAINTAINED
See Also:
Constant Field Values

STUDENT_REGISTRATION_ALLOWED

public static final String STUDENT_REGISTRATION_ALLOWED
See Also:
Constant Field Values

STUDENT_SWITCHING_ALLOWED

public static final String STUDENT_SWITCHING_ALLOWED
See Also:
Constant Field Values

siteContext

protected String siteContext

uuid

protected String uuid

title

protected String title

externallyManaged

protected boolean externallyManaged

selfRegistrationAllowed

protected boolean selfRegistrationAllowed

selfSwitchingAllowed

protected boolean selfSwitchingAllowed
Constructor Detail

CourseImpl

public CourseImpl(Site site)
Creates a course from a sakai Site

Parameters:
site - The Sakai site
Method Detail

decorateSite

public void decorateSite(Site site)

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)

getTitle

public String getTitle()
Specified by:
getTitle in interface LearningContext

setTitle

public void setTitle(String title)

getUuid

public String getUuid()
Specified by:
getUuid in interface LearningContext

setUuid

public void setUuid(String uuid)

toString

public String toString()

getSite

public Site getSite()