dm-code/dm-web-assets/src/main/controllers/ObjectStatusController.js
/**
         * Callback function for
         * BusinessObjectDefinitionService.getBusinessObjectDefinitionKeys().
         * 
         * For each definition keys returned, calls
         * BusinessObjectFormatService.getBusinessObjectFormatKeys() if the
         * definition name matches the filter value. The
         * getBusinessObjectFormatKeys() will only return latest format
         * versions.
         */


For each definition keys returned, calls
BusinessObjectFormatService.getBusinessObjectFormatKeys() if the
definition name matches the filter value. The
getBusinessObjectFormatKeys() will only return latest format
versions.
For each definition keys returned calls BusinessObjectFormatService . getBusinessObjectFormatKeys () if the definition name matches the filter value . The getBusinessObjectFormatKeys () will only return latest format versions .
function onGetBusinessObjectDefinitionKeysSuccess(response)
        {
            _(response.data.businessObjectDefinitionKeys).each(
                function(businessObjectDefinitionKey)
                {
                    var filterDefinitionName = vm.filter.businessObjectDefinitionName;
                    var definitionName = businessObjectDefinitionKey.businessObjectDefinitionName;
                    if (filterDefinitionName === '*' || dm.utils.containsIgnoreCase(definitionName, filterDefinitionName))
                    {
                        var getBusinessObjectFormatKeysRequest = {
                            namespace : businessObjectDefinitionKey.namespace,
                            businessObjectDefinitionName : definitionName,
                            latestVersion : true
                        };
                        vm.BusinessObjectFormatService.getBusinessObjectFormatKeys(getBusinessObjectFormatKeysRequest).then(
                            onGetBusinessObjectFormatKeysSuccess, function()
                            {
                                onGetBusinessObjectFormatKeysError(businessObjectDefinitionKey);
                            });
                    }
                });
        }
function onGetBusinessObjectDefinitionKeysSuccess ( response ) { _ ( response . data . businessObjectDefinitionKeys ) . each ( function ( businessObjectDefinitionKey ) { var filterDefinitionName = vm . filter . businessObjectDefinitionName ; var definitionName = businessObjectDefinitionKey . businessObjectDefinitionName ; if ( filterDefinitionName === '*' || dm . utils . containsIgnoreCase ( definitionName , filterDefinitionName ) ) { var getBusinessObjectFormatKeysRequest = { namespace : businessObjectDefinitionKey . namespace , businessObjectDefinitionName : definitionName , latestVersion : true } ; vm . BusinessObjectFormatService . getBusinessObjectFormatKeys ( getBusinessObjectFormatKeysRequest ) . then ( onGetBusinessObjectFormatKeysSuccess , function ( ) { onGetBusinessObjectFormatKeysError ( businessObjectDefinitionKey ) ; } ) ; } } ) ; }
Callback function for
 BusinessObjectDefinitionService.getBusinessObjectDefinitionKeys().
Callback function for BusinessObjectDefinitionService . getBusinessObjectDefinitionKeys () .
/*
                     * Filter matches if current definition name filter is not
                     * set, or if the definition name contains the filter value
                     * ignoring case.
                     * '*' matches all definition names.
                     */