package com.vci.server.base.utility; import org.apache.commons.lang3.StringUtils; import com.alibaba.fastjson.JSONObject; import com.vci.common.util.IceProxyUtility; import com.vci.corba.common.data.VCIInvocationInfo; import com.vci.server.mw.ServerContextVariable; /** *
Title:
*Description:
*Copyright: Copyright (c) 2009
*Company: VCI
* @author eddie * @time 2009-4-14 * @version 1.0 */ public final class ServerProxyUtility extends IceProxyUtility { public ServerProxyUtility() { } @Override protected String getInvocationInfo() { VCIInvocationInfo vcii = null; vcii = ServerContextVariable.getInvocationInfo(); if (vcii == null || StringUtils.isBlank(vcii.userID)) { return null; } else { if (vcii.extAttribs == null) vcii.extAttribs = new String[0]; if (vcii.groupIDs == null) vcii.groupIDs = new String[0]; if (vcii.groupNames == null) vcii.groupNames = new String[0]; if (vcii.roleIDs == null) vcii.roleIDs = new String[0]; if (vcii.roleNames == null) vcii.roleNames = new String[0]; } return JSONObject.toJSONString(vcii); } }