gov.va.medora.mdo.dao.vista.VistaUserDao.toUserSecurityKeys C# (CSharp) Method

toUserSecurityKeys() private method

private toUserSecurityKeys ( string response ) : AbstractPermission>.Dictionary
response string
return AbstractPermission>.Dictionary
        internal Dictionary<string, AbstractPermission> toUserSecurityKeys(string[] response)
        {
            if (response == null || response.Length == 0)
            {
                return null;
            }
            StringDictionary securityKeyFile = cxn.SystemFileHandler.getLookupTable(VistaConstants.SECURITY_KEY);
            Dictionary<string, AbstractPermission> result = new Dictionary<string, AbstractPermission>(response.Length);
            for (int i = 0; i < response.Length; i++)
            {
                string[] flds = StringUtils.split(response[i], StringUtils.CARET);
                if (securityKeyFile.ContainsKey(flds[1]))
                {
                    AbstractPermission key = new SecurityKey(flds[1], securityKeyFile[flds[1]], flds[0]);
                    result.Add(key.Name, key);
                }
            }
            return result;
        }
VistaUserDao