mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
MNT-16565 : [Site Activities] Group identifier appears instead of group name when changing the group's role
- Fixed activity dashlet display in case of role changed for group. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@128834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2523,39 +2523,43 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
|
|||||||
}
|
}
|
||||||
|
|
||||||
}, AuthenticationUtil.SYSTEM_USER_NAME);
|
}, AuthenticationUtil.SYSTEM_USER_NAME);
|
||||||
|
|
||||||
if (currentRole == null)
|
AuthorityType authorityType = AuthorityType.getAuthorityType(authorityName);
|
||||||
{
|
String authorityDisplayName = authorityName;
|
||||||
AuthorityType authorityType = AuthorityType.getAuthorityType(authorityName);
|
if (authorityType == AuthorityType.GROUP)
|
||||||
if (authorityType == AuthorityType.USER)
|
{
|
||||||
{
|
authorityDisplayName = authorityService.getAuthorityDisplayName(authorityName);
|
||||||
activityService.postActivity(
|
}
|
||||||
ActivityType.SITE_USER_JOINED, shortName,
|
|
||||||
ACTIVITY_TOOL, getActivityUserData(authorityName, role), authorityName);
|
if (currentRole == null)
|
||||||
}
|
{
|
||||||
else if (authorityType == AuthorityType.GROUP)
|
if (authorityType == AuthorityType.USER)
|
||||||
|
{
|
||||||
|
activityService.postActivity(
|
||||||
|
ActivityType.SITE_USER_JOINED, shortName,
|
||||||
|
ACTIVITY_TOOL, getActivityUserData(authorityDisplayName, role), authorityName);
|
||||||
|
}
|
||||||
|
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(authorityDisplayName, role));
|
||||||
ACTIVITY_TOOL, getActivityGroupData(authorityDisplayName, role));
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
else
|
{
|
||||||
{
|
if (authorityType == AuthorityType.USER)
|
||||||
AuthorityType authorityType = AuthorityType.getAuthorityType(authorityName);
|
{
|
||||||
if (authorityType == AuthorityType.USER)
|
activityService.postActivity(
|
||||||
{
|
ActivityType.SITE_USER_ROLE_UPDATE, shortName,
|
||||||
activityService.postActivity(
|
ACTIVITY_TOOL, getActivityUserData(authorityDisplayName, role));
|
||||||
ActivityType.SITE_USER_ROLE_UPDATE, shortName,
|
}
|
||||||
ACTIVITY_TOOL, getActivityUserData(authorityName, role));
|
else if (authorityType == AuthorityType.GROUP)
|
||||||
}
|
{
|
||||||
else if (authorityType == AuthorityType.GROUP)
|
activityService.postActivity(
|
||||||
{
|
ActivityType.SITE_GROUP_ROLE_UPDATE, shortName,
|
||||||
activityService.postActivity(
|
ACTIVITY_TOOL, getActivityGroupData(authorityDisplayName, role));
|
||||||
ActivityType.SITE_GROUP_ROLE_UPDATE, shortName,
|
}
|
||||||
ACTIVITY_TOOL, getActivityGroupData(authorityName, role));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user