Package org.ofbiz.minilang.method

Examples of org.ofbiz.minilang.method.ContextAccessor


    protected String includeUserLoginStr;

    public CallServiceAsynch(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        serviceName = element.getAttribute("service-name");
        inMapAcsr = new ContextAccessor(element.getAttribute("in-map-name"));
        includeUserLoginStr = element.getAttribute("include-user-login");
    }
View Full Code Here


    protected List conditionalList = FastList.newInstance();

    public Assert(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);

        errorListAcsr = new ContextAccessor(element.getAttribute("error-list-name"), "error_list");
        titleExdr = new FlexibleStringExpander(element.getAttribute("title"));
       
        List conditionalElementList = UtilXml.childElementList(element);
        Iterator conditionalElementIter = conditionalElementList.iterator();
        while (conditionalElementIter.hasNext()) {
View Full Code Here

    String relationName;
    String useCacheStr;

    public GetRelatedOne(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        toValueAcsr = new ContextAccessor(element.getAttribute("to-value-name"));
        relationName = element.getAttribute("relation-name");
        useCacheStr = element.getAttribute("use-cache");
    }
View Full Code Here

    List altPermissions = null;

    public CheckPermission(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        permissionInfo = new PermissionInfo(element);
        this.errorListAcsr = new ContextAccessor(element.getAttribute("error-list-name"), "error_list");

        Element acceptUserloginPartyElement = UtilXml.firstChildElement(element, "accept-userlogin-party");
        if (acceptUserloginPartyElement != null) {
            acceptUlPartyIdEnvNameAcsr = new ContextAccessor(acceptUserloginPartyElement.getAttribute("party-id-env-name"), "partyId");
        }

        List altPermElements = UtilXml.childElementList(element, "alt-permission");
        Iterator apeIter = altPermElements.iterator();
        if (apeIter.hasNext()) {
View Full Code Here

    ContextAccessor errorListAcsr;

    public SetServiceFields(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        serviceName = element.getAttribute("service-name");
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        toMapAcsr = new ContextAccessor(element.getAttribute("to-map-name"));
        errorListAcsr = new ContextAccessor(element.getAttribute("error-list-name"), "error_list");
    }
View Full Code Here

    ContextAccessor valueAcsr;
    String doCacheClearStr;

    public RemoveValue(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        doCacheClearStr = element.getAttribute("do-cache-clear");
    }
View Full Code Here

    String thruFieldName;
    String allSameStr;

    public FilterListByDate(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        listAcsr = new ContextAccessor(element.getAttribute("list-name"));
        toListAcsr = new ContextAccessor(element.getAttribute("to-list-name"), element.getAttribute("list-name"));
        validDateAcsr = new ContextAccessor(element.getAttribute("valid-date-name"));

        fromFieldName = element.getAttribute("from-field-name");
        if (UtilValidate.isEmpty(fromFieldName)) fromFieldName = "fromDate";
        thruFieldName = element.getAttribute("thru-field-name");
        if (UtilValidate.isEmpty(thruFieldName)) thruFieldName = "thruDate";
View Full Code Here

    String doCacheClearStr;

    public RemoveByAnd(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        entityName = element.getAttribute("entity-name");
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        doCacheClearStr = element.getAttribute("do-cache-clear");
    }
View Full Code Here

    ContextAccessor mapAcsr;
    String setIfNullStr;

    public SetNonpkFields(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        setIfNullStr = element.getAttribute("set-if-null");
    }
View Full Code Here

    ContextAccessor mapAcsr;
    String setIfNullStr;

    public SetPkFields(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        setIfNullStr = element.getAttribute("set-if-null");
    }
View Full Code Here

TOP

Related Classes of org.ofbiz.minilang.method.ContextAccessor

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.