1 5 6 package com.raptus.owxv3.modules.base; 7 8 import com.raptus.owxv3.api.*; 9 import com.raptus.owxv3.*; 10 import java.util.Locale ; 11 12 public class BaseItemInfo extends Object implements ItemInfoIFace 13 { 14 19 public String itemInfo(int srcrowid, String owner, Locale l) 20 { 21 VModuleManager vmm = VModuleManager.getInstance(); 23 VModule newsm = vmm.getVModule(owner); 24 BaseObject news = new BaseObject(newsm, l); 25 XMLConfigManager cm=XMLConfigManager.getInstance(); 26 String title=cm.getPropertyByTree("virtualhost/vmodules/vmodule?name="+newsm.getIdentification()+"/component-properties/component-property?for=fc_fields/property?name=titlefield","value"); 27 if(title==null) title="title"; 28 PubBaseEntry entry = news.loadById(srcrowid); 29 String res=""; 30 if(entry != null) 31 { 32 res = entry.getField(title,l); 33 } 34 if(res == null) 35 { 36 res = ""; 37 } 38 res = res.trim(); 39 return res; 41 } 42 } 43 44 45 | Popular Tags |