Package org.apache.beehive.netui.compiler.model

Examples of org.apache.beehive.netui.compiler.model.FormBeanModel$Property


        StringBuffer url = request.getRequestURL().replace(index, request.getRequestURL().length(), newContext);
        applicationController.subscribeUserAndCreateStatistic(Long.valueOf(applicationVersionId), request);

        String itmsURL = "itms-services://?action=download-manifest&url=" + url.toString();

        Property property = new Property();
        property.setKey("URL");
        property.setValue(itmsURL);

        return property;
    }
View Full Code Here


    @RequestMapping(value = "/statistics", method = RequestMethod.GET, produces = contentType)
    public
    @ResponseBody
    Properties viewSystemManagementPage(HttpServletRequest request) {
        Property[] properties = new Property[3];
        properties[0] = new Property(SystemStatistics.ORGANIZATION_COUNT.name(), Long.toString(organizationService.countAll()), SystemStatistics.ORGANIZATION_COUNT.getDescription());
        properties[1] = new Property(SystemStatistics.USER_COUNT.name(), Long.toString(userService.countAll()), SystemStatistics.USER_COUNT.getDescription());
        properties[2] = new Property(SystemStatistics.APPLICATION_COUNT.name(), Long.toString(applicationService.countAll()), SystemStatistics.APPLICATION_COUNT.getDescription());

        Properties props = new Properties();
        props.setProperties(properties);

        return props;
View Full Code Here

        if ( formBeans == null )
        {
            String beanClassName = CompilerUtils.getFormClassName( beanType, _strutsApp.getEnv() );
            String formName = _strutsApp.getFormNameForType( actualType, false );
            FormBeanModel formBean = new FormBeanModel( formName, beanClassName, actualType, false, _strutsApp );
            _strutsApp.addFormBean( formBean );
            formBeanNames.add( formBean.getName() );
        }
        else
        {
            for ( Iterator i = formBeans.iterator(); i.hasNext(); )
            {
                FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
                formBeanNames.add( formBeanModel.getName() );
            }
        }

        return formBeanNames;
    }
View Full Code Here

            formBeanName = ( ( FormBeanModel ) existingBeans.get( 0 ) ).getName();
        }
        else
        {
            formBeanName = getFormNameForType( actualType, usesPageFlowScopedFormBean );
            addFormBean( new FormBeanModel( formBeanName, formClass, actualType, usesPageFlowScopedFormBean, this ) );
            getMessageResourcesFromForm( formType, usedByAction );
        }
       
        return formBeanName;
    }
View Full Code Here

        if ( formBeans == null )
        {
            String beanClassName = CompilerUtils.getFormClassName( beanType, _strutsApp.getEnv() );
            String formName = _strutsApp.getFormNameForType( actualType, false );
            FormBeanModel formBean = new FormBeanModel( formName, beanClassName, actualType, false, _strutsApp );
            _strutsApp.addFormBean( formBean );
            formBeanNames.add( formBean.getName() );
        }
        else
        {
            for ( Iterator i = formBeans.iterator(); i.hasNext(); )
            {
                FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
                formBeanNames.add( formBeanModel.getName() );
            }
        }

        return formBeanNames;
    }
View Full Code Here

            formBeanName = ( ( FormBeanModel ) existingBeans.get( 0 ) ).getName();
        }
        else
        {
            formBeanName = getFormNameForType( actualType, usesPageFlowScopedFormBean );
            addFormBean( new FormBeanModel( formBeanName, formClass, actualType, usesPageFlowScopedFormBean, this ) );
            getMessageResourcesFromForm( formType, usedByAction );
        }
       
        return formBeanName;
    }
View Full Code Here

        // we'll just use it; otherwise, we need to create it.
        //
        List formBeans = getFormBeansByActualType( actualType, Boolean.valueOf( usesPageFlowScopedFormBean ) );

        if (formBeans == null) {
            FormBeanModel formBeanModel = addNewFormBean(formType, usesPageFlowScopedFormBean);
            formBeans = new ArrayList();
            formBeans.add(formBeanModel);
        }
       
        assert formBeans.size() > 0;
View Full Code Here

    {
        String actualTypeName = CompilerUtils.getLoadableName( formType );
        String formClass = CompilerUtils.getFormClassName( formType, _env );
        String name = getFormNameForType( actualTypeName, usesFlowScopedFormBean );
        String key = getMessageResourcesFromFormType( formType );
        FormBeanModel fb = new FormBeanModel(name, formClass, actualTypeName, usesFlowScopedFormBean, key, this);
        addFormBean( fb );
        return fb;
    }
View Full Code Here

        paramType = CompilerUtils.getGenericBoundsType( paramType );
        assert paramType instanceof DeclaredType : paramType.getClass().getName()// checker should enforce this
        TypeDeclaration decl = CompilerUtils.getDeclaration( ( DeclaredType ) paramType );
        List formBeans = parentApp.getMatchingFormBeans( decl, getFormMember() != null );
        assert formBeans.size() > 0;
        FormBeanModel formBeanModel = (FormBeanModel) formBeans.get(0);
        setFormBeanMessageResourcesKey(formBeanModel.getFormBeanMessageResourcesKey());
       
        //
        // If this isn't an ActionForm-derived argument, keep track of the classname for the runtime.
        //
        if ( ! CompilerUtils.isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, decl, parentApp.getEnv() ) )
        {
            setFormClass( CompilerUtils.getLoadableName( decl ) );
        }
       
        return formBeanModel.getName();
    }
View Full Code Here

        List formBeans = _strutsApp.getMatchingFormBeans( beanType, false );
        List formBeanNames = new ArrayList();
       
        for ( Iterator i = formBeans.iterator(); i.hasNext(); )
        {
            FormBeanModel formBeanModel = ( FormBeanModel ) i.next();
            formBeanNames.add( formBeanModel.getName() );
        }

        return formBeanNames;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.model.FormBeanModel$Property

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.