Mercurial > hg > openmind
comparison src/main/java/org/mpi/openmind/cache/WrapperService.java @ 7:ac2fd7a4378d
(none)
author | jurzua |
---|---|
date | Thu, 30 Oct 2014 12:50:26 +0000 |
parents | 615d27dce9b3 |
children | e52f593f9e0d |
comparison
equal
deleted
inserted
replaced
6:c56f72ecf0fb | 7:ac2fd7a4378d |
---|---|
23 import org.mpi.openmind.repository.bo.utils.RelationSortByTargetOW; | 23 import org.mpi.openmind.repository.bo.utils.RelationSortByTargetOW; |
24 import org.mpi.openmind.repository.services.PersistenceService; | 24 import org.mpi.openmind.repository.services.PersistenceService; |
25 import org.mpi.openmind.repository.services.utils.AttributeFilter; | 25 import org.mpi.openmind.repository.services.utils.AttributeFilter; |
26 import org.mpi.openmind.repository.utils.ImportOM3Util; | 26 import org.mpi.openmind.repository.utils.ImportOM3Util; |
27 import org.mpi.openmind.repository.utils.NormalizerUtils; | 27 import org.mpi.openmind.repository.utils.NormalizerUtils; |
28 import org.mpi.openmind.repository.utils.RomanizationLoC; | |
28 | 29 |
29 public class WrapperService implements Serializable{ | 30 public class WrapperService implements Serializable{ |
30 | 31 |
31 private static final long serialVersionUID = 2578074607841626396L; | 32 private static final long serialVersionUID = 2578074607841626396L; |
32 | 33 |
335 } | 336 } |
336 } | 337 } |
337 return null; | 338 return null; |
338 } | 339 } |
339 | 340 |
341 public String getAttributeOVByName(Long entId, String name, boolean useRomanization){ | |
342 Attribute att = getAttributeByName(entId, name); | |
343 if(att != null){ | |
344 return (useRomanization) ? RomanizationLoC.convert(att.getOwnValue()) : att.getOwnValue(); | |
345 } | |
346 return ""; | |
347 } | |
348 | |
340 public List<Attribute> searchAttribute(String firstName, String firstValue, | 349 public List<Attribute> searchAttribute(String firstName, String firstValue, |
341 String secondName, String secondValue, String def, int maxResults) { | 350 String secondName, String secondValue, String def, int maxResults) { |
342 List<Attribute> list = new ArrayList<Attribute>(); | 351 List<Attribute> list = new ArrayList<Attribute>(); |
343 | 352 |
344 List<Attribute> firstAttList = cache.getAttsByOCAndName(def, firstName); | 353 List<Attribute> firstAttList = cache.getAttsByOCAndName(def, firstName); |