//add user
        public bool AddUser(string userid, string batchuid, string firstname, string middlename, string lastname,
                            string email, string studentid, string userpwd, string gender, string birthyear, string birthmonth,
                            string birthday, string edulevel, string company, string jobtitle, string department, string street1,
                            string street2, string city, string stateorprovince, string ziporpostalcode, string country, string website,
                            string homephone, string workphone, string workfax, string mobilephone, string portalrole, string[] secportalrole,
                            string systemrole, bool available, bool availablespecified, out bool returnspecified)
        {
            bool IsAdded = false;

            try
            {
                bbUser.addUser(bbPassword, userid, batchuid, firstname, middlename, lastname,
                               email, studentid, userpwd, gender, birthyear, birthmonth, birthday, edulevel, company, jobtitle,
                               department, street1, street2, city, stateorprovince, ziporpostalcode, country, website, homephone,
                               workphone, workfax, mobilephone, portalrole, secportalrole, systemrole, available, availablespecified,
                               out IsAdded, out returnspecified);

                return(IsAdded);
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("bbUser.AddUser", ex);
                returnspecified = false;
                return(IsAdded);
            }
        }
Beispiel #2
0
 //Delete Course By CourseID (XML)
 public string DeleteCourseByCourseIDXML(string courseid)
 {
     try
     {
         return(bbCourse.deleteCourseByCourseIdXML(bbPassword, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.DeleteCourseByCourseIDXML", ex);
         return(null);
     }
 }
 //Get Group Members For Given GroupBbId
 public string[] GetGroupMembersForGivenGroupBbId(string groupBbId)
 {
     try
     {
         return(bbGroup.getGroupMembersForGivenGroupBbId(bbPassword, groupBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.GetGroupMembersForGivenGroupBbId", ex);
         return(null);
     }
 }
 //Get Group Details For Given GroupBbId (XML)
 public string GetGroupDetailsForGivenGroupBbIdXML(string groupBbId)
 {
     try
     {
         return(bbGroup.getGroupDetailsForGivenGroupBbIdXML(bbPassword, groupBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.GetGroupDetailsForGivenGroupBbIdXML", ex);
         return(null);
     }
 }
 //Delete Group (XML)
 public string DeleteGroupXML(string groupBbId)
 {
     try
     {
         return(bbGroup.deleteGroupXML(bbPassword, groupBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.DeleteGroupXML", ex);
         return(null);
     }
 }
 //Get All Announcements For Given CourseId With Named Elements
 public announcementDetails[] GetAllAnnouncementsForGivenCourseIdWithNamedElements(string courseId)
 {
     try
     {
         return(bbAnnouncement.getAllAnnouncementsForGivenCourseIdWithNamedElements(bbPassword, courseId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllAnnouncementsForGivenCourseIdWithNamedElements", ex);
         return(null);
     }
 }
 //Delete Announcement (XML)
 public string DeleteAnnouncementXML(string announcementBbId)
 {
     try
     {
         return(bbAnnouncement.deleteAnnouncementXML(bbPassword, announcementBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.DeleteAnnouncementXML", ex);
         return(null);
     }
 }
 //Get All System Announcements With Named Elements
 public announcementDetails[] GetAllSystemAnnouncementsWithNamedElements()
 {
     try
     {
         return(bbAnnouncement.getAllSystemAnnouncementsWithNamedElements(bbPassword));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllSystemAnnouncementsWithNamedElements", ex);
         return(null);
     }
 }
Beispiel #9
0
 //Get All CourseIDs Where Given UserId Is An Instructor (XML)
 public string GetAllCourseIDsWhereGivenUserIdIsAnInstructorXML(string userid)
 {
     try
     {
         return(bbCourse.getAllCourseIDsWhereGivenUserIdIsAnInstructorXML(bbPassword, userid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsWhereGivenUserIdIsAnInstructorXML", ex);
         return(null);
     }
 }
Beispiel #10
0
 //Get All CourseIDs Where Given UserId Is An Instructor With Named Elements
 public BBCourseService.courseDetails[] GetAllCourseIDsWhereGivenUserIdIsAnInstructorWithNamedElements(string userid)
 {
     try
     {
         return(bbCourse.getAllCourseIDsWhereGivenUserIdIsAnInstructorWithNamedElements(bbPassword, userid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsWhereGivenUserIdIsAnInstructorWithNamedElements", ex);
         return(null);
     }
 }
Beispiel #11
0
 //Get All CourseIDs Where CourseId Contains Given Search String (XML)
 public string GetAllCourseIDsWhereCourseIdContainsGivenSearchStringXML(string searchstring)
 {
     try
     {
         return(bbCourse.getAllCourseIDsWhereCourseIdContainsGivenSearchStringXML(bbPassword, searchstring));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsWhereCourseIdContainsGivenSearchStringXML", ex);
         return(null);
     }
 }
Beispiel #12
0
 //Get All CourseIDs Where CourseId Contains Given Search String With Named Elements
 public BBCourseService.courseDetails[] GetAllCourseIDsWhereCourseIdContainsGivenSearchStringWithNamedElements(string searchstring)
 {
     try
     {
         return(bbCourse.getAllCourseIDsWhereCourseIdContainsGivenSearchStringWithNamedElements(bbPassword, searchstring));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsWhereCourseIdContainsGivenSearchStringWithNamedElements", ex);
         return(null);
     }
 }
Beispiel #13
0
 //Get All CourseIDs No Details (XML)
 public string GetAllCourseIDsNoDetailsXML()
 {
     try
     {
         return(bbCourse.getAllCourseIDsNoDetailsXML(bbPassword));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsNoDetailsXML", ex);
         return(null);
     }
 }
Beispiel #14
0
 //Get All CourseIDs No Details With Named Elements
 public BBCourseService.courseDetails[] GetAllCourseIDsNoDetailsWithNamedElements()
 {
     try
     {
         return(bbCourse.getAllCourseIDsNoDetailsWithNamedElements(bbPassword));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetAllCourseIDsNoDetailsWithNamedElements", ex);
         return(null);
     }
 }
Beispiel #15
0
 //Does Course Exist (XML)
 public string DoesCourseExistXML(string courseid)
 {
     try
     {
         return(bbCourse.doesCourseExistXML(bbPassword, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.DoesCourseExistXML", ex);
         return(null);
     }
 }
Beispiel #16
0
 //UnEnroll Given User From Given Course (XML)
 public string UnEnrollGivenUserFromGivenCourseXML(string userid, string courseid)
 {
     try
     {
         return(bbCourse.unEnrollGivenUserFromGivenCourseXML(bbPassword, userid, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.UnEnrollGivenUserFromGivenCourseXML", ex);
         return(null);
     }
 }
 //Get All System Announcements
 public stringArray[] GetAllSystemAnnouncements(bool headerDesc, bool headerDescSpecified)
 {
     try
     {
         return(bbAnnouncement.getAllSystemAnnouncements(bbPassword, headerDesc, headerDescSpecified));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllSystemAnnouncements", ex);
         return(null);
     }
 }
Beispiel #18
0
 //Get Course Membership BbId For Given UserId And CourseId (XML)
 public string GetCourseMembershipBbIdForGivenUserIdAndCourseIdXML(string userid, string courseid)
 {
     try
     {
         return(bbCourse.getCourseMembershipBbIdForGivenUserIdAndCourseIdXML(bbPassword, userid, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseMembershipBbIdForGivenUserIdAndCourseIdXML", ex);
         return(null);
     }
 }
 //Get All System Announcements (XML)
 public string GetAllSystemAnnouncementsXML()
 {
     try
     {
         return(bbAnnouncement.getAllSystemAnnouncementsXML(bbPassword));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllSystemAnnouncementsXML", ex);
         return(null);
     }
 }
Beispiel #20
0
 //Get Course Membership Details For Given Course Membership BbId With Named Elements
 public BBCourseService.courseMembershipDetails GetCourseMembershipDetailsForGivenCourseMembershipBbIdWithNamedElements(string coursemembershipbbid)
 {
     try
     {
         return(bbCourse.getCourseMembershipDetailsForGivenCourseMembershipBbIdWithNamedElements(bbPassword, coursemembershipbbid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseMembershipDetailsForGivenCourseMembershipBbIdWithNamedElements", ex);
         return(null);
     }
 }
 //Get All Announcements For Given CourseId
 public stringArray[] GetAllAnnouncementsForGivenCourseId(string courseId, bool headerDesc, bool headerDescSpecified)
 {
     try
     {
         return(bbAnnouncement.getAllAnnouncementsForGivenCourseId(bbPassword, courseId, headerDesc, headerDescSpecified));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllAnnouncementsForGivenCourseId", ex);
         return(null);
     }
 }
Beispiel #22
0
 //Get Course Membership Details For Given Course Membership BbId (XML)
 public string GetCourseMembershipDetailsForGivenCourseMembershipBbIdXML(string coursemembershipbbid)
 {
     try
     {
         return(bbCourse.getCourseMembershipDetailsForGivenCourseMembershipBbIdXML(bbPassword, coursemembershipbbid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseMembershipDetailsForGivenCourseMembershipBbIdXML", ex);
         return(null);
     }
 }
 //Get All Announcements For Given CourseId (XML)
 public string GetAllAnnouncementsForGivenCourseIdXML(string courseId)
 {
     try
     {
         return(bbAnnouncement.getAllAnnouncementsForGivenCourseIdXML(bbPassword, courseId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbAnnouncement.GetAllAnnouncementsForGivenCourseIdXML", ex);
         return(null);
     }
 }
Beispiel #24
0
 //Get Course Quota Details With Named Elements
 public BBCourseService.courseQuotaDetails GetCourseQuotaDetailsWithNamedElements(string courseid)
 {
     try
     {
         return(bbCourse.getCourseQuotaDetailsWithNamedElements(bbPassword, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseQuotaDetailsWithNamedElements", ex);
         return(null);
     }
 }
 //Get Group Details For Given GroupBbId
 public stringArray[] GetGroupDetailsForGivenGroupBbId(string groupBbId, bool headerDesc, bool headerDescSpecified)
 {
     try
     {
         return(bbGroup.getGroupDetailsForGivenGroupBbId(bbPassword, groupBbId, headerDesc, headerDescSpecified));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.GetGroupDetailsForGivenGroupBbId", ex);
         return(null);
     }
 }
Beispiel #26
0
 //Get Course Quota Details (XML)
 public string GetCourseQuotaDetailsXML(string courseid)
 {
     try
     {
         return(bbCourse.getCourseQuotaDetailsXML(bbPassword, courseid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseQuotaDetailsXML", ex);
         return(null);
     }
 }
 //Get Group Member Details For Given GroupBbId With Named Elements
 public groupMemberDetails[] GetGroupMemberDetailsForGivenGroupBbIdWithNamedElements(string groupBbId)
 {
     try
     {
         return(bbGroup.getGroupMemberDetailsForGivenGroupBbIdWithNamedElements(bbPassword, groupBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.GetGroupMemberDetailsForGivenGroupBbIdWithNamedElements", ex);
         return(null);
     }
 }
Beispiel #28
0
 //Get Enrolled Courses For Given User With Named Elements
 public BBCourseService.enrollmentDetails[] GetEnrolledCoursesForGivenUserWithNamedElements(string userid)
 {
     try
     {
         return(bbCourse.getEnrolledCoursesForGivenUserWithNamedElements(bbPassword, userid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetEnrolledCoursesForGivenUserWithNamedElements", ex);
         return(null);
     }
 }
 //Add Given User To Given Group (XML)
 public string AddGivenUserToGivenGroupXML(string userId, string groupBbId)
 {
     try
     {
         return(bbGroup.addGivenUserToGivenGroupXML(bbPassword, userId, groupBbId));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("bbPassword.AddGivenUserToGivenGroupXML", ex);
         return(null);
     }
 }
Beispiel #30
0
 //Get Enrolled Courses For Given User (XML)
 public string GetEnrolledCoursesForGivenUserXML(string userid)
 {
     try
     {
         return(bbCourse.getEnrolledCoursesForGivenUserXML(bbPassword, userid));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetEnrolledCoursesForGivenUserXML", ex);
         return(null);
     }
 }