本文整理汇总了Java中org.kuali.rice.krad.service.KRADServiceLocatorWeb.getDataDictionaryService方法的典型用法代码示例。如果您正苦于以下问题:Java KRADServiceLocatorWeb.getDataDictionaryService方法的具体用法?Java KRADServiceLocatorWeb.getDataDictionaryService怎么用?Java KRADServiceLocatorWeb.getDataDictionaryService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.krad.service.KRADServiceLocatorWeb
的用法示例。
在下文中一共展示了KRADServiceLocatorWeb.getDataDictionaryService方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerPropertyEditors
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
* Registers a default set of property editors for use with KRAD in a given property editor registry.
*
* @param registry property editor registry
*/
public static void registerPropertyEditors(PropertyEditorRegistry registry) {
DataDictionaryService dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
Map<Class<?>, String> propertyEditorMap = dataDictionaryService.getPropertyEditorMap();
if (propertyEditorMap == null) {
LOG.warn("No propertyEditorMap defined in data dictionary");
return;
}
for (Entry<Class<?>, String> propertyEditorEntry : propertyEditorMap.entrySet()) {
PropertyEditor editor = (PropertyEditor) dataDictionaryService.getDataDictionary().getDictionaryPrototype(
propertyEditorEntry.getValue());
registry.registerCustomEditor(propertyEditorEntry.getKey(), editor);
if (LOG.isDebugEnabled()) {
LOG.debug("registered " + propertyEditorEntry);
}
}
}
示例2: getPropertyEditor
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
* Get a property editor given a property type.
*
* @param propertyType The property type to look up an editor for.
* @param path The property path, if applicable.
* @return property editor
*/
public static PropertyEditor getPropertyEditor(Class<?> propertyType) {
PropertyEditorRegistry registry = getPropertyEditorRegistry();
PropertyEditor editor = null;
if (registry != null) {
editor = registry.findCustomEditor(propertyType, null);
} else {
DataDictionaryService dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
Map<Class<?>, String> editorMap = dataDictionaryService.getPropertyEditorMap();
String editorPrototypeName = editorMap == null ? null : editorMap.get(propertyType);
if (editorPrototypeName != null) {
editor = (PropertyEditor) dataDictionaryService.getDataDictionary().getDictionaryPrototype(editorPrototypeName);
}
}
if (editor == null && propertyType != null) {
// Fall back to default beans lookup
editor = PropertyEditorManager.findEditor(propertyType);
}
return editor;
}
示例3: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
* @return the dataDictionaryService
*/
public DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return this.dataDictionaryService;
}
示例4: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例5: setUp
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
super.setUp();
ddService = KRADServiceLocatorWeb.getDataDictionaryService();
dtService = KEWServiceLocator.getDocumentTypeService();
}
示例6: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private DataDictionaryService getDataDictionaryService() {
return KRADServiceLocatorWeb.getDataDictionaryService();
}
示例7: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
public static DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例8: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private DataDictionaryService getDataDictionaryService() {
if ( dataDictionaryService == null ) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例9: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
public DataDictionaryService getDataDictionaryService() {
if(dataDictionaryService == null){
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例10: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例11: getDdService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected final DataDictionaryService getDdService() {
if (ddService == null) {
this.ddService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return ddService;
}
示例12: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
if (this.dataDictionaryService == null) {
this.dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return this.dataDictionaryService;
}
示例13: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private static DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}
示例14: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
return KRADServiceLocatorWeb.getDataDictionaryService();
}
示例15: getDataDictionaryService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
if (dataDictionaryService == null) {
this.dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
}
return dataDictionaryService;
}