mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/DEV/V4.1-BUG-FIX to HEAD
43795: Fix for ALF-16254 - "Leave Site" behaviour for group based site membership: The API - "api/sites/<siteid>/memberships/<authority>" now returns additional json boolean value "isMemberOfGroup" to indicate if the specified user has an implied group membership of a site or a direct membership. This is the same information that is also returned by the full site membership "api/sites/<siteid>/memberships" API - so makes them more consistent also. Share now takes the additional value into account when making the decision on whether to render the "Leave Site" button on the site title component. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -271,6 +271,16 @@ public interface SiteService
|
||||
@NotAuditable
|
||||
String getMembersRole(String shortName, String authorityName);
|
||||
|
||||
/**
|
||||
* Gets the extended role information of the specified user.
|
||||
*
|
||||
* @param shortName site short name
|
||||
* @param authorityName full authority name (so if it's a group then its prefixed with 'GROUP_')
|
||||
* @return SiteMemberInfo site role information, null if none
|
||||
*/
|
||||
@NotAuditable
|
||||
SiteMemberInfo getMembersRoleInfo(String shortName, String authorityName);
|
||||
|
||||
/**
|
||||
* Indicates whether an authority is a member of a site or not
|
||||
*
|
||||
|
Reference in New Issue
Block a user