# HG changeset patch # User jurzua # Date 1414673426 0 # Node ID ac2fd7a4378d2b0fdf5e7b1bd8f50cb332c67be6 # Parent c56f72ecf0fb892e67ca4ea3ea69282e3af228f7 diff -r c56f72ecf0fb -r ac2fd7a4378d src/main/java/org/mpi/openmind/cache/WrapperService.java --- 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 searchAttribute(String firstName, String firstValue, String secondName, String secondValue, String def, int maxResults) { List list = new ArrayList();