ramblings/oxygen/js-options/hello.js

20 lines
794 B
JavaScript
Raw Normal View History

2021-04-28 14:48:01 +00:00
hello = function () {
include('options.js');
var options = new Options(authorAccess, 'hello');
options.setOption('Hello', 'World');
options.setOption('See you later', 'aligator');
var myOptions = options.getOptions();
for (var key in myOptions) {
var value = myOptions[key];
Packages.java.lang.System.out.println(key + ' ' + value);
}
2021-04-29 10:04:41 +00:00
options.setSystemIdOption('Hello', 'aligator');
options.setSystemIdOption('See you later', 'World');
var myOptions = options.getSystemIdOptions();
for (var key in myOptions) {
var value = myOptions[key];
Packages.java.lang.System.out.println(key + ' ' + value);
}
2021-04-29 09:32:07 +00:00
Packages.java.lang.System.out.println('options.systemId: ' + options.systemId);
Packages.java.lang.System.out.println('options.systemIdDigest: ' + options.systemIdDigest);
2021-04-28 13:12:30 +00:00
}