...
- Define the provider in provisioning providers metadata file.
- Create a process class extending com.crm.process.provisioning.CRMProcessProvisioningProviderBean.
- Create a data entry page or a summary page accordingly for a data entry view class and a java class implementing com.crm.process.provisioning.CustomProvisioningAction for each of the provisioning provider related processes.
...
- public void testConnection(CRMDOProvProvider provProvider)
This method is called to test whether the connection with the provisioning provider is valid.
Code Block language java title testConnection linenumbers true collapse true @Override public void testConnection(CRMDOProvProvider provProvider) throws Exception { ... } ... }
public ProvisioningProviderResult processAddService(AddServiceParameters addServiceParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'Add Service' subscription action is executed.
Code Block language java title processAddService linenumbers true collapse true @Override public ProvisioningProviderResult processAddService(AddServiceParameters addServiceParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processAmendBundleService(AmendBundleServiceParameters amendBundleServiceParameters,
ArrayList<ProvisioningProviderService> removedProviderServices,
ArrayList<ProvisioningProviderService> addedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems)This method is called whenever an 'Amend Bundled' subscription action is executed.
Code Block language java title processAmendBundleService linenumbers true collapse true @Override public ProvisioningProviderResult processAmendBundleService( AmendBundleServiceParameters amendBundleServiceParameters, ArrayList<ProvisioningProviderService> removedProviderServices, ArrayList<ProvisioningProviderService> addedProviderServices, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processRemoveService(RemoveServiceParameters removeServiceParameters,
ArrayList<ProvisioningProviderService> removedProviderServices,
ArrayList<ProvisioningProviderService> addedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems)This method is called whenever a 'Remove Service' subscription action is executed.
Code Block language java title processRemoveService linenumbers true collapse true @Override public ProvisioningProviderResult processRemoveService(RemoveServiceParameters removeServiceParameters, ArrayList<ProvisioningProviderService> removedProviderServices, ArrayList<ProvisioningProviderService> addedProviderServices, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processSwapService(SwapServiceParameters swapServiceParameters,
ArrayList<ProvisioningProviderService> removedProviderServices,
ArrayList<ProvisioningProviderService> addedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems)This method is called whenever a 'Swap Service' subscription action is executed.
Code Block language java title processSwapService linenumbers true collapse true @Override public ProvisioningProviderResult processSwapService(SwapServiceParameters swapServiceParameters, ArrayList<ProvisioningProviderService> removedProviderServices, ArrayList<ProvisioningProviderService> addedProviderServices, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processStartService(StartServiceParameters startServiceParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Start Service' subscription action is executed.
Code Block language java title processStartService linenumbers true collapse true @Override public ProvisioningProviderResult processStartService(StartServiceParameters startServiceParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processStopService(StopServiceParameters stopServiceParameters,
ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Stop Service' subscription action is executed.
Code Block language java title processStopService linenumbers true collapse true @Override public ProvisioningProviderResult processStopService(StopServiceParameters stopServiceParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processAddInstalledItem(AddInstalledItemParameters addInstalledItemParameters,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems, ArrayList<ProvisioningProviderService> providerServices)This method is called whenever an 'Add Installed Item' subscription action is executed.
Code Block language java title processAddInstalledItem linenumbers true collapse true @Override public ProvisioningProviderResult processAddInstalledItem(AddInstalledItemParameters addInstalledItemParameters, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems, ArrayList<ProvisioningProviderService> providerServices) throws Exception { ... } ... }
public ProvisioningProviderResult processRemoveInstalledItem(RemoveInstalledItemParameters removeInstalledItemParameters,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)
This method is called whenever a 'Remove Installed Item' subscription action is executed.
Code Block language java title processRemoveInstalledItem linenumbers true collapse true @Override public ProvisioningProviderResult processRemoveInstalledItem( RemoveInstalledItemParameters removeInstalledItemParameters, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
- public ProvisioningProviderResult processMoveInstalledItem(MoveInstalledItemParameters moveInstalledItemParameters,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems)This method is called whenever a 'Move Installed Item' subscription action is executed.
Code Block language java title processMoveInstalledItem linenumbers true collapse true @Override public ProvisioningProviderResult processMoveInstalledItem(MoveInstalledItemParameters moveInstalledItemParameters, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processSwapInstalledItem(SwapInstalledItemParameters swapInstalledItemParameters,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems,
ArrayList<ProvisioningProviderService> providerServices)This method is called whenever a 'Swap Installed Item' subscription action is executed.
Code Block language java title processSwapInstalledItem linenumbers true collapse true @Override public ProvisioningProviderResult processSwapInstalledItem(SwapInstalledItemParameters swapInstalledItemParameters, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems, ArrayList<ProvisioningProviderService> providerServices) throws Exception { ... } ... }
public ProvisioningProviderResult processChangeSubscriptionDistribution(ChangeSubscriptionDistributionParameters changeSubscriptionDistributionParameters,
ArrayList<ProvisioningProviderService> removedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderService> addedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems,
ArrayList<ProvisioningProviderService> authorisedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems)This method is called whenever a 'Change Subscription Distribution' subscription action is executed.
Code Block language java title processChangeSubscriptionDistribution linenumbers true collapse true @Override public ProvisioningProviderResult processChangeSubscriptionDistribution( ChangeSubscriptionDistributionParameters changeSubscriptionDistributionParameters, ArrayList<ProvisioningProviderService> removedProviderServices, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderService> addedProviderServices, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems, ArrayList<ProvisioningProviderService> authorisedProviderServices, ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processBecomeSubscriber(BecomeSubscriberParameters becomeSubscriberParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Become Subscriber' subscription action is executed.
Code Block language java title processBecomeSubscriber linenumbers true collapse true @Override public ProvisioningProviderResult processBecomeSubscriber( BecomeSubscriberParameters becomeSubscriberParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processActivateSubscription(ActivateSubscriptionParameters activateSubscriptionParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'Activate Subscription' subscription action is executed.
Code Block language java title processActivateSubscription linenumbers true collapse true @Override public ProvisioningProviderResult processActivateSubscription( ActivateSubscriptionParameters activateSubscriptionParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processDeactivateSubscription(DeactivateSubscriptionParameters deactivateSubscriptionParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Deactivate Subscription' subscription action is executed.
Code Block language java title processDeactivateSubscription linenumbers true collapse true @Override public ProvisioningProviderResult processDeactivateSubscription( DeactivateSubscriptionParameters deactivateSubscriptionParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processTerminateSubscription(TerminateSubscriptionParameters teminateSubscriptionParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Terminate Subscription' subscription action is executed.
Code Block language java title processTerminateSubscription linenumbers true collapse true @Override public ProvisioningProviderResult processTerminateSubscription( TerminateSubscriptionParameters teminateSubscriptionParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processRestSubscription(RestSubscriptionParameters restSubscriptionParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Rest Subscription' subscription action is executed.
Code Block language java title processRestSubscription linenumbers true collapse true @Override public ProvisioningProviderResult processRestSubscription(RestSubscriptionParameters restSubscriptionParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processEndSubscriptionResting(EndSubscriptionRestingParameters endSubscriptionRestingParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'End Subscription Resting' subscription action is executed.
Code Block language java title processEndSubscriptionResting linenumbers true collapse true @Override public ProvisioningProviderResult processEndSubscriptionResting( EndSubscriptionRestingParameters endSubscriptionRestingParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processShortTermSubscriptionActivation(ShortTermSubscriptionActivationParameters shortTermActivationParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Short Term Activation' subscription action is executed.
Code Block language java title processShortTermSubscriptionActivation linenumbers true collapse true @Override public ProvisioningProviderResult processShortTermSubscriptionActivation( ShortTermSubscriptionActivationParameters shortTermActivationParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processEndShortTermSubscriptionActivation(EndShortTermSubscriptionActivationParameters endShortTermSubscriptionActivationParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'End Short Term Activation' subscription action is executed.
Code Block language java title processEndShortTermSubscriptionActivation linenumbers true collapse true @Override public ProvisioningProviderResult processEndShortTermSubscriptionActivation( EndShortTermSubscriptionActivationParameters endShortTermSubscriptionActivationParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processShortTermSubscriptionDeactivation(ShortTermSubscriptionDeactivationParameters shortTermSubscriptionDeactivationParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever a 'Short Term Deactivation' subscription action is executed.
Code Block language java title processShortTermSubscriptionDeactivation linenumbers true collapse true @Override public ProvisioningProviderResult processShortTermSubscriptionDeactivation( ShortTermSubscriptionDeactivationParameters shortTermSubscriptionDeactivationParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processEndShortTermSubscriptionDeactivation(EndShortTermSubscriptionDeactivationParameters endShortTermSubscriptionDeactivationParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'End Short Term Deactivation' subscription action is executed.
Code Block language java title processEndShortTermSubscriptionDeactivation linenumbers true collapse true @Override public ProvisioningProviderResult processEndShortTermSubscriptionDeactivation( EndShortTermSubscriptionDeactivationParameters endShortTermSubscriptionDeactivationParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processAddServiceUsage(AddServiceUsageParameters addServiceUsageParameters,
ArrayList<ProvisioningProviderUsageDataRecord> protocolProviderUdrs,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'Add Service Usage' subscription action is executed.
Code Block language java title processAddServiceUsage linenumbers true collapse true @Override public ProvisioningProviderResult processAddServiceUsage(AddServiceUsageParameters addServiceUsageParameters, ArrayList<ProvisioningProviderUsageDataRecord> protocolProviderUdrs, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
public ProvisioningProviderResult processCancelledUDRs(CancelServiceUsageParameters cancelServiceUsageParameters, ArrayList<ProvisioningProviderUsageDataRecord> providerUsageDataRecords)
This method is called whenever a 'Cancel UDR' action is executed.
Code Block language java title processCancelledUDRs linenumbers true collapse true @Override public ProvisioningProviderResult processCancelledUDRs(CancelServiceUsageParameters cancelServiceUsageParameters, ArrayList<ProvisioningProviderUsageDataRecord> providerUsageDataRecords) throws Exception { ... } ... }
public ProvisioningProviderResult processResetSubscription(ResetSubscriptionParameters resetSubscriptionParameters,
ArrayList<ProvisioningProviderService> providerServicesForDeactivation,
ArrayList<ProvisioningProviderService> providerServicesForActivation,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItemsForActivation,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItemsForDeactivation,
ArrayList<ProvisioningProviderUsageDataRecord> providerUdrsForActivation,
ArrayList<ProvisioningProviderUsageDataRecord> providerUdrsForDeactivation,
ArrayList<ProvisioningProviderService> authorisedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems)This method is called whenever a 'Reset Subscription' subscription action is executed.
Code Block language java title processResetSubscription linenumbers true collapse true @Override public ProvisioningProviderResult processResetSubscription(ResetSubscriptionParameters resetSubscriptionParameters, ArrayList<ProvisioningProviderService> providerServicesForDeactivation, ArrayList<ProvisioningProviderService> providerServicesForActivation, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItemsForActivation, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItemsForDeactivation, ArrayList<ProvisioningProviderUsageDataRecord> providerUdrsForActivation, ArrayList<ProvisioningProviderUsageDataRecord> providerUdrsForDeactivation, ArrayList<ProvisioningProviderService> authorisedProviderServices, ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems) throws Exception { ... } ... }
- public ProvisioningProviderResult processChangeSubscriberAccount(ChangeSubscriberAccountParameters changeSubscriberAccountParameters)
This method is called whenever a 'Change Subscriber Account' action is executed.
Code Block language java title processChangeSubscriberAccount linenumbers true collapse true @Override public ProvisioningProviderResult processChangeSubscriberAccount( ChangeSubscriberAccountParameters changeSubscriberAccountParameters) throws Exception { ... } ... }
- public ProvisioningProviderResult processChangeSubscriptionLocation(ChangeSubscriptionLocationParameters changeSubscriptionLocationParameters)
This method is called whenever a 'Change Subscription Address' action is executed.
Code Block language java title processChangeSubscriptionLocation linenumbers true collapse true @Override public ProvisioningProviderResult processChangeSubscriptionLocation( ChangeSubscriptionLocationParameters changeSubscriptionLocationParameters) throws Exception { ... } ... }
- public ProvisioningProviderResult processExtendSubscriptionGracePeriod(ExtendSubscriptionGracePeriodParameters extendSubscriptionGracePeriodParameters,
ArrayList<ProvisioningProviderService> providerServices,
ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems)This method is called whenever an 'Extend Grace Period' action is executed.
Code Block language java title processExtendSubscriptionGracePeriod linenumbers true collapse true @Override public ProvisioningProviderResult processExtendSubscriptionGracePeriod( ExtendSubscriptionGracePeriodParameters extendSubscriptionGracePeriodParameters, ArrayList<ProvisioningProviderService> providerServices, ArrayList<ProvisioningProviderInstalledItem> providerInstalledItems) throws Exception { ... } ... }
- public ProvisioningProviderResult processAmendServicesAndInstalledItems(AmendServicesAndInstalledItemsParameters amendServicesAndInstalledItemsParameters,
ArrayList<ProvisioningProviderService> removedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems,
ArrayList<ProvisioningProviderService> addedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems,
ArrayList<ProvisioningProviderService> authorisedProviderServices,
ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems)This method is called whenever an 'Amend Services and Installed Items' action is executed.
Code Block language java title processAmendServicesAndInstalledItems linenumbers true collapse true @Override public ProvisioningProviderResult processAmendServicesAndInstalledItems( AmendServicesAndInstalledItemsParameters amendServicesAndInstalledItemsParameters, ArrayList<ProvisioningProviderService> removedProviderServices, ArrayList<ProvisioningProviderInstalledItem> removedProviderInstalledItems, ArrayList<ProvisioningProviderService> addedProviderServices, ArrayList<ProvisioningProviderInstalledItem> addedProviderInstalledItems, ArrayList<ProvisioningProviderService> authorisedProviderServices, ArrayList<ProvisioningProviderInstalledItem> initialisedProviderInstalledItems) throws Exception { ... } ... }
- public ProvisioningProviderResult processCustomProvisioningAction(CustomProvisioningActionParameters customProvisioningActionParameters)
This method is called whenever a Custom action is executed.
Code Block language java title processCustomProvisioningAction linenumbers true collapse true @Override public ProvisioningProviderResult processCustomProvisioningAction( CustomProvisioningActionParameters customProvisioningActionParameters) throws Exception { ... } ... }
- public Boolean authenticate(AuthenticateParameters authenticateParameters)
This method is called to authenticate the subscription.
Code Block language java title authenticate linenumbers true collapse true @Override public Boolean authenticate(AuthenticateParameters authenticateParameters) throws Exception { ... } ... }
b. Create and Process Provisioning Requests
TODO is this needed??
...
3. Data Entry View Pages and Java classes
You will need to create a data entry view page for each of the provisioning provider's individual processes.
These processes are considered Custom Provisioning Provider Actions. Thus, for each of these processes a new Java Class implementing com.crm.process.provisioning.CustomProvisioningAction should be created. In the example below, a java class is created for the "Set pin code" process.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
public class MYCOMPANYCRMProcessTucanoProviderBeanSetPinCodeAction extendsimplements CRMProcessProviderBeanCustomProvisioningAction { ... private CRMDOProvisioningRequest processActivateOptionsProvisioningRequest( CRMDOProvProvider provProvider, CRMDOSubscription subscription, CRMDOSubProvProviderParameter subProvProviderParameter, ArrayList<ProviderService> providerServices, String processName, String processID, TucanoAuthenticationToken tucanoAuthenticationToken) throws Exception { //The provisioning request parameters to be created HashMap<String,Object> parameterValues = new HashMap<String,Object>(); //The subscription provisioning parameter parameterValues.put(ProvisioningRequestParameterType.SUB_PROVISIONING_PARAMETER_ID.toString(), subProvProviderParameter); //A list of service CA IDs ArrayList<Integer> optionIds = new ArrayList<Integer>(); ArrayList<CRMDOSubProvisioningDistribution> subProvDistributions = new ArrayList<CRMDOSubProvisioningDistribution>(); for(int i=0; i<providerServices.size(); i++) { optionIds.add(new Integer(tucanoProviderBean.getServiceCAID(provProvider,providerServices.get(i).getProduct()))); subProvDistributions.add(providerServices.get(i).getSubProvisioningDistribution()); } //The subscription provisioning distributor linked with the service parameterValues.put(ProvisioningRequestParameterType.SERVICE_CA_ID.toString(),optionIds); //The subscription service CA ID parameterValues.put(ProvisioningRequestParameterType.SERVICE_SUB_PROVISIONING_DISTRIBUTION_ID.toString(),subProvDistributions); //Create and save the porvisioning request and provisioning request parameters CRMDOProvisioningRequest provisioningRequest = createProvisioningRequest( provProvider, ProvisioningRequestTypeCode.ACTIVATE_OPTIONS.toString(), getCurrentDate(), parameterValues, "addOptions", null, processName, processID, subscription); Boolean success = false; String request = null; String result = null; //Send request to TUCANO and set values of request, success and result {...} // if(success) { provisioningRequest.setRequest(request+" / "result); completeProvisioningRequest(request+" / "result, getCurrentDate(),subProvDistributions,null,null,null,null); } else { rejectProvisioningRequest(provisioningRequest, result, subProvDistributions,null,null,null,null); } return provisioningRequest; } ... } |
3. Data Entry and Summary Pages
You will need to create a data entry or a summary page for the provisioning provider's individual processes.
For more information on creating custom summary pages go to Customize Summary Pages.
For more information on creating custom data entry pages go to Customize Data Entry Pages.
...
} |
Then, an object of this java class is used in the data entry view page to send the custom provisioning requests for the "Set pin code" process.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@ManagedBean(name = "setPinCodeView", eager = true)
@ViewScoped
public class SetPinCodeView extends DataEntryView {
@EJB private CRMProcessExampleProviderBean processExampleProvider;
...
public void submitButton() throws Exception {
...
SetPinCodeAction setPinCodeAction = new SetPinCodeAction();
setPinCodeAction.setProvProvider(provider);
setPinCodeAction.setPINCode(getPINCode());
processExampleProvider.sendCustomProvisioningCommandsToHandler(setPinCodeAction, provider.getProtocol());
...
} |
Ui expand | ||
---|---|---|
| ||