获取用户是否在特定的露天站点

编程入门 行业动态 更新时间:2024-10-08 06:20:29
本文介绍了获取用户是否在特定的露天站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 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".

更多推荐

获取用户是否在特定的露天站点

本文发布于:2023-11-28 11:47:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642277.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:露天   站点   用户   在特定

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!