changeset 7:ac2fd7a4378d

(none)
author jurzua
date Thu, 30 Oct 2014 12:50:26 +0000
parents c56f72ecf0fb
children 478fd6f26ea8
files src/main/java/org/mpi/openmind/cache/WrapperService.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/cache/WrapperService.java	Wed Oct 29 13:32:42 2014 +0000
+++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java	Thu Oct 30 12:50:26 2014 +0000
@@ -25,6 +25,7 @@
 import org.mpi.openmind.repository.services.utils.AttributeFilter;
 import org.mpi.openmind.repository.utils.ImportOM3Util;
 import org.mpi.openmind.repository.utils.NormalizerUtils;
+import org.mpi.openmind.repository.utils.RomanizationLoC;
 
 public class WrapperService implements Serializable{
 
@@ -337,6 +338,14 @@
 		return null;
 	}
 
+	public String getAttributeOVByName(Long entId, String name, boolean useRomanization){
+		Attribute att = getAttributeByName(entId, name);
+		if(att != null){
+			return (useRomanization) ? RomanizationLoC.convert(att.getOwnValue()) : att.getOwnValue();
+		}
+		return "";
+	}
+	
 	public List<Attribute> searchAttribute(String firstName, String firstValue,
 			String secondName, String secondValue, String def, int maxResults) {
 		List<Attribute> list = new ArrayList<Attribute>();