SystemChannel
d7-services.resources.system
Notification channel for system resource. This service is used as a SystemResource specific eventbus. It can publish and subscribe to all SystemResources requests events. Every request have its confirm os failed event
Publish the SystemConnectConfirmed event with given args
| Param | Type | Details |
|---|---|---|
| args | Object |
|
publish data with the connectConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.pubConnectConfirmed($scope, function(data){ ... });
});
Publish the connectFailed event with given args
| Param | Type | Details |
|---|---|---|
| args | Object |
|
publish data with the connectConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.pubConnectFailed($scope, function(data){ ... });
});
Publish the getVariableConfirmed event with given args
| Param | Type | Details |
|---|---|---|
| args | Object |
|
subscribe for the connectConfirmed event unsubscribes automatically on scopes destroy event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the connectConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subConnectConfirmed($scope, function(data){ ... });
});
unsubscribe from the connectConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subConnectConfirmed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the connectFailed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subConnectFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subConnectFailed($scope, function(data){ ... });
});
unsubscribe from the subConnectFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subConnectFailed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the delVariableConfirmed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subDelVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subDelVariableConfirmed($scope, function(data){ ... });
});
unsubscribe from the subDelVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subDelVariableConfirmed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the delVariableFailed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subDelVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subDelVariableFailed($scope, function(data){ ... });
});
unsubscribe from the subDelVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subDelVariableFailed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the getVariableConfirmed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subGetVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subGetVariableConfirmed($scope, function(data){ ... });
});
unsubscribe from the subGetVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subGetVariableConfirmed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the getVariableFailed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subGetVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subGetVariableFailed($scope, function(data){ ... });
});
unsubscribe from the subGetVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subGetVariableFailed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the setVariableConfirmed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subSetVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subSetVariableConfirmed($scope, function(data){ ... });
});
unsubscribe from the subSetVariableConfirmed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subSetVariableConfirmed($scope, function(data){ ... });
//unsubscribe here
unsub();
});
subscribe for the setVariableFailed event
| Param | Type | Details |
|---|---|---|
| _Scope | object |
|
| scopeHandler | Function |
|
| Function | The unsubscribe function from the $rootScope.on() call |
subscribe to the subSetVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
SystemChannel.subSetVariableFailed($scope, function(data){ ... });
});
unsubscribe from the subSetVariableFailed event
angular
.module('myModule', ['d7-services.resources.system'])
.controller('myController', function($scope, SystemChannel) {
var unsub = SystemChannel.subSetVariableFailed($scope, function(data){ ... });
//unsubscribe here
unsub();
});