Sha256: 2da10ea6d23f9d0771213fa830cdbfb11a20ae7f17e40e428710f265f43ff020

Contents?: true

Size: 1.28 KB

Versions: 29

Compression:

Stored size: 1.28 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.products.factory:Product
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for product or list of products.
 */
angular.module('Bastion.products').factory('Product',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/katello/api/products/:id/:action', {id: '@id'}, {
            update: { method: 'PUT'},
            sync: { method: 'POST', params: { action: 'sync' }},
            updateSyncPlan: { method: 'POST', params: { action: 'sync_plan' }},
            autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}}
        });

    }]
);

/**
 * @ngdoc service
 * @name  Bastion.products.factory:ProductBulkAction
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for bulk actions on products.
 */
angular.module('Bastion.products').factory('ProductBulkAction',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/katello/api/products/bulk/:action', {}, {
            removeProducts: {method: 'PUT', params: {action: 'destroy'}},
            syncProducts: {method: 'PUT', params: {action: 'sync'}},
            updateProductSyncPlan: {method: 'PUT', params: {action: 'sync_plan'}}
        });
    }]
);

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.0.0.rc7 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-3.0.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js