Bookshelf Home | Contents | Index | PDF |
Implementation Guide for Oracle Self-Service E-Billing > Customizing User Management > Customizing User EnrollmentYou can customize the User Enrollment use case using XMA and APIs. Configuring User Enrollment XMAYou can configure the IUserService JavaBean in the userService.xma.xml file, found in the EDX_HOME class="com.edocs.common.services.umf.UserService"> <property name="userAccountDao"> <property name="userServiceAgreementDao"> <ref local="userServiceAgreementDao"/> Using User Enrollment APIsWhen customizing user enrollment, you can call the enrollB2BUser or enrollB2CUser APIs to enroll B2B or B2C users, for example: IUserService usrService=EBillingServiceFactory.getUserService(); usrService.enrollB2BUser(c_user, role, user.getUserProfile().getEmail1() ); Create a JavaBean called com.edocs.common.api.services.IUserEnrollProfile: IUserEnrollProfile enrollProf = new UserEnrollProfile(); Use the following code to set the properties: enrollProf.setCompanyId(companyId); enrollProf.setServiceAgreementExtKey(saExtKey); enrollProf.setAccountExtKeyList(acctExtKeyList); enrollProf.setAdminEmail(adminUser.getUserProfile().getEmail1()); Use the following code for enrolling a single B2B user: usrService.enrollB2BUser(newUser, enrollProf, audit); Using Bulk Enrollment APITo use the bulk enrollment API, pass the input stream CSV file for bulk enrollment, the filename, import time, administrator user, and audit as shown in the following code. The method enrolls the users in the file and returns the success number. IUserService usrService = EBillingServiceFactory.getUserService(); int succeedEnrolledUsersNum = usrService.enrollB2BUser(csvFile.getInputStream(), csvFile.getFileName(),importTime, adminUser, audit);Status OpenFixedClosed |
Implementation Guide for Oracle Self-Service E-Billing | Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |