如何在露天管理访问权限 [英] How to manage access permission in alfresco

查看:33
本文介绍了如何在露天管理访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,提前感谢您的帮助.

Hello Everyone thank's in advance for your help.

我正在尝试在 alfresco 中配置访问权限,但现在陷入了一个场景
如果有人定义了实现此功能的正确方法,将会有很大帮助
现在我的问题是

I am trying to configure access permission in alfresco and now stuck in a scenario
It would be great help if someone defines proper way to achieve this functionality
now my problem is

我想创建一个网站(所有用户都可以访问)
然后将在该站点中创建文件夹和子文件夹(如果需要,我准备自定义这些文件夹的内容类型)
现在我想以这样一种方式配置 alfresco,即特定的用户集可以访问特定的文件夹及其内容例如

I want to create a site (which will be accessible by all user)
then will create folder and sub folder in that site (i am ready to customize content type of those folder if required)
now i want to configure alfresco in such a way that specific set of user can access specific folder and it's content for example

This is list of user
user1,user2,user3,user4,user5  

And this is folder structure
Project 
  Data
    Test
    Exam
  Design
    art
    practice
  Work
    W1
    W2

现在如何配置它
用户 1 可以访问数据->考试
user2 可以访问工作及其所有子文件夹
user3 可以访问 Data 及其所有子文件夹
user4 可以访问 Design 及其所有子文件夹和
user5 可以访问 Data->Work, Design->art,Work->W1 文件夹

Now how to configure it in such a way that
user1 can access Data->Exam
user2 can access work and all it's child folder
user3 can access Data and all it's child folder
user4 can access Design and all it's child folder and
user5 can access Data->Work, Design->art,Work->W1 folder

请注意,我正在使用 CMIS api 来生成此文件夹结构那么有没有什么办法可以只通过java代码来实现这一点?

Note that i am using CMIS api to generate this folder structure so is there any way to achieve this by java code only ?

我已阅读有关管理权限的内容,但不确定是否使用它,因为当我尝试为文件夹提供权限时,它只允许添加单个用户
但在我的情况下,我想创建用户组,并希望该特定组可以访问该文件夹.

i have read about managing permission but not sure about using it just because when i have tried to provide permission to folder it allow to add only single user
but in my case i want to make group of user and want to make the folder accessible by that particulate group.

非常感谢您的时间:)

推荐答案

如果您想使用群组,则需要使用管理控制台或 Alfresco API 在 Alfresco 中创建群组.CMIS 无法管理用户或组.

If you want to use a group, you'll need to create the group in Alfresco using either the admin console or the Alfresco API. CMIS cannot manage users or groups.

一旦您的用户和组就位,您就可以使用 CMIS 将它们分配给 ACL.但是,挑战在于您可能需要禁用或破坏"ACL 继承才能完全按照您的意愿行事.您不能使用 CMIS API 禁用 ACL 继承.您必须在 UI 中或通过 Alfresco API 执行此操作.

Once your users and groups are in place, you can use CMIS to assign them to ACLs. However, the challenge is that you may need to disable or "break" ACL inheritance to do exactly what you want. You cannot disable ACL inheritance with the CMIS API. You'll have to do it in the UI or through the Alfresco API.

在您的用户和群组就位并且您的文件夹配置为根据需要继承或不继承父权限后,您现在可以将用户和群组添加到您的文件夹中.使用 CMIS,您可以根据需要向给定文件夹添加任意数量的用户或组.它不限于单个用户或组.本页有一些使用访问控制条目 (ACE) 的示例) 组成访问控制列表 (ACL).

With your users and groups in place and with your folders configured to inherit or not inherit parent permissions as needed, you can now add users and groups to your folders. With CMIS, you can add as many users or groups as you need to a given folder. It is not limited to a single user or group. This page has some examples on using Access Control Entries (ACEs) which make up Access Control Lists (ACLs).

这篇关于如何在露天管理访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