dm-code/dm-web-assets/src/main/controllers/ObjectStatusController.js
/**
         * Callback function for NamespaceService.getNamespaceKeys().
         * 
         * For each namespace key returned, calls
         * BusinessObjectDefinitionService.getBusinessObjectDefinitionKeys().
         */


For each namespace key returned, calls
BusinessObjectDefinitionService.getBusinessObjectDefinitionKeys().
For each namespace key returned calls BusinessObjectDefinitionService . getBusinessObjectDefinitionKeys () .
function onGetNamespaceKeysSuccess(response)
        {
            _(response.data.namespaceKeys).each(function(namespaceKey)
            {
                var getBusinessObjectDefinitionKeysPromise = vm.BusinessObjectDefinitionService.getBusinessObjectDefinitionKeys(namespaceKey);
                getBusinessObjectDefinitionKeysPromise.then(onGetBusinessObjectDefinitionKeysSuccess, function()
                {
                    onGetBusinessObjectDefinitionKeysError(namespaceKey);
                });
            });
        }
function onGetNamespaceKeysSuccess ( response ) { _ ( response . data . namespaceKeys ) . each ( function ( namespaceKey ) { var getBusinessObjectDefinitionKeysPromise = vm . BusinessObjectDefinitionService . getBusinessObjectDefinitionKeys ( namespaceKey ) ; getBusinessObjectDefinitionKeysPromise . then ( onGetBusinessObjectDefinitionKeysSuccess , function ( ) { onGetBusinessObjectDefinitionKeysError ( namespaceKey ) ; } ) ; } ) ; }
Callback function for NamespaceService.getNamespaceKeys().
Callback function for NamespaceService . getNamespaceKeys () .