本文整理汇总了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);
}
示例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;
}
示例3: getResponsibilityService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected ResponsibilityService getResponsibilityService() {
if ( responsibilityService == null ) {
responsibilityService = KimApiServiceLocator.getResponsibilityService();
}
return responsibilityService;
}
示例4: getResponsibilityService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
protected ResponsibilityService getResponsibilityService() {
if ( responsibilityService == null ) {
responsibilityService = KimApiServiceLocator.getResponsibilityService();
}
return responsibilityService;
}
示例5: getResponsibilityService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public ResponsibilityService getResponsibilityService() {
if (responsibilityService == null) {
responsibilityService = KimApiServiceLocator.getResponsibilityService();
}
return responsibilityService;
}
示例6: getResponsibilityService
import org.kuali.rice.kim.api.services.KimApiServiceLocator; //导入方法依赖的package包/类
public ResponsibilityService getResponsibilityService() {
if ( responsibilityService == null ) {
responsibilityService = KimApiServiceLocator.getResponsibilityService();
}
return responsibilityService;
}