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


Java KimApiServiceLocator.getResponsibilityService方法代码示例

本文整理汇总了Java中org.kuali.rice.kim.api.services.KimApiServiceLocator.getResponsibilityService方法的典型用法代码示例。如果您正苦于以下问题:Java KimApiServiceLocator.getResponsibilityService方法的具体用法?Java KimApiServiceLocator.getResponsibilityService怎么用?Java KimApiServiceLocator.getResponsibilityService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.kim.api.services.KimApiServiceLocator的用法示例。


在下文中一共展示了KimApiServiceLocator.getResponsibilityService方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: isResponsibilityTemplateAssignedToDynamicRole

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
/**
 * Used for a caching condition to determine if a responsibility template is assigned to a derived role.
 *
 * @param namespaceCode namespaceCode of permission
 * @param responsibilityTemplateName name of responsibility template
 *
 * @return true if assigned to a derived role.
 */
public static boolean isResponsibilityTemplateAssignedToDynamicRole(String namespaceCode,
        String responsibilityTemplateName) {
    if (StringUtils.isBlank(namespaceCode) || StringUtils.isBlank(responsibilityTemplateName)) {
        return false;
    }
    ResponsibilityService respService = KimApiServiceLocator.getResponsibilityService();
    List<Responsibility> responsibilities = KimApiServiceLocator.getResponsibilityService().findResponsibilitiesByTemplate(namespaceCode, responsibilityTemplateName);
    List<String> roleIds = new ArrayList<String>();
    for (Responsibility resp : responsibilities) {
        roleIds.addAll(respService.getRoleIdsForResponsibility(resp.getId()));
    }

    return isDynamicRoleMembership(roleIds);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:23,代码来源:KimCacheUtils.java

示例2: getResponsibilityService

import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
/**
 * @return the responsibilityService
 */
public ResponsibilityService getResponsibilityService() {
	if ( responsibilityService == null ) {
		responsibilityService = KimApiServiceLocator.getResponsibilityService();
	}
	return responsibilityService;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:10,代码来源:DocumentConfigurationViewAction.java

示例3: getResponsibilityService

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

示例4: getResponsibilityService

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

示例5: getResponsibilityService

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

示例6: getResponsibilityService

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


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