当前位置: 首页>>代码示例>>Java>>正文


Java KRADConstants.MULTIPLE_VALUE_LOOKUP_ACTION属性代码示例

本文整理汇总了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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:32,代码来源:RemoteModuleServiceBase.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:33,代码来源:LocationModuleService.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:48,代码来源:ModuleServiceBase.java


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