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


Java KRADConstants.EMPTY_STRING属性代码示例

本文整理汇总了Java中org.kuali.rice.krad.util.KRADConstants.EMPTY_STRING属性的典型用法代码示例。如果您正苦于以下问题:Java KRADConstants.EMPTY_STRING属性的具体用法?Java KRADConstants.EMPTY_STRING怎么用?Java KRADConstants.EMPTY_STRING使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.kuali.rice.krad.util.KRADConstants的用法示例。


在下文中一共展示了KRADConstants.EMPTY_STRING属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getExternalizableBusinessObjectInquiryUrl

@Override
@Deprecated
public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass,
        Map<String, String[]> parameters) {
    if (!isExternalizable(inquiryBusinessObjectClass)) {
        return KRADConstants.EMPTY_STRING;
    }
    String businessObjectClassAttribute;

    Class implementationClass = getExternalizableBusinessObjectImplementation(inquiryBusinessObjectClass);
    if (implementationClass == null) {
        LOG.error("Can't find ExternalizableBusinessObject implementation class for " + inquiryBusinessObjectClass
                .getName());
        throw new RuntimeException("Can't find ExternalizableBusinessObject implementation class for interface "
                + inquiryBusinessObjectClass.getName());
    }
    businessObjectClassAttribute = implementationClass.getName();
    return UrlFactory.parameterizeUrl(getInquiryUrl(inquiryBusinessObjectClass), getUrlParameters(
            businessObjectClassAttribute, parameters));
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:RemoteModuleServiceBase.java

示例2: getExternalizableBusinessObjectInquiryUrl

@Deprecated
public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass,
        Map<String, String[]> parameters) {
    if (!isExternalizable(inquiryBusinessObjectClass)) {
        return KRADConstants.EMPTY_STRING;
    }
    String businessObjectClassAttribute;

    Class implementationClass = getExternalizableBusinessObjectImplementation(inquiryBusinessObjectClass);
    if (implementationClass == null) {
        LOG.error("Can't find ExternalizableBusinessObject implementation class for " + inquiryBusinessObjectClass
                .getName());
        throw new RuntimeException("Can't find ExternalizableBusinessObject implementation class for interface "
                + inquiryBusinessObjectClass.getName());
    }
    businessObjectClassAttribute = implementationClass.getName();
    return UrlFactory.parameterizeUrl(getInquiryUrl(inquiryBusinessObjectClass), getUrlParameters(
            businessObjectClassAttribute, parameters));
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:ModuleServiceBase.java

示例3: getTabState

/**
 * Special getter based on key to work with multi rows for tab state objects
 */
public String getTabState(String key) {
    String state = KRADConstants.EMPTY_STRING;
    if (tabStates.containsKey(key)) {
        if (tabStates.get(key) instanceof String) {
        	state = tabStates.get(key);
        }
        else {
        	//This is the case where the value is an Array of String,
        	//so we'll have to get the first element
        	Object result = tabStates.get(key);
        	result.getClass();
        	state = ((String[])result)[0];
        }
    }

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

示例4: getInquiryUrlForPrimaryKeys

@Deprecated
protected AnchorHtmlData getInquiryUrlForPrimaryKeys(Class clazz, Object businessObject, List<String> primaryKeys,
		String displayText) {
	if (businessObject == null)
		return new AnchorHtmlData(KRADConstants.EMPTY_STRING, KRADConstants.EMPTY_STRING);

	Properties parameters = new Properties();
	parameters.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.START_METHOD);
	parameters.put(KRADConstants.BUSINESS_OBJECT_CLASS_ATTRIBUTE, clazz.getName());

	String titleAttributeValue;
	Map<String, String> fieldList = new HashMap<String, String>();
	for (String primaryKey : primaryKeys) {
		titleAttributeValue = (String) ObjectUtils.getPropertyValue(businessObject, primaryKey);
		parameters.put(primaryKey, titleAttributeValue);
		fieldList.put(primaryKey, titleAttributeValue);
	}
	if (StringUtils.isEmpty(displayText))
		return getHyperLink(clazz, fieldList, UrlFactory.parameterizeUrl(KRADConstants.INQUIRY_ACTION, parameters));
	else
		return getHyperLink(clazz, fieldList, UrlFactory.parameterizeUrl(KRADConstants.INQUIRY_ACTION, parameters),
				displayText);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:23,代码来源:KualiInquirableImpl.java

示例5: prefixLookupParameters

private String prefixLookupParameters(String lookupParameters) {
    StringBuilder newLookupParameters = new StringBuilder(KRADConstants.EMPTY_STRING);
    String[] conversions = StringUtils.split(lookupParameters, KRADConstants.FIELD_CONVERSIONS_SEPARATOR);

    for (int m = 0; m < conversions.length; m++) {
        String conversion = conversions[m];
        String[] conversionPair = StringUtils.split(conversion, KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR, 2);
        String conversionFrom = conversionPair[0];
        String conversionTo = conversionPair[1];
        conversionFrom = KewApiConstants.DOCUMENT_ATTRIBUTE_FIELD_PREFIX + conversionFrom;
        newLookupParameters.append(conversionFrom)
                .append(KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR)
                .append(conversionTo);

        if (m < conversions.length) {
            newLookupParameters.append(KRADConstants.FIELD_CONVERSIONS_SEPARATOR);
        }
    }
    return newLookupParameters.toString();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:DocumentSearchCriteriaProcessorKEWAdapter.java

示例6: prefixFieldConversions

private String prefixFieldConversions(String fieldConversions) {
    StringBuilder newFieldConversions = new StringBuilder(KRADConstants.EMPTY_STRING);
    String[] conversions = StringUtils.split(fieldConversions, KRADConstants.FIELD_CONVERSIONS_SEPARATOR);

    for (int l = 0; l < conversions.length; l++) {
        String conversion = conversions[l];
        //String[] conversionPair = StringUtils.split(conversion, KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR);
        String[] conversionPair = StringUtils.split(conversion, KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR, 2);
        String conversionFrom = conversionPair[0];
        String conversionTo = conversionPair[1];
        conversionTo = KewApiConstants.DOCUMENT_ATTRIBUTE_FIELD_PREFIX + conversionTo;
        newFieldConversions.append(conversionFrom)
                .append(KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR)
                .append(conversionTo);

        if (l < conversions.length) {
            newFieldConversions.append(KRADConstants.FIELD_CONVERSIONS_SEPARATOR);
        }
    }

    return newFieldConversions.toString();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:22,代码来源:DocumentSearchCriteriaProcessorKEWAdapter.java

示例7: getPropertyValue

/**
 * @return Returns the propertyValue.
 */
@Override
public String getPropertyValue() {
    if (propertyValue == null) {
        propertyValue = KRADConstants.EMPTY_STRING;
    }

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

示例8: setPropertyName

/**
 * @param propertyName The propertyName to set.
 */
@Override
public void setPropertyName(String propertyName) {
    String newPropertyName = KRADConstants.EMPTY_STRING;
    if (propertyName != null) {
        newPropertyName = propertyName;
    }
    this.propertyName = newPropertyName;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:Field.java

示例9: getValidationErrorMessageKeyOptions

@Override
protected String getValidationErrorMessageKeyOptions() {
	if (getAllowWhitespace()) {
		return ".allowWhitespace";
	}
	return KRADConstants.EMPTY_STRING;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:UTF8AnyCharacterValidationPattern.java

示例10: convertErrorsForMappedFields

public List<RemotableAttributeError> convertErrorsForMappedFields(String errorPath, List<RemotableAttributeError> localErrors) {
	List<RemotableAttributeError> errors = new ArrayList<RemotableAttributeError>();
	if (errorPath == null) {
		errorPath = KRADConstants.EMPTY_STRING;
	}
	else if (StringUtils.isNotEmpty(errorPath)) {
		errorPath = errorPath + ".";
	}
	for ( RemotableAttributeError error : localErrors) {
		KimAttribute attribute = getAttributeDefinitionByName(error.getAttributeName());
		String attributeDefnId = attribute==null?"":attribute.getId();
		errors.add(RemotableAttributeError.Builder.create(errorPath+"qualifier("+attributeDefnId+").attrVal", error.getErrors()).build());
	}
	return errors;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:15,代码来源:AttributeValidationHelper.java

示例11: getTitleText

/**
 * KFSMI-658 This method gets the title text for a link/control
 * 
 * @param prependText
 * @param dataObject
 * @param fieldConversions
 * @param returnKeys
 * @return title text
 */
public static String getTitleText(String prependText, Object dataObject, List<String> keys, BusinessObjectRestrictions businessObjectRestrictions) {
	if (dataObject == null)
		return KRADConstants.EMPTY_STRING;

	Map<String, String> keyValueMap = new HashMap<String, String>();
	Iterator keysIt = keys.iterator();
	while (keysIt.hasNext()) {
		String fieldNm = (String) keysIt.next();
		Object fieldVal = ObjectUtils.getPropertyValue(dataObject, fieldNm);

		FieldRestriction fieldRestriction = null;
		if (businessObjectRestrictions != null) {
			fieldRestriction = businessObjectRestrictions.getFieldRestriction(fieldNm);
		}

           if (KNSServiceLocator.getDataDictionaryService().getAttributeDefinition(dataObject.getClass().getName(), fieldNm) == null) {
               fieldVal = KRADConstants.EMPTY_STRING;
           } else if (fieldRestriction != null && (fieldRestriction.isMasked() || fieldRestriction.isPartiallyMasked())) {
			fieldVal = fieldRestriction.getMaskFormatter().maskValue(fieldVal);
		} else if (fieldVal == null) {
			fieldVal = KRADConstants.EMPTY_STRING;
		} else if (fieldVal instanceof Date) {
			// need to format date in url
			DateFormatter dateFormatter = new DateFormatter();
			fieldVal = dateFormatter.format(fieldVal);
		}
		keyValueMap.put(fieldNm, fieldVal.toString());
	}
	return getTitleText(prependText, dataObject.getClass(), keyValueMap);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:39,代码来源:HtmlData.java

示例12: setFieldDirectInquiry

/**
 * Sets whether a field should have direct inquiries enabled.  The direct inquiry is the functionality on a page such that if the primary key for
 * a quickfinder is filled in and the direct inquiry button is pressed, then a new window will popup showing an inquiry page without going through
 * the lookup first.
 *
 * For this method to work properly, it must be called after setFieldQuickfinder
 * //TODO: chb: that should not be the case -- the relationship object the two rely upon should be established outside of the lookup/quickfinder code
 *
 *
 * @param field
 */
private static void setFieldDirectInquiry(Field field) {
    if (StringUtils.isNotBlank(field.getFieldConversions())) {
        boolean directInquiriesEnabled = CoreFrameworkServiceLocator.getParameterService().getParameterValueAsBoolean(
                KRADConstants.KNS_NAMESPACE, KRADConstants.DetailTypes.ALL_DETAIL_TYPE, KRADConstants.SystemGroupParameterNames.ENABLE_DIRECT_INQUIRIES_IND);
        if (directInquiriesEnabled) {
            if (StringUtils.isNotBlank(field.getFieldConversions())) {
                String fieldConversions = field.getFieldConversions();
                String newInquiryParameters = KRADConstants.EMPTY_STRING;
                String[] conversions = StringUtils.split(fieldConversions, KRADConstants.FIELD_CONVERSIONS_SEPARATOR);

                for (int l = 0; l < conversions.length; l++) {
                    String conversion = conversions[l];
                    //String[] conversionPair = StringUtils.split(conversion, KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR);
                    String[] conversionPair = StringUtils.split(conversion, KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR, 2);
                    String conversionFrom = conversionPair[0];
                    String conversionTo = conversionPair[1];
                    newInquiryParameters += (conversionTo + KRADConstants.FIELD_CONVERSION_PAIR_SEPARATOR + conversionFrom);

                    if (l < conversions.length - 1) {
                        newInquiryParameters += KRADConstants.FIELD_CONVERSIONS_SEPARATOR;
                    }
                }

                field.setInquiryParameters(newInquiryParameters);
            }
        }
        field.setFieldDirectInquiryEnabled(directInquiriesEnabled);
    }
    else {
        field.setFieldDirectInquiryEnabled(false);
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:43,代码来源:LookupUtils.java

示例13: setInquiryURL

public static void setInquiryURL(Field field, BusinessObject bo, String propertyName) {
    HtmlData inquiryHref = new AnchorHtmlData(KRADConstants.EMPTY_STRING, KRADConstants.EMPTY_STRING);

    Boolean b = getBusinessObjectDictionaryService().noInquiryFieldInquiry(bo.getClass(), propertyName);
    if (b == null || !b.booleanValue()) {
        Class<Inquirable> inquirableClass = getBusinessObjectDictionaryService().getInquirableClass(bo.getClass());
        Boolean b2 = getBusinessObjectDictionaryService().forceLookupResultFieldInquiry(bo.getClass(), propertyName);
        Inquirable inq = null;
        try {
            if ( inquirableClass != null ) {
                inq = inquirableClass.newInstance();
            } else {
                inq = KNSServiceLocator.getKualiInquirable();
                if ( LOG.isDebugEnabled() ) {
                    LOG.debug( "Default Inquirable Class: " + inq.getClass() );
    }
            }

            inquiryHref = inq.getInquiryUrl(bo, propertyName, null == b2 ? false : b2.booleanValue() );

        } catch ( Exception ex ) {
            LOG.error("unable to create inquirable to get inquiry URL", ex );
        }
    }

    field.setInquiryURL(inquiryHref);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:27,代码来源:FieldUtils.java

示例14: getValidationErrorMessageKeyOptions

protected String getValidationErrorMessageKeyOptions() {
    return KRADConstants.EMPTY_STRING;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:3,代码来源:CharacterLevelValidationPattern.java

示例15: PropertySerializerTrie

public PropertySerializerTrie() {
    rootNode = new PropertySerializerTrieNode(KRADConstants.EMPTY_STRING, KRADConstants.EMPTY_STRING);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:3,代码来源:PropertySerializerTrie.java


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