Legacy platform

Server-side InitController component

The server-side InitController component is an XML file with mashup reference definition.

The following table describes the elements of the server-side InitController component.
Table 1. Server-side InitController component elements
Server-side InitController component elements Description
className Provides logic to run mashups and security component for mashup references. By default, the value is set to
com.sterlingcommerce.ui.web.platform.
controller.SCUIXAPIMashupController
controllerId A unique identifier for a controller. By default, the value is set to screenId+InitController.
requestMethodSupported Provides support for HTTP method. The default value is set to POST.
screenId The screen identifier.
Group Element/isAggregator Set the value of this element to Y to aggregate the mashup calls for InitController.
MashupRef/mashupId Indicates the identifier of the mashup for which this reference is created.
MashupRef/mashupRefId Indicates the unique identifier within a controller.
permissionId Indicates the permission identifier to verify the mashup before you call the mashup.
ChildController/controllerId Indicates the Initcontroller identifier for all the child screens.

The ChildController is called along with the parent screen controller.

ChildController/screenId Indicates the screen identifier of a child screen.
The following example provides a sample InitController XML file:
<Controller
    className="com.sterlingcommerce.ui.web.platform.controller.SCUIXAPIMashupController"
    controllerId="isccs.order.details.OrderSummaryInitController"
    requestMethodSupported="POST" screenId="isccs.order.details.OrderSummary">
    <Group isAggregator="Y"/>
    <MashupRefs>
        <MashupRef mashupId="orderSummary_getCompleteOrderDetails"
            mashupRefId="getCompleteOrderDetails" permissionId=""/>
        <MashupRef mashupId="orderSummary_getExceptionList"
            mashupRefId="getExcpetionList" permissionId=""/>
    </MashupRefs>
    <ChildControllers>
        <ChildController
            controllerId="isccs.order.details.OrderSummaryLinesInitController" 
            screenId="isccs.order.details.OrderSummaryLines"/>
        <ChildController
            controllerId="isccs.common.notes.NoteDisplayInitController" 
            screenId="isccs.common.notes.NoteDisplay"/>
        <ChildController
            controllerId="isccs.return.search.ReturnListScreenInitController" 
            screenId="isccs.return.search.ReturnListScreen"/>
    </ChildControllers>
</Controller>