• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java CampusService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.kuali.rice.location.api.campus.CampusService的典型用法代码示例。如果您正苦于以下问题:Java CampusService类的具体用法?Java CampusService怎么用?Java CampusService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CampusService类属于org.kuali.rice.location.api.campus包,在下文中一共展示了CampusService类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getKeyValues

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
@Override
public List<KeyValue> getKeyValues() {

       // get a list of all CampusTypes
   	CampusService campusService = LocationApiServiceLocator.getCampusService();
   	List<CampusType> campusTypes = campusService.findAllCampusTypes();
      
   	//copy list for sorting (list from service is unmodifiable
   	List<CampusType> campusTypeSort = new ArrayList<CampusType>(campusTypes);
       // sort using comparator.
       Collections.sort(campusTypeSort, CampusTypeComparator.INSTANCE);

       // create a new list (code, descriptive-name)
       List<KeyValue> labels = new ArrayList<KeyValue>();

       for (CampusType campusType : campusTypeSort) {
           labels.add(new ConcreteKeyValue(campusType.getCode(), campusType.getCode() + " - " + campusType.getName()));
       }

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


示例2: validateCampusCode

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
/**
 * Validates the campus code exists in the campus code table
 *
 * @param campusCode
 * @param detail
 * @return boolean
 */
protected boolean validateCampusCode(String campusCode, BarcodeInventoryErrorDetail detail) {
    boolean result = true;
    String label = SpringContext.getBean(DataDictionaryService.class).getDataDictionary().getBusinessObjectEntry(BarcodeInventoryErrorDetail.class.getName()).getAttributeDefinition(CamsPropertyConstants.BarcodeInventory.CAMPUS_CODE).getLabel();

    Campus campus;
    HashMap<String, Object> fields = new HashMap<String, Object>();
    fields.put(KFSPropertyConstants.CAMPUS_CODE, detail.getCampusCode());
    campus = SpringContext.getBean(CampusService.class).getCampus(campusCode/*RICE_20_REFACTORME  fields */);

    if (ObjectUtils.isNull(campus)) {
        GlobalVariables.getMessageMap().putError(CamsPropertyConstants.BarcodeInventory.CAMPUS_CODE, CamsKeyConstants.BarcodeInventory.ERROR_INVALID_FIELD, label);
        result = false;
    }
    else if (!campus.isActive()) {
        GlobalVariables.getMessageMap().putError(CamsPropertyConstants.BarcodeInventory.CAMPUS_CODE, CamsKeyConstants.BarcodeInventory.ERROR_INACTIVE_FIELD, label);
        result &= false;
    }
    return result;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:27,代码来源:BarcodeInventoryErrorDocumentRule.java


示例3: getKeyValues

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
@Override
public List<KeyValue> getKeyValues() {
			
           CampusService campusService = LocationApiServiceLocator.getCampusService();
           List<Campus> campuses = campusService.findAllCampuses();
           List<KeyValue> labels = new ArrayList<KeyValue>();
           labels.add(new ConcreteKeyValue("", ""));
           for ( Campus campus : campuses ) {
               labels.add(new ConcreteKeyValue(campus.getCode(), campus.getCode() + " - " + campus.getName()));
           }
           return labels;
   }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:CampusValuesFinder.java


示例4: setupServiceUnderTest

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
@Before
@Override
public void setupServiceUnderTest() {
    super.setupServiceUnderTest();
    CampusService remoteProxy =
            harness.publishEndpointAndReturnProxy(CampusService.class, this.getCampusServiceImpl());
    super.setCampusService(remoteProxy);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:CampusServiceRemoteTest.java


示例5: checkCampusCodeValid

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
/**
 * check the given campus code existing and active status.
 *
 * @param campusCode
 * @return
 */
protected boolean checkCampusCodeValid(String campusCode) {
    Map<String, Object> criteria = new HashMap<String, Object>();
    criteria.put(CabPropertyConstants.AssetGlobalDocumentCreate.CAMPUS_CODE, campusCode);
    Campus campus = SpringContext.getBean(CampusService.class).getCampus(campusCode/*RICE_20_REFACTORME  criteria */);
    return ObjectUtils.isNotNull(campus) && campus.isActive();
}
 
开发者ID:kuali,项目名称:kfs,代码行数:13,代码来源:PurApLineDocumentServiceImpl.java


示例6: getCampusService

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
public static CampusService getCampusService() {
    return getService(CAMPUS_SERVICE);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:LocationApiServiceLocator.java


示例7: getCampusService

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
protected CampusService getCampusService() {
    if (campusService == null) {
        campusService = LocationApiServiceLocator.getCampusService();
    }
    return campusService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:LocationRemoteModuleService.java


示例8: retrieveCampus

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
protected Campus retrieveCampus() {
    Map<String, Object> criteria = new HashMap<String, Object>();
    criteria.put(KRADPropertyConstants.CAMPUS_CODE, campusCode);
    return campus = SpringContext.getBean(CampusService.class).getCampus(campusCode/*RICE_20_REFACTORME  criteria */);
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:6,代码来源:CashManagementDocument.java


示例9: getCampus

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
/**
 * Gets the campus attribute.
 * 
 * @return Returns the campus.
 */
public Campus getCampus() {
    Map<String, Object> criteria = new HashMap<String, Object>();
    criteria.put(KRADPropertyConstants.CAMPUS_CODE, campusCode);
    return campus = SpringContext.getBean(CampusService.class).getCampus(campusCode/*RICE_20_REFACTORME  criteria */);
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:11,代码来源:CollectorHeader.java


示例10: setCampusService

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
public void setCampusService(CampusService campusService) {
    this.campusService = campusService;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:4,代码来源:CapitalAssetBuilderModuleServiceImpl.java


示例11: verifyCampus

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
/**
 * This method verifies the campus code provided exists.  This is done by retrieving all the available campuses from
 * the BusinessObjectService and then looking for a matching campus code within the result set.
 * 
 * @param campusCode The campus code to be verified.
 * @return True if the campus code provided is valid and exists, false otherwise.
 */
protected boolean verifyCampus(String campusCode) {
    return SpringContext.getBean(CampusService.class).getCampus(campusCode) != null;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:11,代码来源:CashReceiptServiceImpl.java


示例12: verifyCampus

import org.kuali.rice.location.api.campus.CampusService; //导入依赖的package包/类
/**
 * This method verifies the campus code provided exists.  This is done by retrieving all the available campuses from
 * the BusinessObjectService and then looking for a matching campus code within the result set.
 *
 * @param campusCode The campus code to be verified.
 * @return True if the campus code provided is valid and exists, false otherwise.
 */
protected boolean verifyCampus(String campusCode) {
    return SpringContext.getBean(CampusService.class).getCampus(campusCode) != null;
}
 
开发者ID:kuali,项目名称:kfs,代码行数:11,代码来源:CashReceiptServiceImpl.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DefaultTableColumnModelExt类代码示例发布时间:2022-05-22
下一篇:
Java BeanPropertySet类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap