Merged HEAD (5.1) to 5.1.N (5.1.1)

118471 jvonka: ACE-4734 - minor: add optional info/debug logging for CMIS calls (to get/list object/objects)
   - relates to ACE-198 & ACE-202


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@118735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrei Rebegea
2015-11-27 10:12:58 +00:00
parent 3294710888
commit ef75f4d89e
2 changed files with 136 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -134,12 +134,13 @@ public class AlfrescoCmisServiceFactory extends AbstractServiceFactory
{
if (logger.isDebugEnabled())
{
logger.debug("\n" +
"CMIS getService(): \n" +
" Authenticated as: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
" Running as: " + AuthenticationUtil.getRunAsUser() + "\n" +
" User: " + context.getUsername() + "\n" +
" Repo: " + context.getRepositoryId());
StringBuilder sb = new StringBuilder();
sb.append("getService: ").append(AuthenticationUtil.getFullyAuthenticatedUser())
.append(" [runAsUser=").append(AuthenticationUtil.getRunAsUser())
.append(",ctxUserName=").append(context.getUsername())
.append(",ctxRepoId=").append(context.getRepositoryId()).append("]");
logger.debug(sb.toString());
}
// Avoid using guest user if the user is provided in the context