我在 JavaEE 项目中工作,我只想看看用户是否是私人 Alfresco 使用CMIS的网站。我需要查看用户是否是此(私人,公共)站点的成员以及他在此站点中的当前情况。
I am working in a JavaEE project and i want simply see if a user is a member of an private Alfresco site using CMIS. I need to see if the user is a member of this (private,public) Site and his current situation in this site.
推荐答案单独使用CMIS不能轻易做到这一点。但您可以使用SiteService,因为它有 isMember方法。只有当您的代码在与Alfresco相同的进程中运行时(例如在动作,行为或Web脚本中),这才有效。
You cannot easily do this with CMIS alone. But you can use the SiteService because it has an isMember method. This would only work if your code is running in the same process as Alfresco (like in an action, behavior, or web script).
如果您正在运行代码与Alfresco分开的流程,考虑编写一个利用相同方法的Web脚本,然后使用rest客户端从代码中调用您的Web脚本。
If you are running code in a separate process from Alfresco, consider writing a web script that would leverage the same method, then call your web script from your code using a rest client.
或者,您可以使用网站成员公共REST API 。
除非明确标记为公开,否则不要使用您可能会找到的其他弹弓REST URL。
Resist the urge to use other "slingshot" REST URLs you might find unless they are explicitly marked as "public".
更多推荐
获取用户是否在特定的露天站点
发布评论