本文整理汇总了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;未经允许,请勿转载。 |
请发表评论