gov.va.medora.mdo.api.UserApi.userLookup C# (CSharp) Méthode

userLookup() public méthode

public userLookup ( ConnectionSet cxns, string>.KeyValuePair param ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
param string>.KeyValuePair
Résultat IndexedHashtable
        public IndexedHashtable userLookup(ConnectionSet cxns, KeyValuePair<string, string> param)
        {
            return cxns.query(DAO_NAME, "userLookup", new object[] { param });
        }

Same methods

UserApi::userLookup ( ConnectionSet cxns, string>.KeyValuePair param, string maxrex ) : IndexedHashtable
UserApi::userLookup ( gov.va.medora.mdo.dao.AbstractConnection cxn, string>.KeyValuePair param ) : User[]
UserApi::userLookup ( gov.va.medora.mdo.dao.AbstractConnection cxn, string>.KeyValuePair param, string maxrex ) : User[]

Usage Example

Exemple #1
0
        // DON'T SEE A USERLOOKUPBYNAME FUNCTION ON USERAPI
        public TaggedUserArrays lookupMS(string target, string maxRex)
        {
            TaggedUserArrays result = new TaggedUserArrays();
            string msg = MdwsUtils.isAuthorizedConnection(mySession);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            else if (target == "")
            {
                result.fault = new FaultTO("Missing target");
            }
            //else if (!StringUtils.isNumeric(maxRex))
            //{
            //    result.fault = new FaultTO("Non-numeric maxRex");
            //}
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                KeyValuePair<string, string> kvp = new KeyValuePair<string, string>("NAME",target);
                UserApi api = new UserApi();
                IndexedHashtable t = api.userLookup(mySession.ConnectionSet, kvp, maxRex);
                result = new TaggedUserArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }
All Usage Examples Of gov.va.medora.mdo.api.UserApi::userLookup