mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Performance tweaks after profiling HEAD code. Audit interceptor shortcut to avoid calling auditImpl at all when auditing disabled in config.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6700 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,6 +35,7 @@ import org.alfresco.repo.security.permissions.PermissionReference;
|
||||
public abstract class AbstractPermissionReference implements PermissionReference
|
||||
{
|
||||
private int hashcode = 0;
|
||||
private String str = null;
|
||||
|
||||
public AbstractPermissionReference()
|
||||
{
|
||||
@@ -69,6 +70,10 @@ public abstract class AbstractPermissionReference implements PermissionReference
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return getQName()+ "." + getName();
|
||||
if (str == null)
|
||||
{
|
||||
str = getQName() + "." + getName();
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user