org.sakaiproject.component.section.sakai
Class CourseImpl

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

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(org.sakaiproject.site.api.Site site)
          Creates a course from a sakai Site
 
Method Summary
 void decorateSite(org.sakaiproject.site.api.Site site)
           
 org.sakaiproject.site.api.Site getSite()
           
 String getSiteContext()
          The site associated with this course.
 String getTitle()
           
 String getUuid()
           
 boolean isExternallyManaged()
           
 boolean isSelfRegistrationAllowed()
           
 boolean isSelfSwitchingAllowed()
           
 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(org.sakaiproject.site.api.Site site)
Creates a course from a sakai Site

Parameters:
site - The Sakai site
Method Detail

decorateSite

public void decorateSite(org.sakaiproject.site.api.Site site)

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)

getTitle

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

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface LearningContext

getUuid

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

setUuid

public void setUuid(String uuid)

toString

public String toString()
Overrides:
toString in class Object

getSite

public org.sakaiproject.site.api.Site getSite()


Copyright © 2011 Sakai Project. All Rights Reserved.