本文整理汇总了Java中org.kuali.rice.krms.impl.type.AgendaTypeServiceBase类的典型用法代码示例。如果您正苦于以下问题:Java AgendaTypeServiceBase类的具体用法?Java AgendaTypeServiceBase怎么用?Java AgendaTypeServiceBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AgendaTypeServiceBase类属于org.kuali.rice.krms.impl.type包,在下文中一共展示了AgendaTypeServiceBase类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: translateAgendaDefinition
import org.kuali.rice.krms.impl.type.AgendaTypeServiceBase; //导入依赖的package包/类
@Override
public Agenda translateAgendaDefinition(AgendaDefinition agendaDefinition) {
Agenda result = null;
// unless the type is undefined, translate it using the AgendaTypeService
if (StringUtils.isEmpty(agendaDefinition.getTypeId())) {
// our default agenda implementation
result = AgendaTypeServiceBase.defaultAgendaTypeService.loadAgenda(agendaDefinition);
} else {
AgendaTypeService agendaTypeService = typeResolver.getAgendaTypeService(agendaDefinition);
// our typeResolver will throw an appropriate exception if it can't get the type
// so no need for null check here
result = agendaTypeService.loadAgenda(agendaDefinition);
}
return result;
}
示例2: getAgendaTypeService
import org.kuali.rice.krms.impl.type.AgendaTypeServiceBase; //导入依赖的package包/类
private AgendaTypeService getAgendaTypeService(String krmsTypeId) {
//
// Get the AgendaTypeService by hook or by crook
//
KrmsTypeDefinition krmsType =
KrmsRepositoryServiceLocator.getKrmsTypeRepositoryService().
getTypeById(krmsTypeId);
AgendaTypeService agendaTypeService = null;
if (!StringUtils.isBlank(krmsTypeId)) {
String serviceName = krmsType.getServiceName();
if (!StringUtils.isBlank(serviceName)) {
agendaTypeService = KrmsRepositoryServiceLocator.getService(serviceName);
}
}
if (agendaTypeService == null) { agendaTypeService = AgendaTypeServiceBase.defaultAgendaTypeService; }
return agendaTypeService;
}