本文整理汇总了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;
}
示例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();
示例3: getAttributeField
import org.kuali.rice.core.api.uif.RemotableAttributeFieldContract; //导入依赖的package包/类
/**
* Gets the attribute field definition. Cannot be null.
*
* @return the field
*/
RemotableAttributeFieldContract getAttributeField();