IceGrid.UserAccountMapperPrxHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icegrid-compat Show documentation
Show all versions of icegrid-compat Show documentation
Locate, deploy, and manage Ice servers
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `UserAccountMapper.ice'
//
// Warning: do not edit this file.
//
//
//
package IceGrid;
/**
* Provides type-specific helper functions.
**/
public final class UserAccountMapperPrxHelper extends Ice.ObjectPrxHelperBase implements UserAccountMapperPrx
{
private static final String _getUserAccount_name = "getUserAccount";
public String getUserAccount(String user)
throws UserAccountNotFoundException
{
return _iceI_getUserAccount(user, null, false);
}
public String getUserAccount(String user, java.util.Map context)
throws UserAccountNotFoundException
{
return _iceI_getUserAccount(user, context, true);
}
private String _iceI_getUserAccount(String iceP_user, java.util.Map context, boolean explicitCtx)
throws UserAccountNotFoundException
{
_checkTwowayOnly(_getUserAccount_name);
return end_getUserAccount(_iceI_begin_getUserAccount(iceP_user, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_getUserAccount(String user)
{
return _iceI_begin_getUserAccount(user, null, false, false, null);
}
public Ice.AsyncResult begin_getUserAccount(String user, java.util.Map context)
{
return _iceI_begin_getUserAccount(user, context, true, false, null);
}
public Ice.AsyncResult begin_getUserAccount(String user, Ice.Callback cb)
{
return _iceI_begin_getUserAccount(user, null, false, false, cb);
}
public Ice.AsyncResult begin_getUserAccount(String user, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_getUserAccount(user, context, true, false, cb);
}
public Ice.AsyncResult begin_getUserAccount(String user, Callback_UserAccountMapper_getUserAccount cb)
{
return _iceI_begin_getUserAccount(user, null, false, false, cb);
}
public Ice.AsyncResult begin_getUserAccount(String user, java.util.Map context, Callback_UserAccountMapper_getUserAccount cb)
{
return _iceI_begin_getUserAccount(user, context, true, false, cb);
}
public Ice.AsyncResult begin_getUserAccount(String user,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getUserAccount(user, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getUserAccount(String user,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getUserAccount(user, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_getUserAccount(String user,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getUserAccount(user, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_getUserAccount(String user,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getUserAccount(user, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_getUserAccount(String iceP_user,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getUserAccount(iceP_user,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
UserAccountMapperPrxHelper._iceI_getUserAccount_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_getUserAccount(String iceP_user,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getUserAccount_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getUserAccount_name, cb);
try
{
result.prepare(_getUserAccount_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
ostr.writeString(iceP_user);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public String end_getUserAccount(Ice.AsyncResult iresult)
throws UserAccountNotFoundException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getUserAccount_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(UserAccountNotFoundException ex_)
{
throw ex_;
}
catch(Ice.UserException ex_)
{
throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
}
}
Ice.InputStream istr_ = result_.startReadParams();
String ret_;
ret_ = istr_.readString();
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getUserAccount_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
IceGrid.UserAccountMapperPrx _proxy = (IceGrid.UserAccountMapperPrx)result.getProxy();
String ret = null;
try
{
ret = _proxy.end_getUserAccount(result);
}
catch(Ice.UserException ex)
{
cb.exception(ex);
return;
}
catch(Ice.LocalException ex)
{
cb.exception(ex);
return;
}
catch(Ice.SystemException ex)
{
cb.exception(ex);
return;
}
cb.response(ret);
}
/**
* Contacts the remote server to verify that the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static UserAccountMapperPrx checkedCast(Ice.ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
/**
* Contacts the remote server to verify that the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param context The Context map to send with the invocation.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static UserAccountMapperPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
/**
* Contacts the remote server to verify that a facet of the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static UserAccountMapperPrx checkedCast(Ice.ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
/**
* Contacts the remote server to verify that a facet of the object implements this type.
* Raises a local exception if a communication error occurs.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @param context The Context map to send with the invocation.
* @return A proxy for this type, or null if the object does not support this type.
**/
public static UserAccountMapperPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
/**
* Downcasts the given proxy to this type without contacting the remote server.
* @param obj The untyped proxy.
* @return A proxy for this type.
**/
public static UserAccountMapperPrx uncheckedCast(Ice.ObjectPrx obj)
{
return uncheckedCastImpl(obj, UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
/**
* Downcasts the given proxy to this type without contacting the remote server.
* @param obj The untyped proxy.
* @param facet The name of the desired facet.
* @return A proxy for this type.
**/
public static UserAccountMapperPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, UserAccountMapperPrx.class, UserAccountMapperPrxHelper.class);
}
private static final String[] _ids =
{
"::Ice::Object",
"::IceGrid::UserAccountMapper"
};
/**
* Provides the Slice type ID of this type.
* @return The Slice type ID.
**/
public static String ice_staticId()
{
return _ids[1];
}
public static void write(Ice.OutputStream ostr, UserAccountMapperPrx v)
{
ostr.writeProxy(v);
}
public static UserAccountMapperPrx read(Ice.InputStream istr)
{
Ice.ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
UserAccountMapperPrxHelper result = new UserAccountMapperPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}