sap.ui.define([], function() {
"use strict";
jQuery.sap.declare("crossmta.provider");
/**
* @alias crossmta.provider
*/
sap.ui.getCore().initLibrary({
name: "crossmta.provider",
version: "1.0.0",
dependencies: ["sap.ui.core"],
types: [],
interfaces: [],
controls: [],
elements: [],
noLibraryCSS: true
});
console.log("crossmta.provider. Loaded.");
return crossmta.provider;
}, false);
provides:
- name: provider-ref
public: true
properties:
url: '${default-url}'
ID: crossmta.provider
_schema-version: '2.1'
version: 0.0.1
modules:
- name: provider
type: html5
path: provider
properties:
CORS:
- uriPattern: .
allowedMethods:
- GET
- POST
allowedOrigin:
- host: '*.ondemand.com'
parameters:
disk-quota: 512M
memory: 256M
build-parameters:
builder: grunt
requires:
- name: uaa_crossmta.provider
- name: dest_crossmta.provider
provides:
- name: provider-ref
public: true
properties:
url: '${default-url}'
resources:
- name: uaa_crossmta.provider
parameters:
path: ./xs-security.json
service-plan: application
service: xsuaa
type: org.cloudfoundry.managed-service
- name: dest_crossmta.provider
parameters:
service-plan: lite
service: destination
type: org.cloudfoundry.managed-service
resources:
- name: provider-lib
type: configuration
parameters:
provider-nid: mta
provider-id: crossmta.provider:provider-ref
version: '>=0.0.1'
requires:
- name: provider-lib
group: destinations
properties:
name: provider-dest
url: '~{url}/provider'
forwardAuthToken: true
ID: crossmta.consumer
_schema-version: '2.1'
version: 0.0.1
modules:
- name: consumer
type: html5
path: consumer
properties:
CORS:
- uriPattern: .
allowedMethods:
- GET
- POST
allowedOrigin:
- host: '*.ondemand.com'
parameters:
disk-quota: 512M
memory: 256M
build-parameters:
builder: grunt
requires:
- name: uaa_crossmta.consumer
- name: dest_crossmta.consumer
- name: provider-lib
group: destinations
properties:
name: provider-dest
url: '~{url}/provider'
forwardAuthToken: true
resources:
- name: uaa_crossmta.consumer
parameters:
path: ./xs-security.json
service-plan: application
service: xsuaa
type: org.cloudfoundry.managed-service
- name: dest_crossmta.consumer
parameters:
service-plan: lite
service: destination
type: org.cloudfoundry.managed-service
- name: provider-lib
type: configuration
parameters:
provider-nid: mta
provider-id: crossmta.provider:provider-ref
version: '>=0.0.1'
"routes": [
{
"source": "^/provider-dest/(.*)$",
"destination": "provider-dest",
"target": "$1"
},
{
"welcomeFile": "/consumer/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [
{
"source": "^/provider-dest/(.*)$",
"destination": "provider-dest",
"target": "$1"
},
{
"source": "^/consumer/(.*)$",
"target": "$1",
"localDir": "webapp"
}
]
}
sap.ui.getCore().loadLibrary("crossmta.provider", "/provider-dest");
sap.ui.getCore().loadLibrary("crossmta.provider", "/provider-dest");
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"crossmta/consumer/consumer/model/models"
], function (UIComponent, Device, models) {
"use strict";
return UIComponent.extend("crossmta.consumer.consumer.Component", {
metadata: {
manifest: "json"
},
/**
* The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
* @public
* @override
*/
init: function () {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// enable routing
this.getRouter().initialize();
// set the device model
this.setModel(models.createDeviceModel(), "device");
}
});
});
[ {
"forwardAuthToken" : true,
"name" : "provider-dest",
"url" : "https://pxxxxxxxxxxtrial-trial-dev-provider.cfapps.eu10.hana.ondemand.com/provider"
} ]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |