mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12145: Merged V2.2 to V3.0 (AuthenticationUtil) 12109: AuthenticationUtil and AuthenticationComponent refactor 12152: Removed Lucene usage from lookup of 'sites' root folder 12153: Fix InviteServiceTest by cleaning up leaking authentications 12159: Fix for broken usage pattern of the Threadlocal values in recent AuthenticationUtil refactor. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12508 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -168,7 +168,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
|
||||
private void postActivity(String activityType, String siteNetwork, String appTool, String activityData, ActivityPostDAO.STATUS status)
|
||||
{
|
||||
String currentUser = AuthenticationUtil.getCurrentUserName();
|
||||
String currentUser = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
|
||||
try
|
||||
{
|
||||
@@ -379,7 +379,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
{
|
||||
ParameterCheck.mandatory("feedControl", feedControl);
|
||||
|
||||
String userId = AuthenticationUtil.getCurrentUserName();
|
||||
String userId = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
if (! userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
@@ -405,7 +405,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
*/
|
||||
public List<FeedControl> getFeedControls()
|
||||
{
|
||||
String userId = AuthenticationUtil.getCurrentUserName();
|
||||
String userId = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
return getFeedControlsImpl(userId);
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
public List<FeedControl> getFeedControls(String userId)
|
||||
{
|
||||
ParameterCheck.mandatoryString("userId", userId);
|
||||
String currentUser = AuthenticationUtil.getCurrentUserName();
|
||||
String currentUser = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
|
||||
if ((currentUser == null) || ((! currentUser.equals(AuthenticationUtil.getSystemUserName())) && (! currentUser.equals(userId)) && (! authorityService.isAdminAuthority(currentUser))))
|
||||
{
|
||||
@@ -460,7 +460,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
{
|
||||
ParameterCheck.mandatory("feedControl", feedControl);
|
||||
|
||||
String userId = AuthenticationUtil.getCurrentUserName();
|
||||
String userId = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
if (! userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
@@ -485,7 +485,7 @@ public class ActivityServiceImpl implements ActivityService
|
||||
{
|
||||
ParameterCheck.mandatory("feedControl", feedControl);
|
||||
|
||||
String userId = AuthenticationUtil.getCurrentUserName();
|
||||
String userId = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
|
||||
if (! userNamesAreCaseSensitive)
|
||||
{
|
||||
|
Reference in New Issue
Block a user