Package org.apache.commons.scaffold.util

Examples of org.apache.commons.scaffold.util.BizRequest


     servlet.log(Log.HELPER_PROCESSING,Log.DEBUG);
        try {

            // Cast our form bean; snag our request bean
          BizForm bizForm = (BizForm) form;
          BizRequest bizRequest = bizForm.getBizRequest();

            // Munge the parameter property
          servlet.log(Log.TOKENS_PARSING,Log.DEBUG);
          String[] tokens = tokenize(mapping.getParameter());

            // Create our business service helper
          Object helper = createHelperObject(request,tokens[0]);
          BizService bizService = (BizService) helper;

            // Process business logic
            servlet.log(Log.HELPER_EXECUTING,Log.DEBUG);           
            if (tokens.length>1) {

              // Pass along the helper's parameter, if any
              if (tokens.length>2) {
          bizRequest.setParameter(tokens[2]);
        }
              
        bizResponse = processDispatch(
          mapping,
          bizService,
View Full Code Here


    }

    // see interface for Javadoc
    public BizRequest createBizRequest(String bizType) {
      
       BizRequest bizRequest = (BizRequest) createObject(bizType) ;

       return bizRequest;  
    }
View Full Code Here

                // Generate and populate our business request
                Messages messages = new MessagesImpl();
                try {
   
                    BizRequest bizRequest = createBizRequest(bizType);
                    // Populate the business request with ourselves
                    // merged with any user profile properties
                    Map properties = merge(getUserProfile());
                    BeanUtils.copyProperties(bizRequest,properties);
               
                }
                catch (Throwable t) {
                   
                    messages.add(new MessageImpl(
                        Tokens.ERROR_GENERAL,
                        t.toString()
                    ));
                   
                }

                // Validate our business request
                if (messages.isEmpty()) {
                    messages.add(
                        bizRequest.validate(mapping.getAttribute()));
                }
                if (messages.isEmpty()) {

                    setBizRequest(bizRequest);
                }
View Full Code Here

     servlet.log(Log.HELPER_PROCESSING,Log.DEBUG);
        try {

            // Cast our form bean; snag our request bean
          BizForm bizForm = (BizForm) form;
          BizRequest bizRequest = bizForm.getBizRequest();

            // Munge the parameter property
          servlet.log(Log.TOKENS_PARSING,Log.DEBUG);
          String[] tokens = tokenize(mapping.getParameter());

            // Create our business service helper
          Object helper = createHelperObject(request,tokens[0]);
          BizService bizService = (BizService) helper;

            // Process business logic
            servlet.log(Log.HELPER_EXECUTING,Log.DEBUG);           
            if (tokens.length>1) {

              // Pass along the helper's parameter, if any
              if (tokens.length>2) {
          bizRequest.setParameter(tokens[2]);
        }
              
        bizResponse = processDispatch(
          mapping,
          bizService,
View Full Code Here

    }

    // see interface for Javadoc
    public BizRequest createBizRequest(String bizType) {
      
       BizRequest bizRequest = (BizRequest) createObject(bizType) ;

       return bizRequest;  
    }
View Full Code Here

                // Generate and populate our business request
                Messages messages = new MessagesImpl();
                try {
   
                    BizRequest bizRequest = createBizRequest(bizType);
                    // Populate the business request with ourselves
                    // merged with any user profile properties
                    Map properties = merge(getUserProfile());
                    BeanUtils.copyProperties(bizRequest,properties);
               
                }
                catch (Throwable t) {
                   
                    messages.add(new MessageImpl(
                        Tokens.ERROR_GENERAL,
                        t.toString()
                    ));
                   
                }

                // Validate our business request
                if (messages.isEmpty()) {
                    messages.add(
                        bizRequest.validate(mapping.getAttribute()));
                }
                if (messages.isEmpty()) {

                    setBizRequest(bizRequest);
                }
View Full Code Here

TOP

Related Classes of org.apache.commons.scaffold.util.BizRequest

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.