Skip to main content
pdf?stylesheet=default
Blackboard Help

Sample Code for Data Object Attribute Marshalling

Use this code sample as the basis for data object attribute marshalling for event driven APIs.

Event Driven API - Data Object attribute marshalling

person_1.setDataSourceBatchUid("SIS");
person_1.setEmailAddress("hbaal@carthage.com");
person_1.setFamilyName("Baal");
person_1.setGivenName("Hannibal");
person_1.setBatchUid("33333");
person_1.setPassword("hbaal");
person_1.setUserName("hbaal");
person_1.setSystemRole( person_1.SystemRole.SYSTEM_ADMIN);
person_1.setTitle("General");
 
person_2.setDataSourceBatchUid("SIS");
person_2.setEmailAddress("ahun@carthage.com");
person_2.setFamilyName("Hun");
person_2.setGivenName("Atillah");
person_2.setBatchUid("11111");
person_2.setPassword("ahun");
person_2.setUserName("ahun");
person_2.setSystemRole( person_2.SystemRole.SYSTEM_ADMIN);
person_2.setTitle("General");
 
course.setCourseId("CRTHG101_CRS");
course.setDataSourceBatchUid("SIS");
course.setBatchUid("ACRTHG101_CRS");
course.setTitle("Intimidation through Mammoths");
course.setInstitutionName("Carthage");
course.setDescription("Discussion of the use ");
 
org.setOrganizationId("CRTHG101_ORG");
org.setDataSourceBatchUid("SIS");
org.setBatchUid("ACRTHG101_ORG");
org.setTitle("Intimidation through Mammoths");
org.setInstitutionName("Carthage");
org.setDescription("Discussion of the use ");
 
enroll.setDataSourceBatchUid("SIS");
enroll.setCourseSiteBatchUid("ACRTHG101_CRS");
enroll.setPersonBatchUid("33333");
 
staff.setDataSourceBatchUid("SIS");
staff.seCourseSiteBatchUid("ACRTHG101_CRS");
staff.setPersonBatchUid("11111");
staff.setRole( staff.Role.Student" /> );
 
orgmem.setDataSourceBatchUid("SIS");
orgmem.setOrganizationBatchUid("ACRTHG101_ORG");
orgmem.setPersonBatchUid("33333");
orgmem.setRole( staff.Role.INSTRUCTOR);
 
crs_cat.setBatchUid("ACRTHGCAT");
crs_cat.setDataSourceBatchUid("SIS");
crs_cat.setFrontPageInd(true);
crs_cat.setIsAvailable(true);
crs_cat.setTitle("Carthage Course Category");
 
org_cat.setBatchUid("ACRTHGCAT");
org_cat.setDataSourceBatchUid("SIS");
org_cat.setFrontPageInd(true);
org_cat.setIsAvailable(true);
org_cat.setTitle("Carthage Organization Category");
 
org_cat_mem.setCategoryBatchUid("ACRTHGCAT");
org_cat_mem.setDataSourceBatchUid("SIS");
org_cat_mem.setOrganizationBatchUid("ACRTHG101_ORG");
org_cat_mem.setIsAvailable(true);
 
crs_cat_mem.setCategoryBatchUid("ACRTHGCAT");
crs_cat_mem.setDataSourceBatchUid("SIS");
crs_cat_mem.setCourseSiteBatchUid("ACRTHG101_CRS");
crs_cat_mem.setIsAvailable(true);