package com.vci.client.framework.rightConfig.functiontree; import com.vci.client.LogonApplication; import com.vci.client.framework.delegate.FunctionClientDelegate; import com.vci.client.framework.rightConfig.object.FunctionObject; import com.vci.client.ui.exception.VCIException; public class FunctionHelper { private static FunctionClientDelegate funcDelegate = null; public static int getChildType(FunctionObject func) { if (funcDelegate == null) { funcDelegate = new FunctionClientDelegate(LogonApplication.getUserEntityObject()); } try { return funcDelegate.checkChildObject(func.getId()); } catch (VCIException e) { // TODO Auto-generated catch block e.printStackTrace(); } return 0; } }