本文整理汇总了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));
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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());
}
示例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);
}
}
示例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);
}
示例12: getNewPhone
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入依赖的package包/类
public PersonDocumentPhone getNewPhone() {
return this.newPhone;
}
示例13: setNewPhone
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入依赖的package包/类
public void setNewPhone(PersonDocumentPhone newPhone) {
this.newPhone = newPhone;
}
示例14: getPhones
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入依赖的package包/类
public List<PersonDocumentPhone> getPhones() {
return this.phones;
}
示例15: setPhones
import org.kuali.rice.kim.bo.ui.PersonDocumentPhone; //导入依赖的package包/类
public void setPhones(List<PersonDocumentPhone> phones) {
this.phones = phones;
}