本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION属性的具体用法?Java KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION怎么用?Java KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.kuali.rice.krad.util.KRADConstants
的用法示例。
在下文中一共展示了KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExternalizableBusinessObjectLookupUrl
/**
* This overridden method ...
*
* @see org.kuali.rice.krad.service.ModuleService#getExternalizableBusinessObjectLookupUrl(java.lang.Class,
* java.util.Map)
*/
@Deprecated
@Override
public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
Map<String, String> parameters) {
Properties urlParameters = new Properties();
String riceBaseUrl = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString(
KRADConstants.KUALI_RICE_URL_KEY);
String lookupUrl = riceBaseUrl;
if (!lookupUrl.endsWith("/")) {
lookupUrl = lookupUrl + "/";
}
if (parameters.containsKey(KRADConstants.MULTIPLE_VALUE)) {
lookupUrl = lookupUrl + KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION;
} else {
lookupUrl = lookupUrl + KRADConstants.LOOKUP_ACTION;
}
for (String paramName : parameters.keySet()) {
urlParameters.put(paramName, parameters.get(paramName));
}
Class clazz = getExternalizableBusinessObjectImplementation(inquiryBusinessObjectClass);
urlParameters.put(KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, clazz == null ? "" : clazz.getName());
return UrlFactory.parameterizeUrl(lookupUrl, urlParameters);
}
示例2: getExternalizableBusinessObjectLookupUrl
/**
* This overridden method ...
*
* @see org.kuali.rice.krad.service.ModuleService#getExternalizableBusinessObjectLookupUrl(java.lang.Class,
* java.util.Map)
*/
@Deprecated
@Override
public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
Map<String, String> parameters) {
Properties urlParameters = new Properties();
String riceBaseUrl = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString(
KRADConstants.KUALI_RICE_URL_KEY);
String lookupUrl = riceBaseUrl;
if (!lookupUrl.endsWith("/")) {
lookupUrl = lookupUrl + "/";
}
if (parameters.containsKey(KRADConstants.MULTIPLE_VALUE)) {
lookupUrl = lookupUrl + KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION;
} else {
lookupUrl = lookupUrl + KRADConstants.LOOKUP_ACTION;
}
for (String paramName : parameters.keySet()) {
urlParameters.put(paramName, parameters.get(paramName));
}
Class clazz = getExternalizableBusinessObjectImplementation(inquiryBusinessObjectClass);
urlParameters.put(KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, clazz == null ? "" : clazz.getName());
return UrlFactory.parameterizeUrl(lookupUrl, urlParameters);
}
示例3: getExternalizableBusinessObjectLookupUrl
/**
* This overridden method ...
*
* @see org.kuali.rice.krad.service.ModuleService#getExternalizableBusinessObjectLookupUrl(java.lang.Class,
* java.util.Map)
*/
@Deprecated
@Override
public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass,
Map<String, String> parameters) {
Properties urlParameters = new Properties();
String riceBaseUrl = "";
String potentialUrlAddition = "";
if (goToCentralRiceForInquiry()) {
riceBaseUrl = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString(KRADConstants.KUALI_RICE_URL_KEY);
} else {
riceBaseUrl = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString(KRADConstants.APPLICATION_URL_KEY);
potentialUrlAddition = "kr/";
}
String lookupUrl = riceBaseUrl;
if (!lookupUrl.endsWith("/")) {
lookupUrl = lookupUrl + "/";
}
if (parameters.containsKey(KRADConstants.MULTIPLE_VALUE)) {
lookupUrl = lookupUrl + potentialUrlAddition + KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION;
}
else {
lookupUrl = lookupUrl + potentialUrlAddition + KRADConstants.LOOKUP_ACTION;
}
for (String paramName : parameters.keySet()) {
urlParameters.put(paramName, parameters.get(paramName));
}
/*Class clazz;
if (inquiryBusinessObjectClass.getClass().isInterface()) {*/
Class clazz = getExternalizableBusinessObjectImplementation(inquiryBusinessObjectClass);
/*} else {
clazz = inquiryBusinessObjectClass;
}*/
urlParameters.put(KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, clazz == null ? "" : clazz.getName());
return UrlFactory.parameterizeUrl(lookupUrl, urlParameters);
}