Package org.ofbiz.service

Examples of org.ofbiz.service.ModelParam$ModelParamValidator


        }
        Map<String, Object> serviceContext = FastMap.newInstance();
        List<ModelParam> modelParmInList = modelService.getInModelParamList();
        Iterator<ModelParam> modelParmInIter = modelParmInList.iterator();
        while (modelParmInIter.hasNext()) {
            ModelParam modelParam = modelParmInIter.next();
            String paramName =  modelParam.name;

            Object value = context.get(paramName);
            if (value != null) {
                serviceContext.put(paramName, value);
View Full Code Here


        }

        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) || "timeZone".equals(modelParam.name)) {
                continue;
            }
            if (modelParam.formDisplay) {
View Full Code Here

                // 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

        // 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

        }
        Map serviceContext = FastMap.newInstance();
        List modelParmInList = modelService.getInModelParamList();
        Iterator modelParmInIter = modelParmInList.iterator();
        while (modelParmInIter.hasNext()) {
            ModelParam modelParam = (ModelParam) modelParmInIter.next();
            String paramName =  modelParam.name;
            Object value = context.get(paramName);
            if(value != null){
                serviceContext.put(paramName, value);
View Full Code Here

            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

        }
        DispatchContext dispatchContext = this.getModelForm().dispatchContext;
        try {
            ModelService modelService = dispatchContext.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

        }
        Map serviceContext = FastMap.newInstance();
        List modelParmInList = modelService.getInModelParamList();
        Iterator modelParmInIter = modelParmInList.iterator();
        while (modelParmInIter.hasNext()) {
            ModelParam modelParam = (ModelParam) modelParmInIter.next();
            String paramName =  modelParam.name;
            Object value = context.get(paramName);
            if(value != null){
                serviceContext.put(paramName, value);
View Full Code Here

                // 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

            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

TOP

Related Classes of org.ofbiz.service.ModelParam$ModelParamValidator

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.