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:
Kevin Roast
2012-11-21 15:53:54 +00:00
parent 366aa0f57f
commit 0cd4e516f1
4 changed files with 81 additions and 4 deletions

View File

@@ -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
*