initi.doc/docfiles/providers/managers/publishers/manager.js

39 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Менеджер паблишеров.
* <br>
* <br>
* **Доступ:**
*
* Централизированного доступа к паблишерам нет.
*
* Он осуществляется для каждого менеджера паблишеров в индивидальном порядке, под провайдером,
*
* который его содержит.
* @group manager
* @namespace Publishers
*/
function Publishers() {
/**
* Вернет ссылку на провайдер паблишера.
* <br/>
* <br/>
* Пример
* ```
* var some_provider = null;
* some_provider.publisher_manager.get(new v2.address("some_publisher")).then(function(_ref){
* var model = _ref.value();
* // теперь можно работать с провайдером паблишера
* }, function(_err){
* console.log("произошла ошибка")
* });
* ```
* @public
* @function get
* @param {v2.address} address Адрес паблишера
* @returns {tools.promise(Publishers.Publisher)}
* @memberof Publishers
*/
this.get = function (address) {
};
}