Package org.jmanage.webui.forms

Examples of org.jmanage.webui.forms.AttributeSelectionForm


                                 ActionForm actionForm,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
            throws Exception {

        AttributeSelectionForm form = (AttributeSelectionForm)actionForm;
        String[] mbeans = form.getMbeans();
        ServerConnection serverConn = context.getServerConnection();
        ObjectName objectName = null;
        Map<String, List> mbeanAttributesListMap = new TreeMap<String, List>();
        MBeanService mbeanService = ServiceFactory.getMBeanService();
        for(int i=0; i<mbeans.length;i++){
            objectName = new ObjectName(mbeans[i]);
            ObjectInfo objInfo = serverConn.getObjectInfo(objectName);
            ObjectAttributeInfo[] objAttrInfo = objInfo.getAttributes();
            List objAttrInfoList = mbeanService.filterAttributes(
                    Utils.getServiceContext(context),
                    objectName,
                    objAttrInfo,
                    form.getDataTypes());
            mbeanAttributesListMap.put(mbeans[i],objAttrInfoList);
        }
        request.setAttribute("mbeanAttributesMap",mbeanAttributesListMap);
        /*set current page for navigation*/
        request.setAttribute(RequestAttributes.NAV_CURRENT_PAGE,
View Full Code Here


                                 ActionForm actionForm,
                                 HttpServletRequest request,
                                 HttpServletResponse response)
            throws Exception {

        AttributeSelectionForm form = (AttributeSelectionForm)actionForm;
        MBeanService mbeanService = ServiceFactory.getMBeanService();
        Map domainToObjectNameListMap = mbeanService.queryMBeansOutputMap
                        (Utils.getServiceContext(context),form.getObjectName(),
                                request.getParameterValues(RequestParams.DATA_TYPE),
                                request.getParameter(RequestParams.APPLY_ATTRIB_FILTER));
        request.setAttribute("domainToObjectNameListMap", domainToObjectNameListMap);
        /*set current page for navigation*/
        request.setAttribute(RequestAttributes.NAV_CURRENT_PAGE, form.getNavigation());
        if("true".equals(request.getParameter(RequestParams.SHOW_END_URL))){
            ActionForward forward =
                    new ActionForward(request.getParameter(RequestParams.END_URL));
            return forward;
        }
View Full Code Here

TOP

Related Classes of org.jmanage.webui.forms.AttributeSelectionForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.