本文整理汇总了Java中org.kuali.rice.kim.bo.ui.PersonDocumentPhone.setActive方法的典型用法代码示例。如果您正苦于以下问题:Java PersonDocumentPhone.setActive方法的具体用法?Java PersonDocumentPhone.setActive怎么用?Java PersonDocumentPhone.setActive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kim.bo.ui.PersonDocumentPhone
的用法示例。
在下文中一共展示了PersonDocumentPhone.setActive方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadPhones
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入方法依赖的package包/类
@Override
protected List<PersonDocumentPhone> loadPhones(IdentityManagementPersonDocument identityManagementPersonDocument, String principalId, List<EntityPhone> entityPhones, boolean suppressDisplay ) {
List<PersonDocumentPhone> docPhones = new ArrayList<PersonDocumentPhone>();
if(KRADUtils.isNotNull(entityPhones)){
for (EntityPhone phone: entityPhones) {
if(phone.isActive()){
PersonDocumentPhone docPhone = new PersonDocumentPhone();
if (phone.getPhoneType() != null) {
docPhone.setPhoneTypeCode(phone.getPhoneType().getCode());
}
//docPhone.setPhoneType(((KimEntityPhoneImpl)phone).getPhoneType());
docPhone.setEntityTypeCode(phone.getEntityTypeCode());
//We do not need to check the privacy setting here - The UI should care of it
docPhone.setPhoneNumber(phone.getPhoneNumberUnmasked());
docPhone.setCountryCode(phone.getCountryCodeUnmasked());
docPhone.setExtensionNumber(phone.getExtensionNumberUnmasked());
docPhone.setActive(phone.isActive());
docPhone.setDflt(phone.isDefaultValue());
docPhone.setEntityPhoneId(phone.getId());
docPhone.setEdit(true);
docPhones.add(docPhone);
}
}
}
return docPhones;
}
示例2: loadPhones
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入方法依赖的package包/类
protected List<PersonDocumentPhone> loadPhones(IdentityManagementPersonDocument identityManagementPersonDocument, String principalId, List<EntityPhone> entityPhones, boolean suppressDisplay ) {
List<PersonDocumentPhone> docPhones = new ArrayList<PersonDocumentPhone>();
if(ObjectUtils.isNotNull(entityPhones)){
for (EntityPhone phone: entityPhones) {
if(phone.isActive()){
PersonDocumentPhone docPhone = new PersonDocumentPhone();
if (phone.getPhoneType() != null) {
docPhone.setPhoneTypeCode(phone.getPhoneType().getCode());
}
//docPhone.setPhoneType(((KimEntityPhoneImpl)phone).getPhoneType());
docPhone.setEntityTypeCode(phone.getEntityTypeCode());
//We do not need to check the privacy setting here - The UI should care of it
docPhone.setPhoneNumber(phone.getPhoneNumberUnmasked());
docPhone.setCountryCode(phone.getCountryCodeUnmasked());
docPhone.setExtensionNumber(phone.getExtensionNumberUnmasked());
docPhone.setActive(phone.isActive());
docPhone.setDflt(phone.isDefaultValue());
docPhone.setEntityPhoneId(phone.getId());
docPhone.setEdit(true);
docPhones.add(docPhone);
}
}
}
return docPhones;
}
示例3: initPhones
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入方法依赖的package包/类
private List<PersonDocumentPhone> initPhones() {
List<PersonDocumentPhone> docPhones = new ArrayList<PersonDocumentPhone>();
PersonDocumentPhone docPhone = new PersonDocumentPhone();
docPhone.setPhoneTypeCode("HM");
docPhone.setPhoneType(EntityPhoneTypeBo.from(KimApiServiceLocator.getIdentityService().getPhoneType("HM")));
docPhone.setEntityPhoneId("phoneId123");
docPhone.setEntityTypeCode("PERSON");
docPhone.setPhoneNumber("123-45'6789");
docPhone.setExtensionNumber("123");
docPhone.setActive(true);
docPhone.setDflt(true);
docPhones.add(docPhone);
return docPhones;
}