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


Java KRADServiceLocatorWeb.getKualiModuleService方法代码示例

本文整理汇总了Java中org.kuali.rice.krad.service.KRADServiceLocatorWeb.getKualiModuleService方法的典型用法代码示例。如果您正苦于以下问题:Java KRADServiceLocatorWeb.getKualiModuleService方法的具体用法?Java KRADServiceLocatorWeb.getKualiModuleService怎么用?Java KRADServiceLocatorWeb.getKualiModuleService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.krad.service.KRADServiceLocatorWeb的用法示例。


在下文中一共展示了KRADServiceLocatorWeb.getKualiModuleService方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: afterPropertiesSet

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
 * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
 */
@Override
public void afterPropertiesSet() throws Exception {
    KualiModuleService kualiModuleService = null;
    try {
        kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
        if (kualiModuleService == null) {
            kualiModuleService = ((KualiModuleService) applicationContext.getBean(
                    KRADServiceLocatorWeb.KUALI_MODULE_SERVICE));
        }
    } catch (NoSuchBeanDefinitionException ex) {
        kualiModuleService = ((KualiModuleService) applicationContext.getBean(
                KRADServiceLocatorWeb.KUALI_MODULE_SERVICE));
    }
    kualiModuleService.getInstalledModuleServices().add(this);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:RemoteModuleServiceBase.java

示例2: getKeyValues

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
@Override
public List<KeyValue> getKeyValues() {
   	List<KeyValue> keyValues = new ArrayList<KeyValue>();
       KualiModuleService kms = KRADServiceLocatorWeb.getKualiModuleService();
       for ( ModuleService moduleService : kms.getInstalledModuleServices() ) {
           keyValues.add(new ConcreteKeyValue(moduleService.getModuleConfiguration().getNamespaceCode(),
           		moduleService.getModuleConfiguration().getNamespaceCode() + " - " +
           		kms.getNamespaceName(moduleService.getModuleConfiguration().getNamespaceCode())));
       }

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

示例3: getAltkeys

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
 * Gets the alt keys for a class.  Will not return null but and empty list if no keys exist.
 *
 * @param clazz the class.
 * @return the alt keys
 */
private List<List<String>> getAltkeys(Class<?> clazz) {
	final KualiModuleService kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
	final ModuleService moduleService = kualiModuleService.getResponsibleModuleService(clazz);

    List<List<String>> altKeys = null;
    if (moduleService != null) {
    	altKeys = moduleService.listAlternatePrimaryKeyFieldNames(clazz);
    }

    return altKeys != null ? altKeys : new ArrayList<List<String>>();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:InquiryForm.java

示例4: getKualiModuleService

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

示例5: getDataObjectKey

import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
/**
 * Get the a primary key (valid for inquiry/maintenance view retrieval) for the dataObject by class name passed in
 *
 * @param dataObjectClassName the class name to get the key for
 * @return a key valid for use as a request parameter for retrieving an inquiry or maintenance doc
 */
public static String getDataObjectKey(String dataObjectClassName) {

    if (StringUtils.isBlank(dataObjectClassName)) {
        throw new RuntimeException("getDataObjectKey SpringEL function failed because the class name was blank");
    }

    Class dataObjectClass = null;

    try {
        dataObjectClass = Class.forName(dataObjectClassName);
    } catch (ClassNotFoundException e) {
        throw new RuntimeException(
                "getDataObjectKey SpringEL function failed when trying to find class " + dataObjectClassName, e);
    }

    // build list of key values from the map parameters
    List<String> pkPropertyNames = KRADServiceLocatorWeb.getLegacyDataAdapter().listPrimaryKeyFieldNames(dataObjectClass);

    //return first primary key found
    if (pkPropertyNames != null && !pkPropertyNames.isEmpty()) {
        return pkPropertyNames.get(0);
    }

    //this likely won't be reached, as most should have a primary key (assumption)
    KualiModuleService kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
    ModuleService moduleService = kualiModuleService.getResponsibleModuleService(dataObjectClass);

    // some classes might have alternate keys defined for retrieving
    List<List<String>> altKeys = null;
    if (moduleService != null) {
        altKeys = moduleService.listAlternatePrimaryKeyFieldNames(dataObjectClass);
    }

    if (altKeys != null && !altKeys.isEmpty()) {
        for (List<String> list : altKeys) {
            if (list != null && !list.isEmpty()) {
                //return any key first found
                return list.get(0);
            }
        }
    }

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

示例6: getKualiModuleService

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

示例7: getKualiModuleService

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

示例8: getKualiModuleService

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

示例9: getKualiModuleService

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

示例10: getKualiModuleService

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

示例11: getKualiModuleService

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

示例12: getKualiModuleService

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

示例13: getKualiModuleService

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


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