Source: models/security-types-model.js

/*
 * Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

/**
 * @module settings/js/models/security-types
 */
define([
    'underscore',
    'settings/js/models/dropdown-property-model'
], function(_, DropdownPropertyModel) {
    return DropdownPropertyModel.extend({
        /**
         * @typedef DropdownPropertyAttributes
         * @property {Array<String>} dropdownPropertyValues An array of strings representing the dropdown property values
         */
        /**
         * Parse the list of security types to remove any type named "default"
         * @param {DropdownPropertyAttributes} response
         * @returns {DropdownPropertyAttributes} response
         */
        parse: function(response) {
            response.securityTypes = response.securityTypes && _.without(response.securityTypes, 'default');
            return response;
        }
    });
});
Copyright 2013--2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Fri Jun 22nd 14:40 2018 using the DocStrap template.