Java Doc for CourseManagementService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » coursemanagement » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.coursemanagement.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.coursemanagement.api.CourseManagementService

All known Subclasses:   org.sakaiproject.coursemanagement.impl.CourseManagementServiceSampleChainImpl,  org.sakaiproject.coursemanagement.impl.CourseManagementServiceHibernateImpl,  org.sakaiproject.coursemanagement.impl.CourseManagementServiceFederatedImpl,
CourseManagementService
public interface CourseManagementService (Code)
A read-only service that queries enterprise course, section, membership, and enrollment data.
author:
   Josh Holtzman




Method Summary
public  Map<String, String>findCourseOfferingRoles(String userEid)
     Finds the CourseOfferings (and roles) for which a user is a member.
public  Set<CourseOffering>findCourseOfferings(String courseSetEid, String academicSessionEid)
     Finds all of the course offerings in a course set that are current for any given academic session (regardless of the courseOffering's start and end dates).
public  Map<String, String>findCourseSetRoles(String userEid)
     Finds the CourseSets (and roles) for which a user is a member.
public  List<CourseSet>findCourseSets(String category)
     Finds all course sets in a given category.
public  Set<EnrollmentSet>findCurrentlyEnrolledEnrollmentSets(String userEid)
     Finds the set of current EnrollmentSets for which a user is enrolled but not dropped.
public  Set<EnrollmentSet>findCurrentlyInstructingEnrollmentSets(String userEid)
     Finds the set of current EnrollmentSets for which a user is an instructor of record.
public  Set<Section>findEnrolledSections(String userEid)
     Finds all Sections that are linked to an EnrollmentSet for which a user is enrolled (but not dropped).
public  EnrollmentfindEnrollment(String userEid, String enrollmentSetEid)
     Finds the Enrollment for a user in an EnrollmentSet.
public  Set<Section>findInstructingSections(String userEid)
     Finds all Sections that are linked to an EnrollmentSet for which a user is an instructor of record.
public  Set<Section>findInstructingSections(String userEid, String academicSessionEid)
     Finds all Sections that are linked to an EnrollmentSet for which a user is an instructor of record and which are part of a CourseOffering in a given AcademicSession.
public  Map<String, String>findSectionRoles(String userEid)
     Finds the Sections (and roles) for which a user is a member.
public  AcademicSessiongetAcademicSession(String eid)
     Gets a AcademicSession by its eid.
public  List<AcademicSession>getAcademicSessions()
     Gets the list of all known AcademicSessions, sorted by start date.
public  CanonicalCoursegetCanonicalCourse(String canonicalCourseEid)
     Gets a CanonicalCourse by its eid.
public  Set<CanonicalCourse>getCanonicalCourses(String courseSetEid)
     Gets the CanonicalCourses in a CourseSet.
public  Set<CourseSet>getChildCourseSets(String parentCourseSetEid)
     Gets the child CourseSet from a parent CourseSet.
public  Set<Section>getChildSections(String parentSectionEid)
     Gets the child Sections from a parent Section.
public  CourseOfferinggetCourseOffering(String courseOfferingEid)
     Gets a CourseOffering by its eid.
public  Set<Membership>getCourseOfferingMemberships(String courseOfferingEid)
     Gets the memberships directly contained by this CourseOffering.
Parameters:
  courseOfferingEid - The set of memberships in this CourseOffering.
public  Set<CourseOffering>getCourseOfferingsInCanonicalCourse(String canonicalCourseEid)
     Finds all course offerings belonging to a canonical course.
public  Set<CourseOffering>getCourseOfferingsInCourseSet(String courseSetEid)
     Gets the CourseOfferings in a CourseSet.
public  CourseSetgetCourseSet(String courseSetEid)
     Gets a CourseSet by its eid.
public  Set<Membership>getCourseSetMemberships(String courseSetEid)
     Gets the memberships directly contained by this CourseSet.
Parameters:
  courseSetEid - The set of memberships in this CourseSet.
public  Set<CourseSet>getCourseSets()
    
public  List<AcademicSession>getCurrentAcademicSessions()
     Gets the list of current AcademicSessions, sorted by start date.
public  EnrollmentSetgetEnrollmentSet(String enrollmentSetEid)
     Gets an EnrollmentSet by its eid.
public  Set<EnrollmentSet>getEnrollmentSets(String courseOfferingEid)
    
public  Map<String, String>getEnrollmentStatusDescriptions(Locale locale)
     Gets the known enrollment status codes and descriptions for Enrollments.
public  Set<Enrollment>getEnrollments(String enrollmentSetEid)
    
public  Set<CanonicalCourse>getEquivalentCanonicalCourses(String canonicalCourseEid)
     Gets the equivalent CanonicalCourses.
public  Set<CourseOffering>getEquivalentCourseOfferings(String courseOfferingEid)
     Gets any equivalent CourseOfferings.
public  Map<String, String>getGradingSchemeDescriptions(Locale locale)
     Gets the known grading scheme codes and descriptions for Enrollments.
public  Set<String>getInstructorsOfRecordIds(String enrollmentSetEid)
     Gets the set of user ids that are, according to the enterprise, responsible for the EnrollmentSet.
public  Map<String, String>getMembershipStatusDescriptions(Locale locale)
     Gets the known membership status codes and descriptions for Memberships.
public  SectiongetSection(String sectionEid)
     Gets a Section by its eid.
public  List<String>getSectionCategories()
     Gets the list of section categories defined by the institution.
public  StringgetSectionCategoryDescription(String categoryCode)
     Gets the description for a category, identified by the category code, or null if the category code can not be found.
public  Set<Membership>getSectionMemberships(String sectionEid)
     Gets the members directly contained by this Section.
Parameters:
  sectionEid - The set of members in this Section.
public  Set<Section>getSections(String courseOfferingEid)
    
public  booleanisAcademicSessionDefined(String eid)
     Checks whether an AcademicSession exists.
public  booleanisCanonicalCourseDefined(String eid)
     Checks whether a CanonicalCourse exists.
public  booleanisCourseOfferingDefined(String eid)
     Checks whether a CourseOffering exists.
public  booleanisCourseSetDefined(String eid)
     Checks whether a CourseSet exists.
public  booleanisEmpty(String courseSetEid)
     Determines whether a CourseSet has any CanonicalCourses or CourseSets.
public  booleanisEnrolled(String userEid, Set<String> enrollmentSetEids)
     Determines whether a user is enrolled (and not dropped) in an EnrollmentSet.
public  booleanisEnrolled(String userEid, String enrollmentSetEid)
     Convenience method for checking whether a user is enrolled (and not dropped) in an EnrollmentSet.
public  booleanisEnrollmentSetDefined(String eid)
     Checks whether an EnrollmentSet exists.
public  booleanisSectionDefined(String eid)
     Checks whether a Section exists.



Method Detail
findCourseOfferingRoles
public Map<String, String> findCourseOfferingRoles(String userEid)(Code)
Finds the CourseOfferings (and roles) for which a user is a member.
Parameters:
  userEid - A Map of CourseOffering EIDs to roles for the user



findCourseOfferings
public Set<CourseOffering> findCourseOfferings(String courseSetEid, String academicSessionEid) throws IdNotFoundException(Code)
Finds all of the course offerings in a course set that are current for any given academic session (regardless of the courseOffering's start and end dates).
Parameters:
  courseSetEid -
Parameters:
  academicSessionEid - The set of course offerings
throws:
  IdNotFoundException -



findCourseSetRoles
public Map<String, String> findCourseSetRoles(String userEid)(Code)
Finds the CourseSets (and roles) for which a user is a member.
Parameters:
  userEid - A Map of CourseSet EIDs to roles for the user



findCourseSets
public List<CourseSet> findCourseSets(String category)(Code)
Finds all course sets in a given category. Useful for listing the departments
Parameters:
  category - The list of course sets, sorted by title, ascending



findCurrentlyEnrolledEnrollmentSets
public Set<EnrollmentSet> findCurrentlyEnrolledEnrollmentSets(String userEid)(Code)
Finds the set of current EnrollmentSets for which a user is enrolled but not dropped. An EnrollmentSet is considered current if its CourseOffering's start date (is null or prior to the current date/time) and its end date (is null or after the current date/time).
Parameters:
  userEid -



findCurrentlyInstructingEnrollmentSets
public Set<EnrollmentSet> findCurrentlyInstructingEnrollmentSets(String userEid)(Code)
Finds the set of current EnrollmentSets for which a user is an instructor of record. An EnrollmentSet is considered current if its CourseOffering's start date (is null or prior to the current date/time) and its end date (is null or after the current date/time).
Parameters:
  userEid -



findEnrolledSections
public Set<Section> findEnrolledSections(String userEid)(Code)
Finds all Sections that are linked to an EnrollmentSet for which a user is enrolled (but not dropped).
Parameters:
  userEid -



findEnrollment
public Enrollment findEnrollment(String userEid, String enrollmentSetEid)(Code)
Finds the Enrollment for a user in an EnrollmentSet. If the user isn't in the EnrollmentSet, or the EnrollmentSet doesn't exist, this returns null. Note that this method will return enrollments flagged as "dropped". TODO Should this throw more descriptive exceptions e.g. when the EnrollmentSet doesn't exist?
Parameters:
  userEid -
Parameters:
  enrollmentSetEid -



findInstructingSections
public Set<Section> findInstructingSections(String userEid)(Code)
Finds all Sections that are linked to an EnrollmentSet for which a user is an instructor of record.
Parameters:
  userEid -



findInstructingSections
public Set<Section> findInstructingSections(String userEid, String academicSessionEid) throws IdNotFoundException(Code)
Finds all Sections that are linked to an EnrollmentSet for which a user is an instructor of record and which are part of a CourseOffering in a given AcademicSession.
Parameters:
  userEid -
Parameters:
  academicSessionEid -



findSectionRoles
public Map<String, String> findSectionRoles(String userEid)(Code)
Finds the Sections (and roles) for which a user is a member.
Parameters:
  userEid - A Map of Section EIDs to roles for the user



getAcademicSession
public AcademicSession getAcademicSession(String eid) throws IdNotFoundException(Code)
Gets a AcademicSession by its eid.
Parameters:
  eid - The AcademicSession
throws:
  IdNotFoundException - If the eid is not associated with any AcademicSession



getAcademicSessions
public List<AcademicSession> getAcademicSessions()(Code)
Gets the list of all known AcademicSessions, sorted by start date.



getCanonicalCourse
public CanonicalCourse getCanonicalCourse(String canonicalCourseEid) throws IdNotFoundException(Code)
Gets a CanonicalCourse by its eid.
Parameters:
  canonicalCourseEid - The CanonicalCourse
throws:
  IdNotFoundException - If the eid is not associated with any CanonicalCourse



getCanonicalCourses
public Set<CanonicalCourse> getCanonicalCourses(String courseSetEid) throws IdNotFoundException(Code)
Gets the CanonicalCourses in a CourseSet.
Parameters:
  courseSetEid - The eid of the CourseSet The set of CanonicalCourses in the CourseSet
throws:
  IdNotFoundException - If the eid is not associated with any CourseSet



getChildCourseSets
public Set<CourseSet> getChildCourseSets(String parentCourseSetEid) throws IdNotFoundException(Code)
Gets the child CourseSet from a parent CourseSet.
Parameters:
  parentCourseSetEid - The parent CourseSet eid The Set of child CourseSets



getChildSections
public Set<Section> getChildSections(String parentSectionEid) throws IdNotFoundException(Code)
Gets the child Sections from a parent Section.
Parameters:
  parentSectionEid - The parent Section eid The Set of child Sections
throws:
  IdNotFoundException - If the eid is not associated with any parent Section



getCourseOffering
public CourseOffering getCourseOffering(String courseOfferingEid) throws IdNotFoundException(Code)
Gets a CourseOffering by its eid.
Parameters:
  courseOfferingEid - The CourseOffering
throws:
  IdNotFoundException - If the eid is not associated with any CourseOffering



getCourseOfferingMemberships
public Set<Membership> getCourseOfferingMemberships(String courseOfferingEid) throws IdNotFoundException(Code)
Gets the memberships directly contained by this CourseOffering.
Parameters:
  courseOfferingEid - The set of memberships in this CourseOffering. This is not a recursiveset of Memberships.
throws:
  IdNotFoundException - If the eid is not associated with any CourseOffering



getCourseOfferingsInCanonicalCourse
public Set<CourseOffering> getCourseOfferingsInCanonicalCourse(String canonicalCourseEid) throws IdNotFoundException(Code)
Finds all course offerings belonging to a canonical course.
Parameters:
  canonicalCourseEid - The enterprise id of the canonical course The set of course offerings
throws:
  IdNotFoundException -



getCourseOfferingsInCourseSet
public Set<CourseOffering> getCourseOfferingsInCourseSet(String courseSetEid) throws IdNotFoundException(Code)
Gets the CourseOfferings in a CourseSet.
Parameters:
  courseSetEid - The eid of the CourseSet The set of CourseOfferings in the CourseSet
throws:
  IdNotFoundException - If the eid is not associated with any CourseSet



getCourseSet
public CourseSet getCourseSet(String courseSetEid) throws IdNotFoundException(Code)
Gets a CourseSet by its eid.
Parameters:
  courseSetEid - The CourseSet's unique eid The CourseSet
throws:
  IdNotFoundException - If the eid is not associated with any CourseSet



getCourseSetMemberships
public Set<Membership> getCourseSetMemberships(String courseSetEid) throws IdNotFoundException(Code)
Gets the memberships directly contained by this CourseSet.
Parameters:
  courseSetEid - The set of memberships in this CourseSet. This is not a transitiveset.
throws:
  IdNotFoundException - If the eid is not associated with any CourseSet



getCourseSets
public Set<CourseSet> getCourseSets()(Code)
Gets all of the top level CourseSets The Set of CourseSets that have no parent CourseSet



getCurrentAcademicSessions
public List<AcademicSession> getCurrentAcademicSessions()(Code)
Gets the list of current AcademicSessions, sorted by start date.



getEnrollmentSet
public EnrollmentSet getEnrollmentSet(String enrollmentSetEid) throws IdNotFoundException(Code)
Gets an EnrollmentSet by its eid.
Parameters:
  enrollmentSetEid - The EnrollmentSet
throws:
  IdNotFoundException - If the eid is not associated with any EnrollmentSet



getEnrollmentSets
public Set<EnrollmentSet> getEnrollmentSets(String courseOfferingEid) throws IdNotFoundException(Code)
Gets the EnrollmentSets associated with a CourseOffering
Parameters:
  courseOfferingEid - The Set of EnrollmentSets
throws:
  IdNotFoundException - If the eid is not associated with any CourseOffering



getEnrollmentStatusDescriptions
public Map<String, String> getEnrollmentStatusDescriptions(Locale locale)(Code)
Gets the known enrollment status codes and descriptions for Enrollments.



getEnrollments
public Set<Enrollment> getEnrollments(String enrollmentSetEid) throws IdNotFoundException(Code)
Gets the Enrollments in an EnrollmentSet (including dropped enrollments)
Parameters:
  enrollmentSetEid - The Set of Enrollments
throws:
  IdNotFoundException - If the eid is not associated with any EnrollmentSet



getEquivalentCanonicalCourses
public Set<CanonicalCourse> getEquivalentCanonicalCourses(String canonicalCourseEid) throws IdNotFoundException(Code)
Gets the equivalent CanonicalCourses.
Parameters:
  canonicalCourseEid - The eid of the CanonicalCourse to use in finding equivalents The set of CanonicalCourses that are equivalent (in the Enterpriseview, not in the Java view -- this is independent of CanonicalCourse.equals()).



getEquivalentCourseOfferings
public Set<CourseOffering> getEquivalentCourseOfferings(String courseOfferingEid) throws IdNotFoundException(Code)
Gets any equivalent CourseOfferings.
Parameters:
  courseOfferingEid - The eid of the CourseOffering to use in finding equivalents The set of CourseOfferings that are equivalent (in the Enterpriseview, not in the Java view -- this is independent of CourseOffering.equals()).
throws:
  IdNotFoundException - If the eid is not associated with any CourseOffering



getGradingSchemeDescriptions
public Map<String, String> getGradingSchemeDescriptions(Locale locale)(Code)
Gets the known grading scheme codes and descriptions for Enrollments.



getInstructorsOfRecordIds
public Set<String> getInstructorsOfRecordIds(String enrollmentSetEid) throws IdNotFoundException(Code)
Gets the set of user ids that are, according to the enterprise, responsible for the EnrollmentSet. Responsibilities usually include submitting the final grades for students enrolled in the EnrollmentSet.
Parameters:
  enrollmentSetEid - The set of ids for users who are responsible for this EnrollmentSet
throws:
  IdNotFoundException - If the eid is not associated with any EnrollmentSet



getMembershipStatusDescriptions
public Map<String, String> getMembershipStatusDescriptions(Locale locale)(Code)
Gets the known membership status codes and descriptions for Memberships.



getSection
public Section getSection(String sectionEid) throws IdNotFoundException(Code)
Gets a Section by its eid.
Parameters:
  sectionEid - The Section
throws:
  IdNotFoundException - If the eid is not associated with any Section



getSectionCategories
public List<String> getSectionCategories()(Code)
Gets the list of section categories defined by the institution.



getSectionCategoryDescription
public String getSectionCategoryDescription(String categoryCode)(Code)
Gets the description for a category, identified by the category code, or null if the category code can not be found.
Parameters:
  sectionCategoryCode -



getSectionMemberships
public Set<Membership> getSectionMemberships(String sectionEid) throws IdNotFoundException(Code)
Gets the members directly contained by this Section.
Parameters:
  sectionEid - The set of members in this Section. This is not a transitiveset.
throws:
  IdNotFoundException - If the eid is not associated with any Section



getSections
public Set<Section> getSections(String courseOfferingEid) throws IdNotFoundException(Code)
Gets the top-level Sections associated with a CourseOffering
Parameters:
  courseOfferingEid - The Set of Sections
throws:
  IdNotFoundException - If the eid is not associated with any CourseOffering



isAcademicSessionDefined
public boolean isAcademicSessionDefined(String eid)(Code)
Checks whether an AcademicSession exists.
Parameters:
  eid - The enterprise id Whether the object exists



isCanonicalCourseDefined
public boolean isCanonicalCourseDefined(String eid)(Code)
Checks whether a CanonicalCourse exists.
Parameters:
  eid - The enterprise id Whether the object exists



isCourseOfferingDefined
public boolean isCourseOfferingDefined(String eid)(Code)
Checks whether a CourseOffering exists.
Parameters:
  eid - The enterprise id Whether the object exists



isCourseSetDefined
public boolean isCourseSetDefined(String eid)(Code)
Checks whether a CourseSet exists.
Parameters:
  eid - The enterprise id Whether the object exists



isEmpty
public boolean isEmpty(String courseSetEid)(Code)
Determines whether a CourseSet has any CanonicalCourses or CourseSets.
Parameters:
  courseSetEid -



isEnrolled
public boolean isEnrolled(String userEid, Set<String> enrollmentSetEids)(Code)
Determines whether a user is enrolled (and not dropped) in an EnrollmentSet. This method is needed to implement Sakai's GroupProvider.
Parameters:
  userEid - The student's userEid
Parameters:
  enrollmentSetEids - The set of EnrollmentSetEids



isEnrolled
public boolean isEnrolled(String userEid, String enrollmentSetEid)(Code)
Convenience method for checking whether a user is enrolled (and not dropped) in an EnrollmentSet.
Parameters:
  userEid -
Parameters:
  enrollmentSetEid -



isEnrollmentSetDefined
public boolean isEnrollmentSetDefined(String eid)(Code)
Checks whether an EnrollmentSet exists.
Parameters:
  eid - The enterprise id Whether the object exists



isSectionDefined
public boolean isSectionDefined(String eid)(Code)
Checks whether a Section exists.
Parameters:
  eid - The enterprise id Whether the object exists



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.