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


Java KimApiServiceLocator.getPersonService方法代码示例

本文整理汇总了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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:MaintenanceDocumentRuleBase.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:PersonImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:10,代码来源:UserUtils.java

示例4: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
protected PersonService getPersonService() {
	if ( personService == null ) {
		personService = KimApiServiceLocator.getPersonService();
	}
	return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:KimModuleService.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:73,代码来源:UserControl.java

示例6: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected static PersonService getPersonService() {
    return KimApiServiceLocator.getPersonService();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:DataObjectAuthorizerBase.java

示例7: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
    if (personService == null) {
        personService = KimApiServiceLocator.getPersonService();
    }
    return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentRuleBase.java

示例8: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
    if ( personService == null ) {
        personService = KimApiServiceLocator.getPersonService();
    }
    return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:PessimisticLockServiceImpl.java

示例9: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
    if (personService == null) {
        personService = KimApiServiceLocator.getPersonService();
    }
    return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:DocumentServiceImpl.java

示例10: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
	if (personService == null) {
		personService = KimApiServiceLocator.getPersonService();
	}
	return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KualiMaintainableImpl.java

示例11: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
    return personService != null ? personService : (personService = KimApiServiceLocator.getPersonService());
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:BusinessObjectServiceImpl.java

示例12: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected PersonService getPersonService() {
    if ( personService == null ) {
        personService = KimApiServiceLocator.getPersonService();
    }
    return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KimRemoteModuleService.java

示例13: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
    return KimApiServiceLocator.getPersonService();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:4,代码来源:PersonLookupableImpl.java

示例14: getPersonService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public PersonService getPersonService() {
	if ( personService == null ) {
		personService = KimApiServiceLocator.getPersonService();
	}
	return personService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:PersonInquirableImpl.java


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