本文整理匯總了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);
}