Examples of ModelParam


Examples of org.ofbiz.service.ModelParam

                // build the context
                Map serviceContext = FastMap.newInstance();
                List modelParmInList = modelService.getInModelParamList();
                Iterator modelParmInIter = modelParmInList.iterator();
                while (modelParmInIter.hasNext()) {
                    ModelParam modelParam = (ModelParam) modelParmInIter.next();
                    String paramName = modelParam.name;
                   
                    // Debug.logInfo("In ServiceMultiEventHandler processing input parameter [" + modelParam.name + (modelParam.optional?"(optional):":"(required):") + modelParam.mode + "] for service [" + serviceName + "]", module);

                    // don't include userLogin, that's taken care of below
View Full Code Here

Examples of org.ofbiz.service.ModelParam

            methodContext.setErrorReturn(errMsg, simpleMethod);
            return false;
        }
        Iterator inModelParamIter = modelService.getInModelParamList().iterator();
        while (inModelParamIter.hasNext()) {
            ModelParam modelParam = (ModelParam) inModelParamIter.next();
           
            if (fromMap.containsKey(modelParam.name)) {
                Object value = fromMap.get(modelParam.name);

                if (UtilValidate.isNotEmpty(modelParam.type)) {
View Full Code Here

Examples of org.ofbiz.service.ModelParam

        // we have a service and the model; build the context
        Map serviceContext = new HashMap();
        Iterator modelParmInIter = model.getInModelParamList().iterator();
        while (modelParmInIter.hasNext()) {
            ModelParam modelParam = (ModelParam) modelParmInIter.next();
            String name = modelParam.name;

            // don't include userLogin, that's taken care of below
            if ("userLogin".equals(name)) continue;
            // don't include locale, that is also taken care of below
View Full Code Here

Examples of org.ofbiz.service.ModelParam

       
        call.setOperation(call.getOperationName().getLocalPart());
        Vector vParams = new Vector();
        Iterator iter = inModelParamList.iterator();
        while (iter.hasNext()) {
            ModelParam p = (ModelParam) iter.next();
           
            if (Debug.infoOn()) Debug.logInfo("[SOAPClientEngine.invoke} : Parameter: " + p.name + " (" + p.mode + ") - " + i, module);
           
            //Exclude params that ModelServiceReader insert into
            if(!p.name.trim().equals("userLogin") && !p.name.trim().equals("locale")) {
View Full Code Here

Examples of org.ofbiz.service.ModelParam

        }

        List modelParams = modelService.getInModelParamList();
        Iterator modelParamIter = modelParams.iterator();
        while (modelParamIter.hasNext()) {
            ModelParam modelParam = (ModelParam) modelParamIter.next();
            // skip auto params that the service engine populates...
            if ("userLogin".equals(modelParam.name) || "locale".equals(modelParam.name)) {
                continue;
            }
            if (modelParam.formDisplay) {
View Full Code Here

Examples of org.ofbiz.service.ModelParam

        }
        LocalDispatcher dispatcher = this.getModelForm().getDispacher();
        try {
            ModelService modelService = dispatcher.getDispatchContext().getModelService(this.getServiceName());
            if (modelService != null) {
                ModelParam modelParam = modelService.getParam(this.getAttributeName());
                if (modelParam != null) {
                    if (UtilValidate.isNotEmpty(modelParam.entityName) && UtilValidate.isNotEmpty(modelParam.fieldName)) {
                        this.entityName = modelParam.entityName;
                        this.fieldName = modelParam.fieldName;
                        if (this.induceFieldInfoFromEntityField(defaultFieldType)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.