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 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 Business Edition 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); |
Implementation Guide for Oracle Self-Service E-Billing | Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |