当前位置: 首页>>代码示例>>Java>>正文


Java KRADServiceLocatorWeb.getDataDictionaryService方法代码示例

本文整理汇总了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);
        }
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:25,代码来源:ObjectPropertyUtils.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:32,代码来源:ObjectPropertyUtils.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:10,代码来源:MandatoryElementConstraintProcessor.java

示例4: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
    if (dataDictionaryService == null) {
        dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
    }

    return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:TransactionalDocumentAuthorizerBase.java

示例5: setUp

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
    super.setUp();
    ddService = KRADServiceLocatorWeb.getDataDictionaryService();
    dtService = KEWServiceLocator.getDocumentTypeService();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DataDictionaryTest.java

示例6: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private DataDictionaryService getDataDictionaryService() {
    return KRADServiceLocatorWeb.getDataDictionaryService();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:PermissionBo.java

示例7: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
public static DataDictionaryService getDataDictionaryService() {
   	if (dataDictionaryService == null) {
   		dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
   	}
	return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:FieldBridge.java

示例8: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private DataDictionaryService getDataDictionaryService() {
    if ( dataDictionaryService == null ) {
        dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
    }
    return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KualiHelpAction.java

示例9: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
public DataDictionaryService getDataDictionaryService() {
	if(dataDictionaryService == null){
		dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
	}
	return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentConfigurationViewAction.java

示例10: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
    if (dataDictionaryService == null) {
        dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
    }
    return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentRuleBase.java

示例11: getDdService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected final DataDictionaryService getDdService() {
    if (ddService == null) {
        this.ddService = KRADServiceLocatorWeb.getDataDictionaryService();
    }
    return ddService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:MaintenanceDocumentRuleBase.java

示例12: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
    if (this.dataDictionaryService == null) {
        this.dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
    }
    return this.dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentControllerServiceImpl.java

示例13: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private static DataDictionaryService getDataDictionaryService() {
	if (dataDictionaryService == null) {
		dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
	}
	return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:FieldUtils.java

示例14: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
    return KRADServiceLocatorWeb.getDataDictionaryService();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:DataDictionaryRemoteFieldServiceImpl.java

示例15: getDataDictionaryService

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected DataDictionaryService getDataDictionaryService() {
    if (dataDictionaryService == null) {
        this.dataDictionaryService = KRADServiceLocatorWeb.getDataDictionaryService();
    }
    return dataDictionaryService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentDictionaryServiceImpl.java


注:本文中的org.kuali.rice.krad.service.KRADServiceLocatorWeb.getDataDictionaryService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。