本文整理汇总了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);
}
示例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;
}
示例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>>();
}
示例4: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected KualiModuleService getKualiModuleService() {
if (kualiModuleService == null) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例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;
}
示例6: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected KualiModuleService getKualiModuleService() {
return KRADServiceLocatorWeb.getKualiModuleService();
}
示例7: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private static KualiModuleService getKualiModuleService() {
if (kualiModuleService == null) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例8: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected static KualiModuleService getKualiModuleService() {
if ( kualiModuleService == null ) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例9: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected static KualiModuleService getKualiModuleService() {
if (kualiModuleService == null) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例10: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private static KualiModuleService getKualiModuleService() {
if (kualiModuleService == null) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例11: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private KualiModuleService getKualiModuleService() {
if ( kualiModuleService == null )
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
return kualiModuleService;
}
示例12: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
private synchronized static KualiModuleService getKualiModuleService() {
if (kualiModuleService == null) {
kualiModuleService = KRADServiceLocatorWeb.getKualiModuleService();
}
return kualiModuleService;
}
示例13: getKualiModuleService
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; //导入方法依赖的package包/类
protected static KualiModuleService getKualiModuleService() {
return KRADServiceLocatorWeb.getKualiModuleService();
}