本文整理汇总了Java中org.kuali.rice.kim.api.identity.EntityUtils.getDefaultItem方法的典型用法代码示例。如果您正苦于以下问题:Java EntityUtils.getDefaultItem方法的具体用法?Java EntityUtils.getDefaultItem怎么用?Java EntityUtils.getDefaultItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kim.api.identity.EntityUtils
的用法示例。
在下文中一共展示了EntityUtils.getDefaultItem方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EntityDefault
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
public EntityDefault(Builder builder) {
this.entityId = builder.entityId;
this.name = builder.getName() == null ? null : builder.getName().build();
this.principals = new ArrayList<Principal>();
if (CollectionUtils.isNotEmpty(builder.getPrincipals())) {
for (Principal.Builder principal : builder.getPrincipals()) {
this.principals.add(principal.build());
}
}
this.entityTypeContactInfos = new ArrayList<EntityTypeContactInfoDefault>();
if (CollectionUtils.isNotEmpty(builder.getEntityTypeContactInfos())) {
for (EntityTypeContactInfoDefault.Builder entityType : builder.getEntityTypeContactInfos()) {
this.entityTypeContactInfos.add(entityType.build());
}
}
this.affiliations = new ArrayList<EntityAffiliation>();
if (CollectionUtils.isNotEmpty(builder.getAffiliations())) {
for (EntityAffiliation.Builder affiliation : builder.getAffiliations()) {
this.affiliations.add(affiliation.build());
}
}
if (builder.getDefaultAffiliation() == null
&& CollectionUtils.isNotEmpty(this.affiliations)) {
this.defaultAffiliation = EntityUtils.getDefaultItem(this.affiliations);
} else {
this.defaultAffiliation = builder.getDefaultAffiliation() == null ? null : builder.getDefaultAffiliation().build();
}
this.employment = builder.getEmployment() == null ? null : builder.getEmployment().build();
this.externalIdentifiers = new ArrayList<EntityExternalIdentifier>();
if (CollectionUtils.isNotEmpty(builder.getExternalIdentifiers())) {
for (EntityExternalIdentifier.Builder externalId : builder.getExternalIdentifiers()) {
this.externalIdentifiers.add(externalId.build());
}
}
this.privacyPreferences = builder.getPrivacyPreferences() == null ? null : builder.getPrivacyPreferences().build();
this.active = builder.isActive();
}
示例2: getDefaultAddress
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityAddress.Builder getDefaultAddress() {
return EntityUtils.getDefaultItem(this.addresses);
}
示例3: getDefaultEmailAddress
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityEmail.Builder getDefaultEmailAddress() {
return EntityUtils.getDefaultItem(this.emailAddresses);
}
示例4: getDefaultPhoneNumber
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityPhone.Builder getDefaultPhoneNumber() {
return EntityUtils.getDefaultItem(this.phoneNumbers);
}
示例5: getDefaultAffiliation
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityAffiliationBo getDefaultAffiliation() {
return EntityUtils.getDefaultItem(this.affiliations);
}
示例6: getDefaultName
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityNameContract getDefaultName() {
return EntityUtils.getDefaultItem(this.names);
}
示例7: getDefaultAddress
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityAddressBo getDefaultAddress() {
return EntityUtils.getDefaultItem(this.addresses);
}
示例8: getDefaultEmailAddress
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityEmailBo getDefaultEmailAddress() {
return EntityUtils.getDefaultItem(this.emailAddresses);
}
示例9: getDefaultPhoneNumber
import org.kuali.rice.kim.api.identity.EntityUtils; //导入方法依赖的package包/类
@Override
public EntityPhoneBo getDefaultPhoneNumber() {
return EntityUtils.getDefaultItem(this.phoneNumbers);
}