mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
57072: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 56559: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1) 56110: MNT-9104 : If username contains uppercase letters the action of joining a site will not be displayed in "My activities" Rename test SiteActivityTest to AbstractSiteActivityTest and FeedCleanerTest to AbstractFeedCleanerTest. Add case sensitivity tests SiteActivityTestCaseInsensitivity, SiteActivityTestCaseSensitivity, FeedCleanerTestCaseInsensitivity, FeedCleanerTestCaseSensitivity. Was implemented code, the activities dependent of 'user.name.caseSensitive' property. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -624,6 +624,11 @@ public class ActivityServiceImpl implements ActivityService, InitializingBean
|
||||
{
|
||||
logger.debug("Inserting feed control for siteId: " + feedControl.getSiteId() + ",\n appToolId : " + feedControl.getAppToolId() + ",\n for user : " + userId);
|
||||
}
|
||||
//MNT-9104 If username contains uppercase letters the action of joining a site will not be displayed in "My activities"
|
||||
if (! userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
}
|
||||
feedControlDAO.insertFeedControl(new FeedControlEntity(userId, feedControl));
|
||||
}
|
||||
}
|
||||
@@ -673,6 +678,11 @@ public class ActivityServiceImpl implements ActivityService, InitializingBean
|
||||
{
|
||||
ParameterCheck.mandatoryString("userId", userId);
|
||||
|
||||
if (!userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
List<FeedControlEntity> feedControlDaos = feedControlDAO.selectFeedControls(userId);
|
||||
@@ -721,6 +731,12 @@ public class ActivityServiceImpl implements ActivityService, InitializingBean
|
||||
{
|
||||
logger.debug("Deleting feed control for siteId: " + feedControl.getSiteId() + ",\n appToolId : " + feedControl.getAppToolId() + ",\n for user : " + userId);
|
||||
}
|
||||
// MNT-9104 If username contains uppercase letters the action of joining a site will not be displayed in "My activities"
|
||||
if (!userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
}
|
||||
|
||||
feedControlDAO.deleteFeedControl(new FeedControlEntity(userId, feedControl));
|
||||
}
|
||||
catch (SQLException e)
|
||||
@@ -746,6 +762,12 @@ public class ActivityServiceImpl implements ActivityService, InitializingBean
|
||||
{
|
||||
logger.debug("Selecting feed control for siteId: " + feedControl.getSiteId() + ",\n appToolId : " + feedControl.getAppToolId() + ",\n for user : " + userId);
|
||||
}
|
||||
// MNT-9104 If username contains uppercase letters the action of joining a site will not be displayed in "My activities"
|
||||
if (!userNamesAreCaseSensitive)
|
||||
{
|
||||
userId = userId.toLowerCase();
|
||||
}
|
||||
|
||||
long id = feedControlDAO.selectFeedControl(new FeedControlEntity(userId, feedControl));
|
||||
boolean exists = (id != -1);
|
||||
if (logger.isDebugEnabled())
|
||||
|
Reference in New Issue
Block a user