| | |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Locale; |
| | | |
| | | @Data |
| | | public class ClientBusinessObject extends BaseModel { |
| | |
| | | } |
| | | |
| | | public void setAttributeValueWithNoCheck(String attributeName, String attributeValue, boolean isCreate) throws VciBaseException { |
| | | /*if (isCreate) {//&& BusinessConstants.BO_CONSTANTS.containsKey(attributeName.toUpperCase()) |
| | | /*if (isCreate) {//&& BusinessConstants.BO_CONSTANTS.containsKey(attributeName.toLowerCase(Locale.ROOT)) |
| | | this.setConstantsAttrVal(attributeName, attributeValue); |
| | | } else {*/ |
| | | AttributeValue[] attrValues = this.newAttrValList; |
| | |
| | | |
| | | for(i = 0; i < attrValList.size(); ++i) { |
| | | attrVal = (AttributeValue)attrValList.get(i); |
| | | if (attrVal.attrName.toUpperCase().equals(attributeName.toUpperCase())) { |
| | | if (attrVal.attrName.toLowerCase(Locale.ROOT).equals(attributeName.toLowerCase(Locale.ROOT))) { |
| | | attrVal.attrVal = attributeValue; |
| | | isExist = true; |
| | | break; |
| | |
| | | |
| | | if (!isExist) { |
| | | attrVal = new AttributeValue(); |
| | | attrVal.attrName = attributeName.toUpperCase(); |
| | | attrVal.attrName = attributeName.toLowerCase(Locale.ROOT); |
| | | attrVal.attrVal = attributeValue; |
| | | attrValList.add(attrVal); |
| | | |
| | | } |
| | | this.getData().put(attributeName,attributeValue); |
| | | this.getData().put(attributeName.toLowerCase(Locale.ROOT),attributeValue); |
| | | this.newAttrValList = (AttributeValue[])attrValList.toArray(new AttributeValue[attrValList.size()]); |
| | | // } |
| | | } |
| | |
| | | int i; |
| | | if (this.newAttrValList != null) { |
| | | for(i = 0; i < this.newAttrValList.length; ++i) { |
| | | if (this.newAttrValList[i].attrName.toUpperCase().equals(attrName.toUpperCase())) { |
| | | if (this.newAttrValList[i].attrName.toLowerCase(Locale.ROOT).equals(attrName.toLowerCase(Locale.ROOT))) { |
| | | existInNewAttr = true; |
| | | res = this.newAttrValList[i].attrVal; |
| | | } |
| | |
| | | return ""; |
| | | } else { |
| | | for(i = 0; i < this.hisAttrValList.length; ++i) { |
| | | if (this.hisAttrValList[i].attrName.toUpperCase().equals(attrName.toUpperCase())) { |
| | | if (this.hisAttrValList[i].attrName.toLowerCase(Locale.ROOT).equals(attrName.toLowerCase(Locale.ROOT))) { |
| | | res = this.hisAttrValList[i].attrVal; |
| | | } |
| | | } |