Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "entity-one"; } } - + public static final String module = EntityOne.class.getName(); - + protected PrimaryKeyFinder finder; public EntityOne(Element element, SimpleMethod simpleMethod) { @@ -69,7 +69,7 @@ } return true; } - + public String getEntityName() { return this.finder.getEntityName(); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java Fri Mar 27 16:57:48 2009 @@ -42,7 +42,7 @@ return "filter-list-by-and"; } } - + ContextAccessor<List<GenericEntity>> listAcsr; ContextAccessor<List<GenericEntity>> toListAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java Fri Mar 27 16:57:48 2009 @@ -44,7 +44,7 @@ return "filter-list-by-date"; } } - + ContextAccessor<List<GenericEntity>> listAcsr; ContextAccessor<List<GenericEntity>> toListAcsr; ContextAccessor<Timestamp> validDateAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java Fri Mar 27 16:57:48 2009 @@ -47,9 +47,9 @@ return "find-by-and"; } } - + public static final String module = FindByAnd.class.getName(); - + ContextAccessor<Object> listAcsr; String entityName; ContextAccessor<Map<String, ? extends Object>> mapAcsr; @@ -75,10 +75,10 @@ String delegatorName = methodContext.expandString(this.delegatorName); String useCacheStr = methodContext.expandString(this.useCacheStr); String useIteratorStr = methodContext.expandString(this.useIteratorStr); - + boolean useCache = "true".equals(useCacheStr); boolean useIterator = "true".equals(useIteratorStr); - + List<String> orderByNames = null; if (!orderByListAcsr.isEmpty()) { orderByNames = orderByListAcsr.get(methodContext); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java Fri Mar 27 16:57:48 2009 @@ -48,9 +48,9 @@ return "find-by-primary-key"; } } - + public static final String module = FindByPrimaryKey.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; String entityName; ContextAccessor<Map<String, ? extends Object>> mapAcsr; @@ -72,7 +72,7 @@ String entityName = methodContext.expandString(this.entityName); String delegatorName = methodContext.expandString(this.delegatorName); String useCacheStr = methodContext.expandString(this.useCacheStr); - + boolean useCache = "true".equals(useCacheStr); GenericDelegator delegator = methodContext.getDelegator(); @@ -85,12 +85,12 @@ GenericEntity inEntity = (GenericEntity) inMap; entityName = inEntity.getEntityName(); } - + Collection<String> fieldsToSelectList = null; if (!fieldsToSelectListAcsr.isEmpty()) { fieldsToSelectList = fieldsToSelectListAcsr.get(methodContext); } - + try { if (fieldsToSelectList != null) { valueAcsr.put(methodContext, delegator.findByPrimaryKeyPartial(delegator.makePK(entityName, inMap), UtilMisc.makeSetWritable(fieldsToSelectList))); @@ -105,7 +105,7 @@ } return true; } - + public String getEntityName() { return this.entityName; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java Fri Mar 27 16:57:48 2009 @@ -43,9 +43,9 @@ return "get-related"; } } - + public static final String module = GetRelated.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<List<String>> orderByListAcsr; @@ -68,7 +68,7 @@ String relationName = methodContext.expandString(this.relationName); String useCacheStr = methodContext.expandString(this.useCacheStr); boolean useCache = "true".equals(useCacheStr); - + List<String> orderByNames = null; if (!orderByListAcsr.isEmpty()) { orderByNames = orderByListAcsr.get(methodContext); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "get-related-one"; } } - + public static final String module = GetRelatedOne.class.getName(); - + ContextAccessor<Object> valueAcsr; ContextAccessor<GenericValue> toValueAcsr; String relationName; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java Fri Mar 27 16:57:48 2009 @@ -80,7 +80,7 @@ GenericValue value = valueAcsr.get(methodContext); methodContext.getDelegator().setNextSubSeqId(value, seqFieldName, numericPadding, incrementBy); - + return true; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java Fri Mar 27 16:57:48 2009 @@ -38,7 +38,7 @@ return "make-value"; } } - + ContextAccessor<GenericValue> valueAcsr; String entityName; ContextAccessor<Map<String, ? extends Object>> mapAcsr; @@ -56,7 +56,7 @@ valueAcsr.put(methodContext, methodContext.getDelegator().makeValidValue(entityName, ctxMap)); return true; } - + public String getEntityName() { return this.entityName; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java Fri Mar 27 16:57:48 2009 @@ -45,7 +45,7 @@ return "now-date"; } } - + ContextAccessor<java.sql.Date> envAcsr; public NowDateToEnv(Element element, SimpleMethod simpleMethod) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java Fri Mar 27 16:57:48 2009 @@ -45,7 +45,7 @@ return "now-timestamp"; } } - + ContextAccessor<java.sql.Timestamp> envAcsr; public NowTimestampToEnv(Element element, SimpleMethod simpleMethod) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java Fri Mar 27 16:57:48 2009 @@ -41,7 +41,7 @@ return "order-value-list"; } } - + ContextAccessor<List<? extends GenericEntity>> listAcsr; ContextAccessor<List<? extends GenericEntity>> toListAcsr; ContextAccessor<List<String>> orderByListAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "refresh-value"; } } - + public static final String module = RemoveValue.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; String doCacheClearStr; @@ -54,7 +54,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In remove-value a value was not found with the specified valueAcsr: " + valueAcsr + ", not removing"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "remove-by-and"; } } - + public static final String module = RemoveByAnd.class.getName(); - + String entityName; ContextAccessor<Map<String, ? extends Object>> mapAcsr; String doCacheClearStr; @@ -58,7 +58,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(doCacheClearStr); String entityName = methodContext.expandString(this.entityName); - + try { methodContext.getDelegator().removeByAnd(entityName, mapAcsr.get(methodContext), doCacheClear); } catch (GenericEntityException e) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java Fri Mar 27 16:57:48 2009 @@ -42,7 +42,7 @@ return "remove-list"; } } - + public static final String module = RemoveList.class.getName(); ContextAccessor<List<GenericValue>> listAcsr; @@ -56,7 +56,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(doCacheClearStr); - + List<GenericValue> values = listAcsr.get(methodContext); if (values == null) { String errMsg = "In remove-list a value list was not found with the specified listAcsr: " + listAcsr + ", not removing"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "remove-related"; } } - + public static final String module = RemoveRelated.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; String relationName; String doCacheClearStr; @@ -57,7 +57,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(doCacheClearStr); String relationName = methodContext.expandString(this.relationName); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In remove-related a value was not found with the specified valueAcsr: " + valueAcsr + ", not removing related"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "remove-value"; } } - + public static final String module = RemoveValue.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; String doCacheClearStr; @@ -54,7 +54,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In remove-value a value was not found with the specified valueAcsr: " + valueAcsr + ", not removing"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java Fri Mar 27 16:57:48 2009 @@ -47,8 +47,8 @@ return "sequenced-id"; } } - - + + String seqName; ContextAccessor<Object> envAcsr; boolean getLongOnly; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java Fri Mar 27 16:57:48 2009 @@ -39,9 +39,9 @@ return "set-current-user-login"; } } - + public static final String module = SetCurrentUserLogin.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; public SetCurrentUserLogin(Element element, SimpleMethod simpleMethod) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "set-nonpk-fields"; } } - + public static final String module = SetNonpkFields.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; String setIfNullStr; @@ -58,7 +58,7 @@ public boolean exec(MethodContext methodContext) { // if anything but false it will be true boolean setIfNull = !"false".equals(methodContext.expandString(setIfNullStr)); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In set-nonpk-fields a value was not found with the specified valueAcsr: " + valueAcsr + ", not setting fields"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "set-pk-fields"; } } - + public static final String module = SetPkFields.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; String setIfNullStr; @@ -58,7 +58,7 @@ public boolean exec(MethodContext methodContext) { // if anything but false it will be true boolean setIfNull = !"false".equals(methodContext.expandString(setIfNullStr)); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In set-pk-fields a value was not found with the specified valueAcsr: " + valueAcsr + ", not setting fields"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "store-list"; } } - + public static final String module = StoreList.class.getName(); - + ContextAccessor<List<GenericValue>> listAcsr; String doCacheClearStr; @@ -56,7 +56,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); - + List<GenericValue> values = listAcsr.get(methodContext); if (values == null) { String errMsg = "In store-list a value list was not found with the specified listAcsr: " + listAcsr + ", not storing"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "store-value"; } } - + public static final String module = StoreValue.class.getName(); - + ContextAccessor<GenericValue> valueAcsr; String doCacheClearStr; @@ -54,7 +54,7 @@ public boolean exec(MethodContext methodContext) { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); - + GenericValue value = valueAcsr.get(methodContext); if (value == null) { String errMsg = "In store-value a value was not found with the specified valueAcsr: " + valueAcsr + ", not storing"; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "transaction-begin"; } } - + public static final String module = TransactionBegin.class.getName(); - + ContextAccessor<Boolean> beganTransactionAcsr; public TransactionBegin(Element element, SimpleMethod simpleMethod) { @@ -56,12 +56,12 @@ beganTransaction = TransactionUtil.begin(); } catch (GenericTransactionException e) { Debug.logError(e, "Could not begin transaction in simple-method, returning error.", module); - + String errMsg = "ERROR: Could not complete the " + simpleMethod.getShortDescription() + " process [error beginning a transaction: " + e.getMessage() + "]"; methodContext.setErrorReturn(errMsg, simpleMethod); return false; } - + beganTransactionAcsr.put(methodContext, beganTransaction); return true; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "transaction-commit"; } } - + public static final String module = TransactionCommit.class.getName(); - + ContextAccessor<Boolean> beganTransactionAcsr; public TransactionCommit(Element element, SimpleMethod simpleMethod) { @@ -52,22 +52,22 @@ public boolean exec(MethodContext methodContext) { boolean beganTransaction = false; - + Boolean beganTransactionBoolean = beganTransactionAcsr.get(methodContext); if (beganTransactionBoolean != null) { beganTransaction = beganTransactionBoolean.booleanValue(); } - + try { TransactionUtil.commit(beganTransaction); } catch (GenericTransactionException e) { Debug.logError(e, "Could not commit transaction in simple-method, returning error.", module); - + String errMsg = "ERROR: Could not complete the " + simpleMethod.getShortDescription() + " process [error committing a transaction: " + e.getMessage() + "]"; methodContext.setErrorReturn(errMsg, simpleMethod); return false; } - + beganTransactionAcsr.remove(methodContext); return true; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "transaction-rollback"; } } - + public static final String module = TransactionRollback.class.getName(); - + ContextAccessor<Boolean> beganTransactionAcsr; public TransactionRollback(Element element, SimpleMethod simpleMethod) { @@ -52,22 +52,22 @@ public boolean exec(MethodContext methodContext) { boolean beganTransaction = false; - + Boolean beganTransactionBoolean = beganTransactionAcsr.get(methodContext); if (beganTransactionBoolean != null) { beganTransaction = beganTransactionBoolean.booleanValue(); } - + try { TransactionUtil.rollback(beganTransaction, "Explicit rollback in simple-method [" + this.simpleMethod.getShortDescription() + "]", null); } catch (GenericTransactionException e) { Debug.logError(e, "Could not rollback transaction in simple-method, returning error.", module); - + String errMsg = "ERROR: Could not complete the " + simpleMethod.getShortDescription() + " process [error rolling back a transaction: " + e.getMessage() + "]"; methodContext.setErrorReturn(errMsg, simpleMethod); return false; } - + beganTransactionAcsr.remove(methodContext); return true; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "clear-field"; } } - + public static final String module = ClearField.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java Fri Mar 27 16:57:48 2009 @@ -39,7 +39,7 @@ return "env-to-env"; } } - + public static final String module = EnvToEnv.class.getName(); protected ContextAccessor<Object> envAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "env-to-field"; } } - + public static final String module = EnvToField.class.getName(); - + ContextAccessor<Object> envAcsr; ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "field-to-env"; } } - + public static final String module = FieldToEnv.class.getName(); - + ContextAccessor<Object> envAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "field-to-field"; } } - + public static final String module = FieldToField.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; ContextAccessor<Map<String, Object>> toMapAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "field-to-list"; } } - + public static final String module = FieldToList.class.getName(); - + ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; ContextAccessor<List<Object>> listAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java Fri Mar 27 16:57:48 2009 @@ -38,7 +38,7 @@ return "first-from-list"; } } - + public static final String module = FirstFromList.class.getName(); ContextAccessor<Object> entryAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java Fri Mar 27 16:57:48 2009 @@ -48,7 +48,7 @@ return "iterate"; } } - + public static final String module = Iterate.class.getName(); protected List<MethodOperation> subOps = FastList.newInstance(); @@ -125,7 +125,7 @@ entryAcsr.put(methodContext, oldEntryValue); return true; } - + public List<MethodOperation> getSubOps() { return this.subOps; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java Fri Mar 27 16:57:48 2009 @@ -44,7 +44,7 @@ return "iterate-map"; } } - + public static final String module = IterateMap.class.getName(); List<MethodOperation> subOps = FastList.newInstance(); @@ -78,7 +78,7 @@ if (oldValue != null) { Debug.logWarning("In iterate-map the value had a non-null value before entering the loop for the operation: " + this.rawString(), module); } - + Map<? extends Object, ? extends Object> theMap = mapAcsr.get(methodContext); if (theMap == null) { if (Debug.infoOn()) Debug.logInfo("Map not found with name " + mapAcsr + ", doing nothing: " + rawString(), module); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "list-to-list"; } } - + public static final String module = ListToList.class.getName(); - + ContextAccessor<List<Object>> listAcsr; ContextAccessor<List<Object>> toListAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "map-to-map"; } } - + public static final String module = MapToMap.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Map<String, Object>> toMapAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "order-map-list"; } } - + public static final String module = FieldToList.class.getName(); - + protected ContextAccessor<List<Map<Object, Object>>> listAcsr; protected List<FlexibleMapAccessor<String>> orderByAcsrList = FastList.newInstance(); protected MapComparator mc; @@ -52,7 +52,7 @@ public OrderMapList(Element element, SimpleMethod simpleMethod) { super(element, simpleMethod); listAcsr = new ContextAccessor<List<Map<Object, Object>>>(element.getAttribute("list"), element.getAttribute("list-name")); - + for (Element orderByElement: UtilXml.childElementList(element, "order-by")) { FlexibleMapAccessor<String> fma = FlexibleMapAccessor.getInstance(UtilValidate.isNotEmpty(orderByElement.getAttribute("field")) ? orderByElement.getAttribute("field") : orderByElement.getAttribute("field-name")); @@ -70,7 +70,7 @@ if (Debug.infoOn()) Debug.logInfo("List not found with name " + listAcsr + ", not ordering/sorting list.", module); return true; } - + Collections.sort(orderList, mc); return true; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java Fri Mar 27 16:57:48 2009 @@ -47,7 +47,7 @@ } } public static final String module = SetCalendar.class.getName(); - + protected ContextAccessor<Timestamp> field; protected ContextAccessor<Object> fromField; protected FlexibleStringExpander valueExdr; @@ -145,7 +145,7 @@ if (Debug.verboseOn()) Debug.logVerbose("Error converting attributes to objects: " + e.getMessage(), module); return true; } - + // Convert Strings to ints int years = this.yearsExdr.isEmpty() ? 0 : Integer.parseInt(methodContext.expandString(this.yearsExdr)); int months = this.monthsExdr.isEmpty() ? 0 : Integer.parseInt(methodContext.expandString(this.monthsExdr)); @@ -164,7 +164,7 @@ cal.add(Calendar.DAY_OF_MONTH, days); cal.add(Calendar.MONTH, months); cal.add(Calendar.YEAR, years); - + Timestamp toStamp = new Timestamp(cal.getTimeInMillis()); // Align period start/end @@ -191,7 +191,7 @@ toStamp = UtilDateTime.getYearEnd(toStamp, timeZone, locale); } } - + if (Debug.verboseOn()) Debug.logVerbose("In screen setting calendar [" + this.field.toString(), module); this.field.put(methodContext, toStamp); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java Fri Mar 27 16:57:48 2009 @@ -46,7 +46,7 @@ } } public static final String module = SetOperation.class.getName(); - + protected ContextAccessor<Object> field; protected ContextAccessor<Object> fromField; protected FlexibleStringExpander valueExdr; @@ -105,7 +105,7 @@ return false; } } - + if (Debug.verboseOn()) Debug.logVerbose("In screen setting field [" + this.field.toString() + "] to value: " + newValue, module); this.field.put(methodContext, newValue); return true; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "string-append"; } } - + public static final String module = StringAppend.class.getName(); - + String string; String prefix; String suffix; @@ -57,7 +57,7 @@ string = element.getAttribute("string"); prefix = element.getAttribute("prefix"); suffix = element.getAttribute("suffix"); - + // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported fieldAcsr = new ContextAccessor<String>(element.getAttribute("field"), element.getAttribute("field-name")); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); @@ -74,7 +74,7 @@ toMap = FastMap.newInstance(); mapAcsr.put(methodContext, toMap); } - + String oldValue = (String) fieldAcsr.get(toMap, methodContext); fieldAcsr.put(toMap, this.appendString(oldValue, methodContext), methodContext); } else { @@ -84,12 +84,12 @@ return true; } - + public String appendString(String oldValue, MethodContext methodContext) { String value = methodContext.expandString(string); String prefixValue = methodContext.expandString(prefix); String suffixValue = methodContext.expandString(suffix); - + if (!argListAcsr.isEmpty()) { List<? extends Object> argList = argListAcsr.get(methodContext); if (UtilValidate.isNotEmpty(argList)) { @@ -112,7 +112,7 @@ newValue.append(oldValue); } } - + return newValue.toString(); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java Fri Mar 27 16:57:48 2009 @@ -44,9 +44,9 @@ return "string-to-field"; } } - + public static final String module = StringToField.class.getName(); - + String string; ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; @@ -64,7 +64,7 @@ public boolean exec(MethodContext methodContext) { String valueStr = methodContext.expandString(string); - + if (!argListAcsr.isEmpty()) { List<? extends Object> argList = argListAcsr.get(methodContext); if (UtilValidate.isNotEmpty(argList)) { @@ -78,7 +78,7 @@ } else { value = valueStr; } - + if (!mapAcsr.isEmpty()) { Map<String, Object> toMap = mapAcsr.get(methodContext); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "string-to-list"; } } - + public static final String module = StringToList.class.getName(); - + String string; ContextAccessor<List<Object>> listAcsr; ContextAccessor<List<? extends Object>> argListAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "to-string"; } } - + public static final String module = ToString.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; String format; @@ -55,9 +55,9 @@ // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("field-name")); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); - + format = element.getAttribute("format"); - + String npStr = element.getAttribute("numeric-padding"); if (UtilValidate.isNotEmpty(npStr)) { try { @@ -93,7 +93,7 @@ return true; } - + public String doToString(Object obj, MethodContext methodContext) { String outStr = null; try { @@ -106,11 +106,11 @@ Debug.logError(e, "", module); outStr = obj.toString(); } - + if (this.numericPadding != null) { outStr = StringUtil.padNumberString(outStr, this.numericPadding.intValue()); } - + return outStr; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "field-to-request"; } } - + public static final String module = FieldToRequest.class.getName(); - + ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; FlexibleServletAccessor<Object> requestAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "field-to-session"; } } - + public static final String module = FieldToSession.class.getName(); - + ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; FlexibleServletAccessor<Object> sessionAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestToField.java Fri Mar 27 16:57:48 2009 @@ -42,9 +42,9 @@ return "request-to-field"; } } - + public static final String module = RequestToField.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; FlexibleServletAccessor<Object> requestAcsr; @@ -56,7 +56,7 @@ mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("field-name")); requestAcsr = new FlexibleServletAccessor<Object>(element.getAttribute("request-name"), fieldAcsr.toString()); - + defaultVal = element.getAttribute("default"); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/SessionToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/SessionToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/SessionToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/SessionToField.java Fri Mar 27 16:57:48 2009 @@ -43,9 +43,9 @@ return "session-to-field"; } } - + public static final String module = SessionToField.class.getName(); - + ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; FlexibleServletAccessor<Object> sessionAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/WebappPropertyToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/WebappPropertyToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/WebappPropertyToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/WebappPropertyToField.java Fri Mar 27 16:57:48 2009 @@ -41,9 +41,9 @@ return "webapp-property-to-field"; } } - + public static final String module = WebappPropertyToField.class.getName(); - + String resource; String property; String defaultVal; @@ -55,7 +55,7 @@ resource = element.getAttribute("resource"); property = element.getAttribute("property"); defaultVal = element.getAttribute("default"); - + // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("field-name")); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); @@ -65,7 +65,7 @@ String resource = methodContext.expandString(this.resource); String property = methodContext.expandString(this.property); String defaultVal = methodContext.expandString(this.defaultVal); - + String fieldVal = null; // only run this if it is in an EVENT context Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckId.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckId.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckId.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckId.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "check-id"; } } - + public static final String module = CheckId.class.getName(); - + String message = null; String propertyResource = null; boolean isProperty = false; @@ -94,10 +94,10 @@ // no map name, try the env fieldVal = fieldAcsr.get(methodContext); } - + String fieldStr = fieldVal.toString(); StringBuilder errorDetails = new StringBuilder(); - + //check various illegal characters, etc for ids isValid = UtilValidate.isValidDatabaseId(fieldStr, errorDetails); @@ -109,10 +109,10 @@ } public void addMessage(List<Object> messages, MethodContext methodContext, String defaultMessage, String errorDetails) { - + String message = methodContext.expandString(this.message); String propertyResource = methodContext.expandString(this.propertyResource); - + if (!isProperty && message != null) { messages.add(message + errorDetails); } else if (isProperty && propertyResource != null && message != null) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckPermission.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckPermission.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckPermission.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckPermission.java Fri Mar 27 16:57:48 2009 @@ -49,11 +49,11 @@ return "check-permission"; } } - + String message = null; String propertyResource = null; boolean isProperty = false; - + /** If null no partyId env-name will be checked against the userLogin.partyId and accepted as permission */ ContextAccessor<String> acceptUlPartyIdEnvNameAcsr = null; @@ -107,7 +107,7 @@ if (this.permissionInfo.hasPermission(methodContext, userLogin, security)) { hasPermission = true; } - + // if failed, check alternate permissions if (!hasPermission && altPermissions != null) { for (PermissionInfo altPermInfo: altPermissions) { @@ -118,7 +118,7 @@ } } } - + if (!hasPermission && acceptUlPartyIdEnvNameAcsr != null) { String acceptPartyId = (String) acceptUlPartyIdEnvNameAcsr.get(methodContext); if (UtilValidate.isEmpty(acceptPartyId)) { @@ -132,7 +132,7 @@ hasPermission = true; } } - + if (!hasPermission) { this.addMessage(messages, methodContext); } @@ -141,10 +141,10 @@ } public void addMessage(List<Object> messages, MethodContext methodContext) { - + String message = methodContext.expandString(this.message); String propertyResource = methodContext.expandString(this.propertyResource); - + if (!isProperty && message != null) { messages.add(message); // if (Debug.infoOn()) Debug.logInfo("[SimpleMapOperation.addMessage] Adding message: " + message, module); @@ -162,20 +162,20 @@ // if (Debug.infoOn()) Debug.logInfo("[SimpleMapOperation.addMessage] ERROR: No message found", module); } } - + public static class PermissionInfo { String permission; String action; - + public PermissionInfo(Element altPermissionElement) { this.permission = altPermissionElement.getAttribute("permission"); this.action = altPermissionElement.getAttribute("action"); } - + public boolean hasPermission(MethodContext methodContext, GenericValue userLogin, Security security) { String permission = methodContext.expandString(this.permission); String action = methodContext.expandString(this.action); - + if (action != null && action.length() > 0) { // run hasEntityPermission return security.hasEntityPermission(permission, action, userLogin); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompare.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompare.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompare.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompare.java Fri Mar 27 16:57:48 2009 @@ -42,7 +42,7 @@ return "if-compare"; } } - + public static final String module = IfCompare.class.getName(); protected List<MethodOperation> subOps = FastList.newInstance(); @@ -82,12 +82,12 @@ public boolean exec(MethodContext methodContext) { // if conditions fails, always return true; if a sub-op returns false // return false and stop, otherwise return true - + String value = methodContext.expandString(this.value); String operator = methodContext.expandString(this.operator); String type = methodContext.expandString(this.type); String format = methodContext.expandString(this.format); - + Object fieldVal = null; if (!mapAcsr.isEmpty()) { Map<String, ? extends Object> fromMap = mapAcsr.get(methodContext); @@ -112,7 +112,7 @@ messages.add(0, "Error with comparison in if-compare between field [" + mapAcsr.toString() + "." + fieldAcsr.toString() + "] with value [" + fieldVal + "] and value [" + value + "] with operator [" + operator + "] and type [" + type + "]: "); if (methodContext.getMethodType() == MethodContext.EVENT) { StringBuilder fullString = new StringBuilder(); - + for (Object message: messages) { fullString.append(message); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompareField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompareField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompareField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompareField.java Fri Mar 27 16:57:48 2009 @@ -42,7 +42,7 @@ return "if-compare-field"; } } - + public static final String module = IfCompareField.class.getName(); protected List<MethodOperation> subOps = FastList.newInstance(); @@ -66,7 +66,7 @@ // NOTE: this is still supported, but is deprecated this.fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field-name")); } - + // NOTE: this is still supported, but is deprecated this.toMapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("to-map-name")); // set fieldAcsr to their defualt value of fieldAcsr if empty Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfEmpty.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfEmpty.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfEmpty.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfEmpty.java Fri Mar 27 16:57:48 2009 @@ -40,7 +40,7 @@ return "if-empty"; } } - + public static final String module = IfEmpty.class.getName(); List<MethodOperation> subOps = FastList.newInstance(); @@ -88,7 +88,7 @@ // no map name, try the env fieldVal = fieldAcsr.get(methodContext); } - + runSubOps = ObjectType.isEmpty(fieldVal); if (runSubOps) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfHasPermission.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfHasPermission.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfHasPermission.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfHasPermission.java Fri Mar 27 16:57:48 2009 @@ -79,7 +79,7 @@ if (userLogin != null) { String permission = methodContext.expandString(permissionExdr); String action = methodContext.expandString(actionExdr); - + Security security = methodContext.getSecurity(); if (action != null && action.length() > 0) { // run hasEntityPermission Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfNotEmpty.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfNotEmpty.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfNotEmpty.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfNotEmpty.java Fri Mar 27 16:57:48 2009 @@ -40,7 +40,7 @@ return "if-not-empty"; } } - + public static final String module = IfNotEmpty.class.getName(); protected List<MethodOperation> subOps = FastList.newInstance(); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfRegexp.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfRegexp.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfRegexp.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfRegexp.java Fri Mar 27 16:57:48 2009 @@ -43,7 +43,7 @@ return "if-regexp"; } } - + public static final String module = IfRegexp.class.getName(); static PatternMatcher matcher = new Perl5Matcher(); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfValidateMethod.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfValidateMethod.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfValidateMethod.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfValidateMethod.java Fri Mar 27 16:57:48 2009 @@ -42,7 +42,7 @@ return "if-validate-method"; } } - + public static final String module = IfValidateMethod.class.getName(); List<MethodOperation> subOps = FastList.newInstance(); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java Fri Mar 27 16:57:48 2009 @@ -49,9 +49,9 @@ return "calculate"; } } - + public static final String module = Calculate.class.getName(); - + public static final BigDecimal ZERO = BigDecimal.ZERO; public static final int TYPE_DOUBLE = 1; public static final int TYPE_FLOAT = 2; @@ -116,7 +116,7 @@ } else { type = Calculate.TYPE_BIG_DECIMAL; } - + String roundingModeString = methodContext.expandString(this.roundingModeString); int roundingMode; if ("Ceiling".equals(roundingModeString)) { @@ -145,13 +145,13 @@ if (UtilValidate.isNotEmpty(decimalScaleString)) { decimalScale = Integer.valueOf(decimalScaleString).intValue(); } - + String decimalFormatString = methodContext.expandString(this.decimalFormatString); DecimalFormat df = null; if (UtilValidate.isNotEmpty(decimalFormatString)) { df = new DecimalFormat(decimalFormatString); } - + BigDecimal resultValue = ZERO; resultValue = resultValue.setScale(decimalScale, roundingMode); for (Calculate.SubCalc calcop: calcops) { @@ -159,7 +159,7 @@ // Debug.logInfo("main total so far: " + resultValue, module); } resultValue = resultValue.setScale(decimalScale, roundingMode); - + /* the old thing that did conversion to string and back, may want to use somewhere sometime...: * for now just doing the setScale above (before and after calc ops) try { @@ -175,7 +175,7 @@ return false; } */ - + Object resultObj = null; switch (type) { case TYPE_DOUBLE: @@ -250,7 +250,7 @@ Debug.logError(e, "Could not parse the number string: " + valueStr, module); throw new IllegalArgumentException("Could not parse the number string: " + valueStr); } - + // Debug.logInfo("calcValue number: " + value, module); return value; } @@ -310,7 +310,7 @@ } else if ("negative".equals(operatorStr)) { operator = CalcOp.OPERATOR_NEGATIVE; } - + BigDecimal resultValue = ZERO; resultValue = resultValue.setScale(scale, roundingMode); boolean isFirst = true; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java Fri Mar 27 16:57:48 2009 @@ -39,13 +39,13 @@ return "log"; } } - + public static final String module = Log.class.getName(); String levelStr; String message; List<MethodString> methodStrings = null; - + public Log(Element element, SimpleMethod simpleMethod) { super(element, simpleMethod); this.message = element.getAttribute("message"); @@ -54,7 +54,7 @@ List<? extends Element> methodStringElements = UtilXml.childElementList(element); if (methodStringElements.size() > 0) { methodStrings = FastList.newInstance(); - + for (Element methodStringElement: methodStringElements) { if ("string".equals(methodStringElement.getNodeName())) { methodStrings.add(new StringString(methodStringElement, simpleMethod)); @@ -71,7 +71,7 @@ public boolean exec(MethodContext methodContext) { String levelStr = methodContext.expandString(this.levelStr); String message = methodContext.expandString(this.message); - + int level; Integer levelInt = Debug.getLevelFromString(levelStr); if (levelInt == null) { @@ -85,7 +85,7 @@ if (!Debug.isOn(level)) { return true; } - + StringBuilder buf = new StringBuilder(); buf.append("["); String methodLocation = this.simpleMethod.getFromLocation(); @@ -97,9 +97,9 @@ buf.append("#"); buf.append(this.simpleMethod.getMethodName()); buf.append("] "); - + if (message != null) buf.append(message); - + if (methodStrings != null) { for (MethodString methodString: methodStrings) { String strValue = methodString.getString(methodContext); @@ -108,7 +108,7 @@ } Debug.log(level, null, buf.toString(), module); - + return true; } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/PropertyToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/PropertyToField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/PropertyToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/PropertyToField.java Fri Mar 27 16:57:48 2009 @@ -40,9 +40,9 @@ return "property-to-field"; } } - + public static final String module = PropertyToField.class.getName(); - + String resource; String property; ContextAccessor<Map<String, Object>> mapAcsr; @@ -67,7 +67,7 @@ public boolean exec(MethodContext methodContext) { String resource = methodContext.expandString(this.resource); String property = methodContext.expandString(this.property); - + String value = null; if (noLocale) { value = UtilProperties.getPropertyValue(resource, property); @@ -77,7 +77,7 @@ if (value == null || value.length() == 0) { value = defaultVal; } - + // note that expanding the value string here will handle defaultValue and the string from // the properties file; if we decide later that we don't want the string from the properties // file to be expanded we should just expand the defaultValue at the beginning of this method. Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/serviceops/FieldToResult.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/serviceops/FieldToResult.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/serviceops/FieldToResult.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/serviceops/FieldToResult.java Fri Mar 27 16:57:48 2009 @@ -38,9 +38,9 @@ return "field-to-result"; } } - + public static final String module = FieldToResult.class.getName(); - + ContextAccessor<Map<String, ? extends Object>> mapAcsr; ContextAccessor<Object> fieldAcsr; ContextAccessor<Object> resultAcsr; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Compare.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Compare.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Compare.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Compare.java Fri Mar 27 16:57:48 2009 @@ -25,7 +25,7 @@ * Compares an in-field to the specified value */ public class Compare extends BaseCompare { - + String value; public Compare(Element element, SimpleMapProcess simpleMapProcess) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/CompareField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/CompareField.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/CompareField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/CompareField.java Fri Mar 27 16:57:48 2009 @@ -25,7 +25,7 @@ * Compares the current field to another field */ public class CompareField extends BaseCompare { - + String compareName; public CompareField(Element element, SimpleMapProcess simpleMapProcess) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ConstantOper.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ConstantOper.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ConstantOper.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ConstantOper.java Fri Mar 27 16:57:48 2009 @@ -27,7 +27,7 @@ * <p><b>Title:</b> A MakeInStringOperation that appends the specified constant string */ public class ConstantOper extends MakeInStringOperation { - + String constant; public ConstantOper(Element element) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Convert.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Convert.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Convert.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Convert.java Fri Mar 27 16:57:48 2009 @@ -32,7 +32,7 @@ */ public class Convert extends SimpleMapOperation { public static final String module = Convert.class.getName(); - + String toField; String type; boolean replace = true; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Copy.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Copy.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Copy.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Copy.java Fri Mar 27 16:57:48 2009 @@ -25,7 +25,7 @@ * Copies a field in the in-map to the out-map */ public class Copy extends SimpleMapOperation { - + boolean replace = true; boolean setIfNull = true; String toField; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/InFieldOper.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/InFieldOper.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/InFieldOper.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/InFieldOper.java Fri Mar 27 16:57:48 2009 @@ -27,9 +27,9 @@ * A MakeInStringOperation that inserts the value of an in-field */ public class InFieldOper extends MakeInStringOperation { - + public static final String module = InFieldOper.class.getName(); - + String fieldName; public InFieldOper(Element element) { Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInString.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInString.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInString.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInString.java Fri Mar 27 16:57:48 2009 @@ -29,9 +29,9 @@ * The container of MakeInString operations to make a new input String */ public class MakeInString { - + public static final String module = MakeInString.class.getName(); - + String fieldName; List<MakeInStringOperation> operations = FastList.newInstance(); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInStringOperation.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInStringOperation.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInStringOperation.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MakeInStringOperation.java Fri Mar 27 16:57:48 2009 @@ -25,7 +25,7 @@ * Abstract class defining the interface to a MakeInString operation */ public abstract class MakeInStringOperation { - + public MakeInStringOperation(Element element) {} public abstract String exec(Map<String, Object> inMap, List<Object> messages, Locale locale, ClassLoader loader); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MapProcessor.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MapProcessor.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MapProcessor.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/MapProcessor.java Fri Mar 27 16:57:48 2009 @@ -28,7 +28,7 @@ * Map Processor Main Class */ public class MapProcessor { - + String name; List<MakeInString> makeInStrings = FastList.newInstance(); List<SimpleMapProcess> simpleMapProcesses = FastList.newInstance(); Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/NotEmpty.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/NotEmpty.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/NotEmpty.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/NotEmpty.java Fri Mar 27 16:57:48 2009 @@ -27,7 +27,7 @@ * Checks to see if the current field is empty (null or zero length) */ public class NotEmpty extends SimpleMapOperation { - + public NotEmpty(Element element, SimpleMapProcess simpleMapProcess) { super(element, simpleMapProcess); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/PropertyOper.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/PropertyOper.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/PropertyOper.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/PropertyOper.java Fri Mar 27 16:57:48 2009 @@ -27,9 +27,9 @@ * A MakeInStringOperation that insert the value of a property from a properties file */ public class PropertyOper extends MakeInStringOperation { - + public static final String module = PropertyOper.class.getName(); - + String resource; String property; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Regexp.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Regexp.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Regexp.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/Regexp.java Fri Mar 27 16:57:48 2009 @@ -29,9 +29,9 @@ * Validates the current field using a regular expression */ public class Regexp extends SimpleMapOperation { - + public static final String module = Regexp.class.getName(); - + static PatternMatcher matcher = new Perl5Matcher(); static PatternCompiler compiler = new Perl5Compiler(); Pattern pattern = null; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapOperation.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapOperation.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapOperation.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapOperation.java Fri Mar 27 16:57:48 2009 @@ -27,7 +27,7 @@ * A single operation, does the specified operation on the given field */ public abstract class SimpleMapOperation { - + String message = null; String propertyResource = null; boolean isProperty = false; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapProcess.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapProcess.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapProcess.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/SimpleMapProcess.java Fri Mar 27 16:57:48 2009 @@ -29,9 +29,9 @@ * A complete string process for a given field; contains multiple string operations */ public class SimpleMapProcess { - + public static final String module = SimpleMapProcess.class.getName(); - + List<SimpleMapOperation> simpleMapOperations = FastList.newInstance(); String field = ""; Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ValidateMethod.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ValidateMethod.java?rev=759238&r1=759237&r2=759238&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ValidateMethod.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/operation/ValidateMethod.java Fri Mar 27 16:57:48 2009 @@ -29,9 +29,9 @@ * A string operation that calls a validation method */ public class ValidateMethod extends SimpleMapOperation { - + public static final String module = ValidateMethod.class.getName(); - + String methodName; String className; |
Free forum by Nabble | Edit this page |