Ejemplo n.º 1
0
 public static Ice.DispatchStatus ModifyLogin___(KP obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     KeeICE.KPlib.KPEntry oldLogin;
     oldLogin = null;
     if(oldLogin == null)
     {
         oldLogin = new KeeICE.KPlib.KPEntry();
     }
     oldLogin.read__(is__);
     KeeICE.KPlib.KPEntry newLogin;
     newLogin = null;
     if(newLogin == null)
     {
         newLogin = new KeeICE.KPlib.KPEntry();
     }
     newLogin.read__(is__);
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     try
     {
         obj__.ModifyLogin(oldLogin, newLogin, current__);
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(KeeICE.KPlib.KeeICEException ex)
     {
         os__.writeUserException(ex);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
Ejemplo n.º 2
0
 public KeeICE.KPlib.KPEntry AddLogin(KeeICE.KPlib.KPEntry login, string parentUUID, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     Ice.Current current__ = new Ice.Current();
     initCurrent__(ref current__, "AddLogin", Ice.OperationMode.Normal, context__);
     KeeICE.KPlib.KPEntry result__ = new KeeICE.KPlib.KPEntry();
     Ice.UserException userException__ = null;
     IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__)
     {
         KP servant__ = null;
         try
         {
             servant__ = (KP)obj__;
         }
         catch(_System.InvalidCastException)
         {
             throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation);
         }
         try
         {
             result__ = servant__.AddLogin(login, parentUUID, current__);
             return Ice.DispatchStatus.DispatchOK;
         }
         catch(Ice.UserException ex__)
         {
             userException__ = ex__;
             return Ice.DispatchStatus.DispatchUserException;
         }
     };
     IceInternal.Direct direct__ = null;
     try
     {
         direct__ = new IceInternal.Direct(current__, run__);
         try
         {
             Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__);
             if(status__ == Ice.DispatchStatus.DispatchUserException)
             {
                 throw userException__;
             }
             _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK);
         }
         finally
         {
             direct__.destroy();
         }
     }
     catch(KeeICE.KPlib.KeeICEException)
     {
         throw;
     }
     catch(Ice.SystemException)
     {
         throw;
     }
     catch(System.Exception ex__)
     {
         IceInternal.LocalExceptionWrapper.throwWrapper(ex__);
     }
     return result__;
 }
Ejemplo n.º 3
0
 public static Ice.DispatchStatus AddLogin___(KP obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.istr();
     is__.startReadEncaps();
     KeeICE.KPlib.KPEntry login;
     login = null;
     if(login == null)
     {
         login = new KeeICE.KPlib.KPEntry();
     }
     login.read__(is__);
     string parentUUID;
     parentUUID = is__.readString();
     is__.endReadEncaps();
     IceInternal.BasicStream os__ = inS__.ostr();
     try
     {
         KeeICE.KPlib.KPEntry ret__ = obj__.AddLogin(login, parentUUID, current__);
         if(ret__ == null)
         {
             KeeICE.KPlib.KPEntry tmp__ = new KeeICE.KPlib.KPEntry();
             tmp__.write__(os__);
         }
         else
         {
             ret__.write__(os__);
         }
         return Ice.DispatchStatus.DispatchOK;
     }
     catch(KeeICE.KPlib.KeeICEException ex)
     {
         os__.writeUserException(ex);
         return Ice.DispatchStatus.DispatchUserException;
     }
 }
