Each generated application/page has access to this object via 'Abcs.System' variable and can refer to variety of global objects, constants and functions defined here. In long term end user should be able to include their own global constants and functions here.
- Version:
- 15.4.5
- Source:
Members
(static, constant) ENTITY_LOGGED_USER :string
stable API
Id of the system wide entity holding data about logged in user.
Data records for the entity identified by this ID have format described in Entities.UserEntity.
Type:
- string
- Version:
- 15.4.5
- Source:
(static, constant) ENTITY_SYSTEM_INFO :string
stable API
Id of the system wide entity holding data the system.
Data records for the entity identified by this ID have format described in Entities.SystemInfo.
Type:
- string
- Version:
- 15.4.5
- Source:
Methods
(static) getLoggedInUser() → {module:api/js/Entities.UserEntity}
stable API
Gets logged user information.
- Version:
- 15.4.5
- Source:
Returns:
current logged-in user
(static) getSharedObject(id) → {Object}
stable API
Gets a shared object registered into ABCS system with the given id.
Shared object is a global object providing various methods, fields and functionality possibly registered by third-party individuals.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | unique shared object identifier. |
- Version:
- 16.1.5
- Source:
Returns:
shared object registered in the ABCS system with a unique id or {@code undefined} if no such object is found.
- Type
- Object
Example
// get the shared object
var myObject = Abcs.System().getSharedObject('org.my.mySharedObject');
// call shared object's method
var message = myObject.getMessage();
Abcs.UI().showNotification(Abcs.UI().Notification.create({
message: message
});
(static) getSystemInfo() → {module:api/js/Entities.SystemInfo}
stable API
Gets system information.
- Version:
- 15.4.5
- Source:
Returns:
system info