當前位置: 首頁>>代碼示例>>Java>>正文


Java PersonDocumentPhone類代碼示例

本文整理匯總了Java中org.kuali.rice.kim.bo.ui.PersonDocumentPhone的典型用法代碼示例。如果您正苦於以下問題:Java PersonDocumentPhone類的具體用法?Java PersonDocumentPhone怎麽用?Java PersonDocumentPhone使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PersonDocumentPhone類屬於org.kuali.rice.kim.bo.ui包,在下文中一共展示了PersonDocumentPhone類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: testLoadToPersonDocument

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
@Test
public void testLoadToPersonDocument() {

	Entity entity = KimApiServiceLocator.getIdentityService().getEntity("entity123eId");
	assertNotNull(entity);
	IdentityManagementPersonDocument personDoc = new IdentityManagementPersonDocument();
	uiDocumentService.loadEntityToPersonDoc(personDoc, "entity123pId");
       EntityTypeContactInfo entityType = entity.getEntityTypeContactInfos().get(0);
       personDoc.getExternalIdentifiers();
	assertAddressTrue((PersonDocumentAddress)personDoc.getAddrs().get(0), entityType.getAddresses().get(0));
	assertPhoneTrue((PersonDocumentPhone)personDoc.getPhones().get(0), entityType.getPhoneNumbers().get(0));
	assertEmailTrue((PersonDocumentEmail)personDoc.getEmails().get(0), entityType.getEmailAddresses().get(0));
	assertNameTrue((PersonDocumentName)personDoc.getNames().get(0), entity.getNames().get(0));
	//assertPrincipalTrue(personDoc, identity.getPrincipals().get(0));
	assertAffiliationTrue(personDoc.getAffiliations().get(0), entity.getAffiliations().get(0));
	assertEmpInfoTrue(personDoc.getAffiliations().get(0).getEmpInfos().get(0), entity.getEmploymentInformation().get(0));

}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:19,代碼來源:UiDocumentServiceImplTest.java

示例2: 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