Ejemplo n.º 4
0
 public KeeICE.KPlib.KPEntry[] getChildEntries(string uuid, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("getChildEntries", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeString(uuid);
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(Ice.UserException ex)
                 {
                     throw new Ice.UnknownUserException(ex.ice_name(), ex);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             KeeICE.KPlib.KPEntry[] ret__;
             {
                 int szx__ = is__.readSize();
                 is__.startSeq(szx__, 19);
                 ret__ = new KeeICE.KPlib.KPEntry[szx__];
                 for(int ix__ = 0; ix__ < szx__; ++ix__)
                 {
                     ret__[ix__] = new KeeICE.KPlib.KPEntry();
                     ret__[ix__].read__(is__);
                     is__.checkSeq();
                     is__.endElement();
                 }
                 is__.endSeq(szx__);
             }
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Ejemplo n.º 5
0
 public int getAllLogins(out KeeICE.KPlib.KPEntry[] logins, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("getAllLogins", Ice.OperationMode.Normal, context__);
     try
     {
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(KeeICE.KPlib.KeeICEException)
                 {
                     throw;
                 }
                 catch(Ice.UserException ex)
                 {
                     throw new Ice.UnknownUserException(ex.ice_name(), ex);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             {
                 int szx__ = is__.readSize();
                 is__.startSeq(szx__, 19);
                 logins = new KeeICE.KPlib.KPEntry[szx__];
                 for(int ix__ = 0; ix__ < szx__; ++ix__)
                 {
                     logins[ix__] = new KeeICE.KPlib.KPEntry();
                     logins[ix__].read__(is__);
                     is__.checkSeq();
                     is__.endElement();
                 }
                 is__.endSeq(szx__);
             }
             int ret__;
             ret__ = is__.readInt();
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Ejemplo n.º 6
0
 public int findLogins(string hostname, string actionURL, string httpRealm, KeeICE.KPlib.loginSearchType lst, bool requireFullURLMatches, string uniqueID, out KeeICE.KPlib.KPEntry[] logins, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("findLogins", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeString(hostname);
             os__.writeString(actionURL);
             os__.writeString(httpRealm);
             os__.writeByte((byte)lst, 3);
             os__.writeBool(requireFullURLMatches);
             os__.writeString(uniqueID);
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(KeeICE.KPlib.KeeICEException)
                 {
                     throw;
                 }
                 catch(Ice.UserException ex)
                 {
                     throw new Ice.UnknownUserException(ex.ice_name(), ex);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             {
                 int szx__ = is__.readSize();
                 is__.startSeq(szx__, 19);
                 logins = new KeeICE.KPlib.KPEntry[szx__];
                 for(int ix__ = 0; ix__ < szx__; ++ix__)
                 {
                     logins[ix__] = new KeeICE.KPlib.KPEntry();
                     logins[ix__].read__(is__);
                     is__.checkSeq();
                     is__.endElement();
                 }
                 is__.endSeq(szx__);
             }
             int ret__;
             ret__ = is__.readInt();
             is__.endReadEncaps();
             return ret__;
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Ejemplo n.º 7
0
 public void ModifyLogin(KeeICE.KPlib.KPEntry oldLogin, KeeICE.KPlib.KPEntry newLogin, _System.Collections.Generic.Dictionary<string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("ModifyLogin", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             if(oldLogin == null)
             {
                 KeeICE.KPlib.KPEntry tmp__ = new KeeICE.KPlib.KPEntry();
                 tmp__.write__(os__);
             }
             else
             {
                 oldLogin.write__(os__);
             }
             if(newLogin == null)
             {
                 KeeICE.KPlib.KPEntry tmp__ = new KeeICE.KPlib.KPEntry();
                 tmp__.write__(os__);
             }
             else
             {
                 newLogin.write__(os__);
             }
         }
         catch(Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if(!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch(KeeICE.KPlib.KeeICEException)
                 {
                     throw;
                 }
                 catch(Ice.UserException ex)
                 {
                     throw new Ice.UnknownUserException(ex.ice_name(), ex);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             is__.endReadEncaps();
         }
         catch(Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Ejemplo n.º 8
0
 public static KeeICE.KPlib.KPEntry[] read(IceInternal.BasicStream is__)
 {
     KeeICE.KPlib.KPEntry[] v__;
     {
         int szx__ = is__.readSize();
         is__.startSeq(szx__, 19);
         v__ = new KeeICE.KPlib.KPEntry[szx__];
         for(int ix__ = 0; ix__ < szx__; ++ix__)
         {
             v__[ix__] = new KeeICE.KPlib.KPEntry();
             v__[ix__].read__(is__);
             is__.checkSeq();
             is__.endElement();
         }
         is__.endSeq(szx__);
     }
     return v__;
 }