Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)

128509 rneamtu: MNT-16488 : CLONE - Activities dashlet displays group indentifier instead of group name
      - Added activiti for add/remove group to the site with autorityDisplayName instead of authorityName


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128529 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ramona Neamtu
2016-07-04 10:51:19 +00:00
parent 88818dca9a
commit 49f9e3d0e8

View File

@@ -2424,9 +2424,10 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
} }
else if (authorityType == AuthorityType.GROUP) else if (authorityType == AuthorityType.GROUP)
{ {
String authorityDisplayName = authorityService.getAuthorityDisplayName(authorityName);
activityService.postActivity( activityService.postActivity(
ActivityType.SITE_GROUP_REMOVED, shortName, ActivityType.SITE_GROUP_REMOVED, shortName,
ACTIVITY_TOOL, getActivityGroupData(authorityName, "")); ACTIVITY_TOOL, getActivityGroupData(authorityDisplayName, ""));
} }
} }
else else
@@ -2534,9 +2535,10 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
} }
else if (authorityType == AuthorityType.GROUP) else if (authorityType == AuthorityType.GROUP)
{ {
String authorityDisplayName = authorityService.getAuthorityDisplayName(authorityName);
activityService.postActivity( activityService.postActivity(
ActivityType.SITE_GROUP_ADDED, shortName, ActivityType.SITE_GROUP_ADDED, shortName,
ACTIVITY_TOOL, getActivityGroupData(authorityName, role)); ACTIVITY_TOOL, getActivityGroupData(authorityDisplayName, role));
} }
} }
else else