本文整理汇总了Java中org.kuali.rice.coreservice.api.parameter.Parameter.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java Parameter.getValue方法的具体用法?Java Parameter.getValue怎么用?Java Parameter.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.coreservice.api.parameter.Parameter
的用法示例。
在下文中一共展示了Parameter.getValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ClassPathResource
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
/**
* To load the property file for the given path.
*
* @param classPath String
* @return properties
*/
/* public static Properties loadPropertiesFromClassPath(String classPath) {
ClassPathResource classPathResource = new ClassPathResource(classPath);
Properties properties = new Properties();
try {
properties.load(classPathResource.getInputStream());
}
catch (IOException e) {
throw new RuntimeException("Invalid class path: " + classPath + e,e);
}
return properties;
}*/
public String getParameter(String name){
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID,OLEConstants.SELECT_NMSPC,OLEConstants.SELECT_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例2: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public static String getParameter(String name) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
if(parameter==null){
parameterKey = ParameterKey.create(OLEConstants.APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT,name);
parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
}
return parameter!=null?parameter.getValue():null;
}
示例3: validateAllFieldRequirementsByChart
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
/**
* Validates all the field requirements by chart. It obtains a List of parameters where the parameter names are like
* "CHARTS_REQUIRING%" then loop through these parameters. If any of the parameter's values is null, then return false
*
* @param accountingDocument
* @return
*/
@Override
public boolean validateAllFieldRequirementsByChart(AccountingDocument accountingDocument) {
PurchasingDocument purchasingDocument = (PurchasingDocument) accountingDocument;
String documentType = (purchasingDocument instanceof RequisitionDocument) ? "REQUISITION" : "PURCHASE_ORDER";
boolean valid = true;
for (PurApItem item : purchasingDocument.getItems()) {
String itemTypeCode = item.getItemTypeCode();
List accountingLines = item.getSourceAccountingLines();
for (Iterator iterator = accountingLines.iterator(); iterator.hasNext(); ) {
PurApAccountingLine accountingLine = (PurApAccountingLine) iterator.next();
String coa = accountingLine.getChartOfAccountsCode();
//rice20 not sure if this will work trying to replace getBean(ParameterService.class).retrieveParametersGivenLookupCriteria(criteria));
Builder qbc = QueryByCriteria.Builder.create();
qbc.setPredicates(and(
equal(CabPropertyConstants.Parameter.PARAMETER_NAMESPACE_CODE, CabConstants.Parameters.NAMESPACE),
equal(CabPropertyConstants.Parameter.PARAMETER_DETAIL_TYPE_CODE, CabConstants.Parameters.DETAIL_TYPE_DOCUMENT),
PredicateFactory.like(CabPropertyConstants.Parameter.PARAMETER_NAME, "CHARTS_REQUIRING%" + documentType),
PredicateFactory.like(CabPropertyConstants.Parameter.PARAMETER_VALUE, "%" + coa + "%")));
List<Parameter> results = (parameterRepositoryService.findParameters(qbc.build())).getResults();
for (Parameter parameter : results) {
if (ObjectUtils.isNotNull(parameter)) {
if (parameter.getValue() != null) {
return false;
}
}
}
}
}
return valid;
}
示例4: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
if (parameter == null) {
parameterKey = ParameterKey.create(OLEConstants.APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, name);
parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
}
return parameter != null ? parameter.getValue() : null;
}
示例5: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
if(parameter==null){
parameterKey = ParameterKey.create(OLEConstants.APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT,name);
parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
}
return parameter!=null?parameter.getValue():null;
}
示例6: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter() {
ParameterKey parameterKey = ParameterKey.create(OLE, OLE_DESC, DESCRIBE, PROCESS_SOLR_IND);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter != null ? parameter.getValue() : null;
}
示例7: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name){
ParameterKey parameterKey = ParameterKey.create(org.kuali.ole.OLEConstants.APPL_ID, org.kuali.ole.OLEConstants.SELECT_NMSPC, org.kuali.ole.OLEConstants.SELECT_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例8: getBatchSize
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public int getBatchSize() {
ParameterKey batchSizeParameterKey = ParameterKey.create(org.kuali.ole.OLEConstants.APPL_ID_OLE, org.kuali.ole.OLEConstants.SYS_NMSPC, org.kuali.ole.OLEConstants.BATCH_CMPNT, "PO_RELINK_COPY_RECORD_BATCH_SIZE");
Parameter batchSizeParameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(batchSizeParameterKey);
String value = batchSizeParameter.getValue();
return new Integer(value).intValue();
}
示例9: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name){
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.SELECT_NMSPC, OLEConstants.SELECT_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例10: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String applicationId, String namespace, String componentId, String parameterName) {
ParameterKey parameterKey = ParameterKey.create(applicationId, namespace, componentId,parameterName);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例11: getSelectParameterValue
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getSelectParameterValue(String parameterName){
ParameterKey parameterKey = ParameterKey.create(org.kuali.ole.OLEConstants.APPL_ID, org.kuali.ole.OLEConstants.SELECT_NMSPC, org.kuali.ole.OLEConstants.SELECT_CMPNT,parameterName);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例12: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String namespaceCode, String componentCode, String parameterName) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.OLE_CMPNT,
namespaceCode, componentCode, parameterName);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter != null ? parameter.getValue() : null;
}
示例13: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name){
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID,OLEConstants.SELECT_NMSPC,OLEConstants.SELECT_CMPNT,name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter!=null?parameter.getValue():null;
}
示例14: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public String getParameter(String name) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, name);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter != null ? parameter.getValue() : null;
}
示例15: getParameter
import org.kuali.rice.coreservice.api.parameter.Parameter; //导入方法依赖的package包/类
public final String getParameter(String parameterName) {
ParameterKey parameterKey = ParameterKey.create(OLEConstants.APPL_ID, OLEConstants.SELECT_NMSPC, OLEConstants.SELECT_CMPNT, parameterName);
Parameter parameter = CoreServiceApiServiceLocator.getParameterRepositoryService().getParameter(parameterKey);
return parameter != null ? parameter.getValue() : null;
}