org.sakaiproject.coursemanagement.impl
Class CourseOfferingCmImpl

java.lang.Object
  extended by org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
      extended by org.sakaiproject.coursemanagement.impl.AbstractNamedCourseManagementObjectCmImpl
          extended by org.sakaiproject.coursemanagement.impl.AbstractMembershipContainerCmImpl
              extended by org.sakaiproject.coursemanagement.impl.CrossListableCmImpl
                  extended by org.sakaiproject.coursemanagement.impl.CourseOfferingCmImpl
All Implemented Interfaces:
Serializable, CourseOffering

public class CourseOfferingCmImpl
extends CrossListableCmImpl
implements CourseOffering, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sakaiproject.coursemanagement.impl.AbstractNamedCourseManagementObjectCmImpl
description, eid, title
 
Fields inherited from class org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
AUTHORITY, createdBy, createdDate, key, lastModifiedBy, lastModifiedDate, version
 
Constructor Summary
CourseOfferingCmImpl()
           
CourseOfferingCmImpl(String eid, String title, String description, String status, AcademicSession academicSession, CanonicalCourse canonicalCourse, Date startDate, Date endDate)
           
 
Method Summary
 AcademicSession getAcademicSession()
          The AcademicSession for this course offering
 CanonicalCourse getCanonicalCourse()
           
 String getCanonicalCourseEid()
          Gets the enterprise ID of the CourseOffering's CanonicalCourse.
 Set getCourseSetEids()
          Gets the Set of course set EIDs that contain this canonical course.
 Set getCourseSets()
           
 CrossListingCmImpl getCrossListing()
           
 Date getEndDate()
          The date this CourseOffering ends (if any).
 Date getStartDate()
          The date this CourseOffering starts (if any).
 String getStatus()
          Gets the status of this CourseOffering.
 void setAcademicSession(AcademicSession academicSession)
           
 void setCanonicalCourse(CanonicalCourse canonicalCourse)
           
 void setCourseSets(Set courseSets)
           
 void setCrossListing(CrossListingCmImpl crossListingCmImpl)
           
 void setEndDate(Date endDate)
           
 void setStartDate(Date startDate)
           
 void setStatus(String status)
           
 
Methods inherited from class org.sakaiproject.coursemanagement.impl.AbstractMembershipContainerCmImpl
getMembers, setMembers
 
Methods inherited from class org.sakaiproject.coursemanagement.impl.AbstractNamedCourseManagementObjectCmImpl
getDescription, getEid, getTitle, setDescription, setEid, setTitle, toString
 
Methods inherited from class org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
getAuthority, getCreatedBy, getCreatedDate, getKey, getLastModifiedBy, getLastModifiedDate, getVersion, setAuthority, setCreatedBy, setCreatedDate, setKey, setLastModifiedBy, setLastModifiedDate, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.coursemanagement.api.CourseOffering
getAuthority, getDescription, getEid, getTitle, setAuthority, setDescription, setEid, setTitle
 

Constructor Detail

CourseOfferingCmImpl

public CourseOfferingCmImpl()

CourseOfferingCmImpl

public CourseOfferingCmImpl(String eid,
                            String title,
                            String description,
                            String status,
                            AcademicSession academicSession,
                            CanonicalCourse canonicalCourse,
                            Date startDate,
                            Date endDate)
Method Detail

getCourseSets

public Set getCourseSets()

setCourseSets

public void setCourseSets(Set courseSets)

getCrossListing

public CrossListingCmImpl getCrossListing()
Specified by:
getCrossListing in class CrossListableCmImpl

setCrossListing

public void setCrossListing(CrossListingCmImpl crossListingCmImpl)
Specified by:
setCrossListing in class CrossListableCmImpl

getCanonicalCourse

public CanonicalCourse getCanonicalCourse()

setCanonicalCourse

public void setCanonicalCourse(CanonicalCourse canonicalCourse)

getAcademicSession

public AcademicSession getAcademicSession()
Description copied from interface: CourseOffering
The AcademicSession for this course offering

Specified by:
getAcademicSession in interface CourseOffering
Returns:

setAcademicSession

public void setAcademicSession(AcademicSession academicSession)
Specified by:
setAcademicSession in interface CourseOffering

getEndDate

public Date getEndDate()
Description copied from interface: CourseOffering
The date this CourseOffering ends (if any). Typically, a CourseOffering ends when its AcademicSession ends. Since this isn't necessarily true for every CourseOffering, the endDate can be set explicitly here.

Specified by:
getEndDate in interface CourseOffering
Returns:

setEndDate

public void setEndDate(Date endDate)
Specified by:
setEndDate in interface CourseOffering

getStartDate

public Date getStartDate()
Description copied from interface: CourseOffering
The date this CourseOffering starts (if any). Typically, a CourseOffering starts when its AcademicSession starts. Since this isn't necessarily true for every CourseOffering, the startDate can be set explicitly here.

Specified by:
getStartDate in interface CourseOffering
Returns:

setStartDate

public void setStartDate(Date startDate)
Specified by:
setStartDate in interface CourseOffering

getCanonicalCourseEid

public String getCanonicalCourseEid()
Description copied from interface: CourseOffering
Gets the enterprise ID of the CourseOffering's CanonicalCourse.

Specified by:
getCanonicalCourseEid in interface CourseOffering
Returns:

getCourseSetEids

public Set getCourseSetEids()
Description copied from interface: CourseOffering
Gets the Set of course set EIDs that contain this canonical course.

Specified by:
getCourseSetEids in interface CourseOffering
Returns:

getStatus

public String getStatus()
Description copied from interface: CourseOffering
Gets the status of this CourseOffering. This might be open, closed, planned, or discontinued, for example.

Specified by:
getStatus in interface CourseOffering
Returns:

setStatus

public void setStatus(String status)
Specified by:
setStatus in interface CourseOffering


Copyright © 2011 Sakai Project. All Rights Reserved.