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


Java PersonDocumentPhone.setPhoneNumber方法代码示例

本文整理汇总了Java中org.kuali.rice.kim.bo.ui.PersonDocumentPhone.setPhoneNumber方法的典型用法代码示例。如果您正苦于以下问题:Java PersonDocumentPhone.setPhoneNumber方法的具体用法?Java PersonDocumentPhone.setPhoneNumber怎么用?Java PersonDocumentPhone.setPhoneNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.kim.bo.ui.PersonDocumentPhone的用法示例。


在下文中一共展示了PersonDocumentPhone.setPhoneNumber方法的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;

}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:29,代码来源:LdapUiDocumentServiceImpl.java

示例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;

}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:28,代码来源:UiDocumentServiceImpl.java

示例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;

}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:UiDocumentServiceImplTest.java


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