org.sakaiproject.component.common.edu.coursemanagement
Class CourseSetImpl

java.lang.Object
  extended byorg.sakaiproject.component.common.edu.coursemanagement.CourseSetImpl
All Implemented Interfaces:
CourseSet, Persistable, Serializable

public class CourseSetImpl
extends Object
implements CourseSet, Serializable

See Also:
Serialized Form

Constructor Summary
CourseSetImpl()
           
CourseSetImpl(String title)
           
 
Method Summary
 void addCanonicalCourse(String canonicalCourseUuid)
          Add a canonical course uuid to this set.
 boolean equals(Object rhs)
          Implementation of the equals comparison on the basis of equality of the primary key values.
 Set getCanonicalCourses()
          Get a set of canonical course uuids that are contained in this set.
 Set getCanonicalCourseSet()
           
 String getContext()
          This allows CourseSet to be rooted in the sakai structure
 Long getCourseSetId()
          Return the simple primary key value that identifies this object.
 String getCreatedBy()
          The Agent that created this persistent object.
 Date getCreatedDate()
          The time and date this persistent object was created.
 String getLastModifiedBy()
          The last Agent that modified the persistent state of this object.
 Date getLastModifiedDate()
          The last time this object's persistent state was modified.
 String getTitle()
          Get the title of this course set.
 String getUuid()
          All persistent objects must have a UUID.
 int hashCode()
          Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).
 void removeCanonicalCourse(String canonicalCourseUuid)
          Remove a canonical course uuid from this set.
 void setCanonicalCourseSet(Set set)
           
 void setContext(String uuid)
          Set the context of this course set.
 void setCourseSetId(Long courseSetId)
          Set the simple primary key value that identifies this object.
 void setCreatedBy(String createdBy)
           
 void setCreatedDate(Date createdDate)
           
 void setLastModifiedBy(String lastModifiedBy)
           
 void setLastModifiedDate(Date lastModifiedDate)
           
 void setTitle(String title)
          Set the title of this course set.
 void setUuid(String uuid)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseSetImpl

public CourseSetImpl()

CourseSetImpl

public CourseSetImpl(String title)
Method Detail

getCourseSetId

public Long getCourseSetId()
Return the simple primary key value that identifies this object.

Returns:
java.lang.Long

setCourseSetId

public void setCourseSetId(Long courseSetId)
Set the simple primary key value that identifies this object.

Parameters:
courseSetId -

getTitle

public String getTitle()
Description copied from interface: CourseSet
Get the title of this course set.

Specified by:
getTitle in interface CourseSet
Returns:
course title.

setTitle

public void setTitle(String title)
Description copied from interface: CourseSet
Set the title of this course set.

Specified by:
setTitle in interface CourseSet
Parameters:
title -

getUuid

public String getUuid()
Description copied from interface: Persistable
All persistent objects must have a UUID.

Specified by:
getUuid in interface Persistable
Returns:
Returns the UUID for given object.

setUuid

public void setUuid(String uuid)

getCanonicalCourses

public Set getCanonicalCourses()
Description copied from interface: CourseSet
Get a set of canonical course uuids that are contained in this set.

Specified by:
getCanonicalCourses in interface CourseSet
Returns:
set of canonical course uuids.

getCanonicalCourseSet

public Set getCanonicalCourseSet()

setCanonicalCourseSet

public void setCanonicalCourseSet(Set set)

addCanonicalCourse

public void addCanonicalCourse(String canonicalCourseUuid)
Description copied from interface: CourseSet
Add a canonical course uuid to this set.

Specified by:
addCanonicalCourse in interface CourseSet
Parameters:
canonicalCourseUuid -

removeCanonicalCourse

public void removeCanonicalCourse(String canonicalCourseUuid)
Description copied from interface: CourseSet
Remove a canonical course uuid from this set.

Specified by:
removeCanonicalCourse in interface CourseSet
Parameters:
canonicalCourseUuid -

getCreatedBy

public String getCreatedBy()
Description copied from interface: Persistable
The Agent that created this persistent object.

Specified by:
getCreatedBy in interface Persistable
Returns:
UUID of the Agent that created this persistent object.

setCreatedBy

public void setCreatedBy(String createdBy)

getCreatedDate

public Date getCreatedDate()
Description copied from interface: Persistable
The time and date this persistent object was created.

Specified by:
getCreatedDate in interface Persistable
Returns:

setCreatedDate

public void setCreatedDate(Date createdDate)

getLastModifiedBy

public String getLastModifiedBy()
Description copied from interface: Persistable
The last Agent that modified the persistent state of this object.

Specified by:
getLastModifiedBy in interface Persistable
Returns:
UUID of Agent that made last modification.

setLastModifiedBy

public void setLastModifiedBy(String lastModifiedBy)

getLastModifiedDate

public Date getLastModifiedDate()
Description copied from interface: Persistable
The last time this object's persistent state was modified.

Specified by:
getLastModifiedDate in interface Persistable
Returns:

setLastModifiedDate

public void setLastModifiedDate(Date lastModifiedDate)

equals

public boolean equals(Object rhs)
Implementation of the equals comparison on the basis of equality of the primary key values.

Parameters:
rhs -
Returns:
boolean

hashCode

public int hashCode()
Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).

Returns:
int

getContext

public String getContext()
Description copied from interface: CourseSet
This allows CourseSet to be rooted in the sakai structure

Specified by:
getContext in interface CourseSet
Returns:
uuid

setContext

public void setContext(String uuid)
Description copied from interface: CourseSet
Set the context of this course set.

Specified by:
setContext in interface CourseSet
Parameters:
uuid -