package com.vci.corba.auth2;
|
|
|
/**
|
* Generated from IDL interface "Auth2Service".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public abstract class Auth2ServicePOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.auth2.Auth2ServiceOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "checkUserSecret", Integer.valueOf(0));
|
m_opsHash.put ( "checkRight", Integer.valueOf(1));
|
m_opsHash.put ( "deleteTypeRuleGrand", Integer.valueOf(2));
|
m_opsHash.put ( "saveGrand", Integer.valueOf(3));
|
m_opsHash.put ( "checkIPSecret", Integer.valueOf(4));
|
m_opsHash.put ( "deleteGrand", Integer.valueOf(5));
|
m_opsHash.put ( "queryGrand", Integer.valueOf(6));
|
}
|
private String[] ids = {"IDL:com/vci/corba/auth2/Auth2Service:1.0"};
|
public com.vci.corba.auth2.Auth2Service _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.auth2.Auth2Service __r = com.vci.corba.auth2.Auth2ServiceHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.auth2.Auth2Service _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.auth2.Auth2Service __r = com.vci.corba.auth2.Auth2ServiceHelper.narrow(__o);
|
return __r;
|
}
|
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
|
throws org.omg.CORBA.SystemException
|
{
|
org.omg.CORBA.portable.OutputStream _out = null;
|
// do something
|
// quick lookup of operation
|
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
|
if ( null == opsIndex )
|
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
|
switch ( opsIndex.intValue() )
|
{
|
case 0: // checkUserSecret
|
{
|
try
|
{
|
com.vci.corba.auth2.data.CheckValue _arg0=com.vci.corba.auth2.data.CheckValueHelper.read(_input);
|
_out = handler.createReply();
|
java.lang.String tmpResult1077 = checkUserSecret(_arg0);
|
_out.write_wstring( tmpResult1077 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // checkRight
|
{
|
try
|
{
|
com.vci.corba.auth2.data.CheckValue _arg0=com.vci.corba.auth2.data.CheckValueHelper.read(_input);
|
_out = handler.createReply();
|
java.lang.String tmpResult1078 = checkRight(_arg0);
|
_out.write_wstring( tmpResult1078 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // deleteTypeRuleGrand
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(deleteTypeRuleGrand(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // saveGrand
|
{
|
try
|
{
|
com.vci.corba.auth2.data.GrandValue[] _arg0=com.vci.corba.auth2.data.GrandValueArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(saveGrand(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // checkIPSecret
|
{
|
try
|
{
|
com.vci.corba.auth2.data.CheckValue _arg0=com.vci.corba.auth2.data.CheckValueHelper.read(_input);
|
_out = handler.createReply();
|
java.lang.String tmpResult1079 = checkIPSecret(_arg0);
|
_out.write_wstring( tmpResult1079 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // deleteGrand
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(deleteGrand(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 6: // queryGrand
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.auth2.data.GrandValueArrayHelper.write(_out,queryGrand(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
}
|
return _out;
|
}
|
|
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
|
{
|
return ids;
|
}
|
}
|