`

利用UME API检查USER,ROLE,GROUPS对象是否存在及三者关系

阅读更多

User Management Engine (UME)  Locate the document in its SAP Library structure

The user management engine (UME) offers a comprehensive API to manage user, roles, groups and the associates access control lists (ACLs). The implementation is based on the Portal Content Directory (PCD) and inherits some of its characteristics.

The UME API works with persisted data and the data has to be consistent on different portal nodes. This makes calls to the UME API rather complex. Performance often depends on the structure that is used to represent the data and is also affected by the cluster-communication to synchronize the collaborating nodes.

Checking for Existence of UME Entities

Currently the UME API has no method to check if a user, role or a group is known in the system. The straightforward workaround to get the corresponding IUser, IRole or IGroup object cannot be recommended because this will also load the associated attributes.

Recommended code to search for a user:

  boolean existsUserByUniqueName(final String uname) throws UMException {
     
final IUserFactory userFactory = UMFactory.getUserFactory();
     
final IUserSearchFilter filter = userFactory.getUserSearchFilter();
     filter.setUniqueName(uname, ISearchAttribute.EQUALS_OPERATOR, 
false);
     
return userFactory.searchUsers(filter).hasNext();
  }

The code also works for roles and groups simply by replacing the searchUsers() method to searchGroup() or searchRole().

User-Role Assignment

The internal representation of the assignment between users and groups has a significant influence on the performance of the UME. User and role are in a bidirectional relationship and can be associated in two directions. Due to the internal data management of the UME, links from the role to the user (add user to role) are handled faster when multiple users have to be processed.

Example of a not recommended implementation:

     UMFactory rf = UMFactory.getRoleFactory();
     rf.addUserToRole(
"petermueller""role1");
     rf.addUserToRole(
"annefranklin""role1");
     rf.addUserToRole(
"norasmith""role1");

 

Improve performance and save memory with this approach:

     UMFactory rf = UMFactory.getRoleFactory();
     IRole role;
     role = rf.getMutableRole(
"role1");
     role.add(
"petermueller");
     role.add(
"norasmith");
     role.add(
"annefranklin");
     
role.save();
     role.commit();

 

See SAP Note 746682 (Performance problems when assigning roles/groups via UME API).

User-Group Assignment

User group assignment is similar to user-role assignment.

See SAP Note 746682.

 

注:原文:http://help.sap.com/saphelp_em70/helpdata/en/7d/003c41325fa831e10000000a1550b0/content.htm

 

分享到:
评论

相关推荐

    休ume

    它们仅赋予他们不同的关系,联系和持续时间(休ume,17401,1,2,6.19,20 p。49)。 本文的首要目的是解释休ume“相对观念”的含义。 第二个目的是解释它们在休ume本体论中的重要性,即他对存在的本体的理解。 第...

    休ume,牛顿和马兰布其因果关系

    休ume,牛顿和马累布兰奇被认为是一对奇怪的夫妇,他们相信以前的亚里士多德和笛卡尔对因果关系的分析是不充分的。 但他们提供的纠正措施有所不同,以缓解这些早期的误解。 Malebranche著名地呼吁上帝证实他的偶发...

    ufshci-ume

    UFSHCI与统一内存扩展(Unified Memory Extension,UME)相关联,这表明UFSHCI规范可能包含了对统一内存扩展技术的支持。统一内存扩展是一种内存管理技术,它允许系统更高效地分配和管理内存资源,从而提升性能和...

    UME DHCP服务功能操作指导手册.docx

    《UME DHCP服务功能操作指导手册》是一份详细阐述如何配置和管理UME(Unified Management Environment)中的DHCP(Dynamic Host Configuration Protocol)服务的手册。DHCP是网络设备自动获取IP地址、子网掩码、默认...

    awt.rar_UME_awt_io

    综上所述,"awt.rar_UME_awt_io"项目涵盖了Java GUI编程的核心要素,包括基础的AWT组件、事件处理、文件I/O操作,以及可能的第三方库(UME)的集成,提供了用户友好的文本编辑功能。通过深入理解和实践这些知识点,...

    UME DHCP服务功能操作指导手册.pdf

    《UME DHCP服务功能操作指导手册》是一份详细阐述如何配置和管理UME(Unified Mobile Environment)中的DHCP(Dynamic Host Configuration Protocol)服务的手册。这份文档主要面向IT专业人员,为他们提供了解决方案...

    5G网管操作与问题汇总.docx

    - **查看数据库的容量信息:** 包括存储节点状态,查看UME的数据库节点,检查数据容量。 **Smart配置操作指南:** - **选择站点:** 可以根据需求单独选择站点、批量选择或全选。 - **查询与核查:** 对现网区数据...

    UME批量DV修改指导书.docx

    UME批量DV修改指导书

    UME2-5.0

    8. **Entity Framework**:ORM(对象关系映射)工具,简化了数据库操作,使得开发者可以用面向对象的方式处理数据库。 9. **Unit Testing**:C#支持如MSTest、NUnit和xUnit等单元测试框架,确保代码质量。 10. **...

    大地电磁反演-精英选择改进.zip_UME_magnetotelluric_改进_电阻率_遗传算法 反演

    它利用自然存在的电磁场变化来测量地下的电阻率分布,从而揭示地质构造的特征。在本资料中,重点讨论的是“大地电磁反演”中的一个优化方法——精英选择改进后的遗传算法。 遗传算法是一种受到生物进化原理启发的...

    com.finditmario.ume.u1303182022531.apk

    com.finditmario.ume.u1303182022531.apk

    gyumeen.github.io:九ume开发日志

    "gyumeen.github.io" 是一个个人或团队的开源项目,根据标题 "九ume开发日志" 可以推测,这个项目可能与一个名为 "九ume" 的软件或框架的开发过程有关,而日志则记录了开发过程中的重要事件、更新内容以及问题解决等...

    5G基站站点开通后台验收实验指导书.pdf

    1. 登录UME网管,进入告警管理界面,检查站点当前是否存在异常告警。 2. 5G小区状态检查则需要在“无线配置管理”下的“通用配置”中,选择“NR”,使用“MO编辑器”查询。正常状态下,小区应显示为“已激活”,服务...

    Lib20230620142330-ElasticNet UME R18(V16.23.20)用户手册文档包-R1.1.zedx

    Lib20230620142330-ElasticNet UME R18(V16.23.20)用户手册文档包_R1.1.zedx

    ume-package-server

    此外,ume-package-server可能还集成了其他工具,如自动化测试框架、代码质量检查工具(如ESLint、Prettier),以确保代码质量和规范性。总的来说,ume-package-server作为一个打包服务器,旨在提升前端开发的效率,...

    Mobile_CMADS_UME02.pdf

    #### 三、电气规格(Electric Specifications) **4.1 输出逻辑特性(Output Logic Characteristics on Transmitting Side)** - **4.1.1 直流特性(DC Characteristics)** - 直流特性是指在没有交流信号输入的...

    Historie umělé inteligence 人工智能的历史.ppt

    尽管目前尚无定论是否可以制造出拥有所有方面智能的机器,但这一问题一直是人工智能研究的核心。 #### 二、人工智能的概念与特征 人工智能主要关注如何构建能够操纵符号、识别模式、学习和推断的机器。它还涉及...

    三星I9500原厂图纸

    - 若连接正常但仍无法使用SIM卡,则检查SIM电压是否正常,不正常则更换新的SIM卡或检查U300芯片。 - **充电部分故障排除流程**: - 检查充电起始电压是否正常,不正常则需检查或更换相关的元件如U1003。 - 检查L...

    ume:[已弃用] 数据挖掘竞赛的个人框架

    特征XGBoost 和 Jsonnet 的 Cython 绑定Jsonnet 定义的可编程配置文件神经网络的包装类引导Ume 需要非常严格的依赖,所以建议为 Ume 设置一个新的虚拟环境: $ pwd/home/smly/workspace/ume$ ./bootstrap(snip)$ ...

    ume-graphql-client

    UME Studio python pkgs的模板仓库 可用的vscode任务:(请参阅./.vscode/keybindings.json):Ctrl + Shift + b:建立venv和设置键绑定(./.vscode/tasks/build.sh)Ctrl + Alt + g:提交更改(./ .vscode / tasks ...

Global site tag (gtag.js) - Google Analytics