示例3: IdentityManagementPersonDocumentForm

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public IdentityManagementPersonDocumentForm() {
    super();
    //this.registerEditableProperty("methodToCall.approve.x");
    this.setNewAffln(new PersonDocumentAffiliation());
    this.setNewAddress(new PersonDocumentAddress());
    this.setNewEmpInfo(new PersonDocumentEmploymentInfo());
    this.setNewName(new PersonDocumentName());
    this.setNewPhone(new PersonDocumentPhone());
    this.setNewEmail(new PersonDocumentEmail());
    this.setNewGroup(new PersonDocumentGroup());
    this.setNewRole(new PersonDocumentRole());
    this.setNewDelegationMember(new RoleDocumentDelegationMember());
    setFormatterType("document.groups.activeFromDate", DateDisplayTimestampObjectFormatter.class);
    setFormatterType("document.groups.activeToDate", DateDisplayTimestampObjectFormatter.class);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:16,代碼來源:IdentityManagementPersonDocumentForm.java

示例4: addPhone

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public ActionForward addPhone(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    IdentityManagementPersonDocumentForm personDocumentForm = (IdentityManagementPersonDocumentForm) form;
    PersonDocumentPhone newPhone = personDocumentForm.getNewPhone();
    newPhone.setDocumentNumber(personDocumentForm.getDocument().getDocumentNumber());
    personDocumentForm.getPersonDocument().getPhones().add(newPhone);
    personDocumentForm.setNewPhone(new PersonDocumentPhone());        
    return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:9,代碼來源:IdentityManagementPersonDocumentAction.java

示例5: setupPhone

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
protected void setupPhone(IdentityManagementPersonDocument identityManagementPersonDocument, EntityTypeContactInfoBo entityType, List<EntityPhoneBo> origPhones) {
   	if ( !identityManagementPersonDocument.getPrivacy().isSuppressPhone() || canOverrideEntityPrivacyPreferences(getInitiatorPrincipalId(identityManagementPersonDocument), identityManagementPersonDocument.getPrincipalId()) ) {
		List<EntityPhoneBo> entityPhones = new ArrayList<EntityPhoneBo>();
		if(CollectionUtils.isNotEmpty(identityManagementPersonDocument.getPhones())){
			for (PersonDocumentPhone phone : identityManagementPersonDocument.getPhones()) {
				EntityPhoneBo entityPhone = new EntityPhoneBo();
				entityPhone.setPhoneTypeCode(phone.getPhoneTypeCode());
                   if (phone.getPhoneType() != null) {
                       entityPhone.setPhoneType(phone.getPhoneType());
                   } else {
                       if (StringUtils.isNotEmpty(phone.getPhoneTypeCode())) {
                           entityPhone.setPhoneType(EntityPhoneTypeBo
                                   .from(getIdentityService().getAddressType(phone.getPhoneTypeCode())));
                       }
                   }
				entityPhone.setEntityId(identityManagementPersonDocument.getEntityId());
				entityPhone.setId(phone.getEntityPhoneId());
				entityPhone.setEntityTypeCode(entityType.getEntityTypeCode());
				entityPhone.setPhoneNumber(phone.getPhoneNumber());
				entityPhone.setCountryCode(phone.getCountryCode());
				entityPhone.setExtensionNumber(phone.getExtensionNumber());
				entityPhone.setActive(phone.isActive());
				entityPhone.setDefaultValue(phone.isDflt());
				if(ObjectUtils.isNotNull(origPhones)){
					for (EntityPhoneContract origPhone : origPhones) {
						if (origPhone.getId()!=null && StringUtils.equals(origPhone.getId(), entityPhone.getId())) {
							entityPhone.setVersionNumber(origPhone.getVersionNumber());
						}
					}
				}
				entityPhone.setId(phone.getEntityPhoneId());
				entityPhones.add(entityPhone);
			}
		}
		entityType.setPhoneNumbers(entityPhones);
   	}
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:38,代碼來源:UiDocumentServiceImpl.java

示例6: 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

示例7: IdentityManagementPersonDocument

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public IdentityManagementPersonDocument() {
    affiliations = new ArrayList<PersonDocumentAffiliation>();
    citizenships = new ArrayList<PersonDocumentCitizenship>();
    // employmentInformations = new ArrayList<DocEmploymentInfo>();                       
    names = new ArrayList<PersonDocumentName>();
    addrs = new ArrayList<PersonDocumentAddress>();
    phones = new ArrayList<PersonDocumentPhone>();
    emails = new ArrayList<PersonDocumentEmail>();
    groups = new ArrayList<PersonDocumentGroup>();
    roles = new ArrayList<PersonDocumentRole>();
    privacy = new PersonDocumentPrivacy();
    this.active = true;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:14,代碼來源:IdentityManagementPersonDocument.java

示例8: 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

示例9: assertPhoneTrue

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
private void assertPhoneTrue(PersonDocumentPhone docPhone, EntityPhoneContract entityPhone) {
	assertEquals(docPhone.getEntityPhoneId(), entityPhone.getId());
	assertEquals(docPhone.getCountryCode(), entityPhone.getCountryCode());
	assertEquals(docPhone.getPhoneNumber(), entityPhone.getPhoneNumber());
	assertEquals(docPhone.getExtensionNumber(), entityPhone.getExtensionNumber());
	assertEquals(docPhone.getPhoneTypeCode(), entityPhone.getPhoneType().getCode());
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:8,代碼來源:UiDocumentServiceImplTest.java

示例10: setupPhone

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
protected void setupPhone(IdentityManagementPersonDocument identityManagementPersonDocument, EntityTypeContactInfoBo entityType, List<EntityPhoneBo> origPhones) {
   	if ( !identityManagementPersonDocument.getPrivacy().isSuppressPhone() || canOverrideEntityPrivacyPreferences(getInitiatorPrincipalId(identityManagementPersonDocument), identityManagementPersonDocument.getPrincipalId()) ) {
		List<EntityPhoneBo> entityPhones = new ArrayList<EntityPhoneBo>();
		if(CollectionUtils.isNotEmpty(identityManagementPersonDocument.getPhones())){
			for (PersonDocumentPhone phone : identityManagementPersonDocument.getPhones()) {
				EntityPhoneBo entityPhone = new EntityPhoneBo();
				entityPhone.setPhoneTypeCode(phone.getPhoneTypeCode());
                   if (phone.getPhoneType() != null) {
                       entityPhone.setPhoneType(phone.getPhoneType());
                   } else {
                       if (StringUtils.isNotEmpty(phone.getPhoneTypeCode())) {
                           entityPhone.setPhoneType(EntityPhoneTypeBo
                                   .from(getIdentityService().getAddressType(phone.getPhoneTypeCode())));
                       }
                   }
				entityPhone.setEntityId(identityManagementPersonDocument.getEntityId());
				entityPhone.setId(phone.getEntityPhoneId());
				entityPhone.setEntityTypeCode(entityType.getEntityTypeCode());
				entityPhone.setPhoneNumber(phone.getPhoneNumber());
				entityPhone.setCountryCode(phone.getCountryCode());
				entityPhone.setExtension(phone.getExtension());
				entityPhone.setExtensionNumber(phone.getExtensionNumber());
				entityPhone.setActive(phone.isActive());
				entityPhone.setDefaultValue(phone.isDflt());
				if(ObjectUtils.isNotNull(origPhones)){
					for (EntityPhoneContract origPhone : origPhones) {
						if (origPhone.getId()!=null && StringUtils.equals(origPhone.getId(), entityPhone.getId())) {
							entityPhone.setVersionNumber(origPhone.getVersionNumber());
						}
					}
				}
				entityPhone.setId(phone.getEntityPhoneId());
				entityPhones.add(entityPhone);
			}
		}
		entityType.setPhoneNumbers(entityPhones);
   	}
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:39,代碼來源:UiDocumentServiceImpl.java

示例11: IdentityManagementPersonDocument

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public IdentityManagementPersonDocument() {
    affiliations = new ArrayList<PersonDocumentAffiliation>();
    citizenships = new ArrayList<PersonDocumentCitizenship>();
    // employmentInformations = new ArrayList<DocEmploymentInfo>();
    names = new ArrayList<PersonDocumentName>();
    addrs = new ArrayList<PersonDocumentAddress>();
    phones = new ArrayList<PersonDocumentPhone>();
    emails = new ArrayList<PersonDocumentEmail>();
    groups = new ArrayList<PersonDocumentGroup>();
    roles = new ArrayList<PersonDocumentRole>();
    privacy = new PersonDocumentPrivacy();
    this.active = true;
    // privacy.setDocumentNumber(documentNumber);
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:15,代碼來源:IdentityManagementPersonDocument.java

示例12: getNewPhone

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public PersonDocumentPhone getNewPhone() {
	return this.newPhone;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:4,代碼來源:IdentityManagementPersonDocumentForm.java

示例13: setNewPhone

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public void setNewPhone(PersonDocumentPhone newPhone) {
	this.newPhone = newPhone;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:4,代碼來源:IdentityManagementPersonDocumentForm.java

示例14: getPhones

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public List<PersonDocumentPhone> getPhones() {
    return this.phones;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:4,代碼來源:IdentityManagementPersonDocument.java

示例15: setPhones

import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //導入依賴的package包/類
public void setPhones(List<PersonDocumentPhone> phones) {
    this.phones = phones;
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:4,代碼來源:IdentityManagementPersonDocument.java


注:本文中的org.kuali.rice.kim.bo.ui.PersonDocumentPhone類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。