本文整理汇总了Java中org.kuali.rice.kim.api.services.KimApiServiceLocator.getPersonService方法的典型用法代码示例。如果您正苦于以下问题:Java KimApiServiceLocator.getPersonService方法的具体用法?Java KimApiServiceLocator.getPersonService怎么用?Java KimApiServiceLocator.getPersonService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kim.api.services.KimApiServiceLocator
的用法示例。
在下文中一共展示了KimApiServiceLocator.getPersonService方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
@Override
public PersonService getPersonService() {
if (personService == null) {
this.personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例2: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
/**
* @return the personService
*/
@SuppressWarnings("unchecked")
public static PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例3: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
/**
* @return the personService
*/
public static PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例4: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
protected PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例5: performApplyModel
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performApplyModel(Object model, LifecycleElement parent) {
super.performApplyModel(model, parent);
if (!(parent instanceof InputField)) {
return;
}
InputField field = (InputField) parent;
field.getAdditionalHiddenPropertyNames().add(principalIdPropertyName);
if (isRender() && !isHidden() && !Boolean.TRUE.equals(getReadOnly())) {
ViewLifecycle.getViewPostMetadata().addAccessibleBindingPath(principalIdPropertyName);
}
if (!Boolean.TRUE.equals(field.getReadOnly())) {
// add information fields
if (StringUtils.isNotBlank(personNamePropertyName)) {
field.getPropertyNamesForAdditionalDisplay().add(personNamePropertyName);
} else {
field.getPropertyNamesForAdditionalDisplay().add(
personObjectPropertyName + "." + KimConstants.AttributeConstants.NAME);
}
// setup script to clear id field when name is modified
String idPropertyPath = field.getBindingInfo().getPropertyAdjustedBindingPath(principalIdPropertyName);
String onChangeScript = UifConstants.JsFunctions.SET_VALUE
+ "('"
+ ScriptUtils.escapeName(idPropertyPath)
+ "','');";
if (StringUtils.isNotBlank(getOnChangeScript())) {
onChangeScript = getOnChangeScript() + onChangeScript;
}
setOnChangeScript(onChangeScript);
}
if (Boolean.TRUE.equals(field.getReadOnly()) && StringUtils.isBlank(field.getReadOnlyDisplaySuffixPropertyName())) {
if (StringUtils.isNotBlank(personNamePropertyName)) {
field.setReadOnlyDisplaySuffixPropertyName(personNamePropertyName);
} else {
field.setReadOnlyDisplaySuffixPropertyName(
personObjectPropertyName + "." + KimConstants.AttributeConstants.NAME);
}
}
// setup field query for displaying name
AttributeQuery attributeQuery = new AttributeQuery();
MethodInvokerConfig methodInvokerConfig = new MethodInvokerConfig();
PersonService personService = KimApiServiceLocator.getPersonService();
methodInvokerConfig.setTargetObject(personService);
attributeQuery.setQueryMethodInvokerConfig(methodInvokerConfig);
attributeQuery.setQueryMethodToCall("getPersonByPrincipalName");
attributeQuery.getQueryMethodArgumentFieldList().add(field.getPropertyName());
attributeQuery.getReturnFieldMapping().put(KimConstants.AttributeConstants.PRINCIPAL_ID,
principalIdPropertyName);
if (StringUtils.isNotBlank(personNamePropertyName)) {
attributeQuery.getReturnFieldMapping().put(KimConstants.AttributeConstants.NAME, personNamePropertyName);
} else {
attributeQuery.getReturnFieldMapping().put(KimConstants.AttributeConstants.NAME,
personObjectPropertyName + "." + KimConstants.AttributeConstants.NAME);
}
field.setAttributeQuery(attributeQuery);
buildUserQuickfinder(model, field);
}
示例6: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected static PersonService getPersonService() {
return KimApiServiceLocator.getPersonService();
}
示例7: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
if (personService == null) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例8: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例9: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
if (personService == null) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例10: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
if (personService == null) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例11: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
return personService != null ? personService : (personService = KimApiServiceLocator.getPersonService());
}
示例12: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}
示例13: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
return KimApiServiceLocator.getPersonService();
}
示例14: getPersonService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
if ( personService == null ) {
personService = KimApiServiceLocator.getPersonService();
}
return personService;
}