本文整理匯總了Java中org.kuali.rice.kim.bo.ui.PersonDocumentName.setMiddleName方法的典型用法代碼示例。如果您正苦於以下問題:Java PersonDocumentName.setMiddleName方法的具體用法?Java PersonDocumentName.setMiddleName怎麽用?Java PersonDocumentName.setMiddleName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.kuali.rice.kim.bo.ui.PersonDocumentName
的用法示例。
在下文中一共展示了PersonDocumentName.setMiddleName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initNames
import org.kuali.rice.kim.bo.ui.PersonDocumentName; //導入方法依賴的package包/類
private List<PersonDocumentName> initNames() {
List<PersonDocumentName> docNames = new ArrayList<PersonDocumentName>();
PersonDocumentName docName = new PersonDocumentName();
docName.setEntityNameId("nameId123");
docName.setNameCode("PRFR");
docName.setEntityNameType(
EntityNameTypeBo.from(KimApiServiceLocator.getIdentityService().getNameType("PRFR")));
docName.setFirstName("John");
docName.setLastName("Doe");
docName.setMiddleName("M");
docName.setNamePrefix("Mr");
docName.setNameSuffix("Jr");
docName.setActive(true);
docName.setDflt(true);
docNames.add(docName);
return docNames;
}
示例2: loadNames
import org.kuali.rice.kim.bo.ui.PersonDocumentName; //導入方法依賴的package包/類
@Override
protected List<PersonDocumentName> loadNames( IdentityManagementPersonDocument personDoc, String principalId, List <EntityName> names, boolean suppressDisplay ) {
List<PersonDocumentName> docNames = new ArrayList<PersonDocumentName>();
if(KRADUtils.isNotNull(names)){
for (EntityName name: names) {
if(name.isActive()){
PersonDocumentName docName = new PersonDocumentName();
if (name.getNameType() != null) {
docName.setNameCode(name.getNameType().getCode());
}
//We do not need to check the privacy setting here - The UI should care of it
docName.setFirstName(name.getFirstNameUnmasked());
docName.setLastName(name.getLastNameUnmasked());
docName.setMiddleName(name.getMiddleNameUnmasked());
docName.setNamePrefix(name.getNamePrefixUnmasked());
docName.setNameSuffix(name.getNameSuffixUnmasked());
docName.setActive(name.isActive());
docName.setDflt(name.isDefaultValue());
docName.setEdit(true);
docName.setEntityNameId(name.getId());
docNames.add(docName);
}
}
}
return docNames;
}
示例3: loadNames
import org.kuali.rice.kim.bo.ui.PersonDocumentName; //導入方法依賴的package包/類
protected List<PersonDocumentName> loadNames( IdentityManagementPersonDocument personDoc, String principalId, List <EntityName> names, boolean suppressDisplay ) {
List<PersonDocumentName> docNames = new ArrayList<PersonDocumentName>();
if(ObjectUtils.isNotNull(names)){
for (EntityName name: names) {
if(name.isActive()){
PersonDocumentName docName = new PersonDocumentName();
if (name.getNameType() != null) {
docName.setNameCode(name.getNameType().getCode());
}
//We do not need to check the privacy setting here - The UI should care of it
docName.setFirstName(name.getFirstNameUnmasked());
docName.setLastName(name.getLastNameUnmasked());
docName.setMiddleName(name.getMiddleNameUnmasked());
docName.setNamePrefix(name.getNamePrefixUnmasked());
docName.setNameSuffix(name.getNameSuffixUnmasked());
docName.setActive(name.isActive());
docName.setDflt(name.isDefaultValue());
docName.setEdit(true);
docName.setEntityNameId(name.getId());
docNames.add(docName);
}
}
}
return docNames;
}