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

getSecurityKeyForContext() public method

public getSecurityKeyForContext ( string context ) : string
context string
return string
        public string getSecurityKeyForContext(string context)
        {
            if (StringUtils.isEmpty(context))
            {
                throw new ArgumentNullException("Missing context");
            }
            string contextIen = getOptionIen(context);
            VistaQuery vq = new VistaQuery("XWB GET VARIABLE VALUE");
            string arg = "$G(^DIC(19," + contextIen + ",0))";
            vq.addParameter(vq.REFERENCE, arg);
            string response = (string)cxn.query(vq);
            return extractSecurityKey(response);
        }
VistaUserDao