Implementation Guide for Oracle Billing Insight > Customizing User Management >

Customizing User Enrollment


You can customize the User Enrollment use case using XMA and APIs. You can configure the IUserService JavaBean in the userService.xma.xml file, located in the following directory:

  • UNIX. EDX_HOME/xma/config/modules/services
  • Windows. EDX_HOME\xma\config\modules\services
Using the User Enrollment API

When customizing user enrollment, you can call the enrollB2BUser or enrollB2CUser APIs to enroll business or consumer 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. This example is from com.edocs.application.common.usermanagement.actions.B2BEnrollAction:

enrollProf.setRole(role);
enrollProf.setCompanyId(companyId);
enrollProf.setServiceAgreementExtKey(saExtKey);
enrollProf.setAccountExtKeyList(acctExtKeyList);
enrollProf.setAdminEmail(adminUser.getUserProfile().getEmail1());

The following code is used for enrolling a single business user:

usrService.enrollB2BUser(newUser, enrollProf, audit);

Using the Bulk Enrollment API

To 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 Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.