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


Java RemotableAttributeFieldContract类代码示例

本文整理汇总了Java中org.kuali.rice.core.api.uif.RemotableAttributeFieldContract的典型用法代码示例。如果您正苦于以下问题:Java RemotableAttributeFieldContract类的具体用法?Java RemotableAttributeFieldContract怎么用?Java RemotableAttributeFieldContract使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: create

import org.kuali.rice.core.api.uif.RemotableAttributeFieldContract; //导入依赖的package包/类
/**
 * Creates a new builder instance initialized with copies of the properties from the given contract.
 *
 * @param contract the contract from which to copy properties
 *
 * @return a builder instance initialized with properties from the given contract
 *
 * @throws IllegalArgumentException if the given contract is null
 */
public static Builder create(DocumentSearchResultSetConfigurationContract contract) {
    if (contract == null) {
        throw new IllegalArgumentException("contract was null");
    }
    Builder builder = create();
    builder.setOverrideSearchableAttributes(contract.isOverrideSearchableAttributes());
    if (CollectionUtils.isNotEmpty(contract.getCustomFieldNamesToAdd())) {
        builder.setCustomFieldNamesToAdd(new ArrayList<String>(contract.getCustomFieldNamesToAdd()));
    }
    if (CollectionUtils.isNotEmpty(contract.getStandardResultFieldsToRemove())) {
        builder.setStandardResultFieldsToRemove(
                new ArrayList<StandardResultField>(contract.getStandardResultFieldsToRemove()));
    }
    if (CollectionUtils.isNotEmpty(contract.getAdditionalAttributeFields())) {
        for (RemotableAttributeFieldContract attributeField : contract.getAdditionalAttributeFields()) {
            builder.getAdditionalAttributeFields().add(RemotableAttributeField.Builder.create(attributeField));
        }
    }
    return builder;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:30,代码来源:DocumentSearchResultSetConfiguration.java

示例2: getAdditionalAttributeFields

import org.kuali.rice.core.api.uif.RemotableAttributeFieldContract; //导入依赖的package包/类
/**
 * Gets attribute field definitions for additional attributes that may be displayed in the result set.  This simply
 * defines the attribute field definition for each of these fields, their inclusion here does not necessarily mean
 * they will be visible in the result set.  This is controlled primarily by {@link #getCustomFieldNamesToAdd()}.
 *
 * @return a list containing additional attribute fields to define for use when constructing the result set, this
 * method can return a null or empty list if there are no additional attribute fields to define
 */
List<? extends RemotableAttributeFieldContract> getAdditionalAttributeFields();
 
开发者ID:kuali,项目名称:kc-rice,代码行数:10,代码来源:DocumentSearchResultSetConfigurationContract.java

示例3: getAttributeField

import org.kuali.rice.core.api.uif.RemotableAttributeFieldContract; //导入依赖的package包/类
/**
 * Gets the attribute field definition.  Cannot be null.
 *
 * @return the field
 */
RemotableAttributeFieldContract getAttributeField();
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KimAttributeFieldContract.java


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