mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.2 to HEAD
10951: Merged V2.1 to V2.2 10473: Fixed for ETWOONE-114 and ETWOONE-125 10873: Added missing SQL patch reference for post-schema-update tasks: patch.db-V2.1-AuditPathIndex Build label changed to 3.0.0c Labs git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ package org.alfresco.repo.audit.model;
|
||||
import org.alfresco.repo.audit.AuditMode;
|
||||
import org.alfresco.repo.audit.AuditModel;
|
||||
import org.alfresco.repo.audit.PublicServiceIdentifier;
|
||||
import org.alfresco.repo.audit.RecordOptions;
|
||||
import org.alfresco.service.namespace.NamespacePrefixResolver;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -240,6 +241,51 @@ public abstract class AbstractAuditEntry
|
||||
|
||||
}
|
||||
|
||||
protected RecordOptions getEffectiveRecordOptions()
|
||||
{
|
||||
RecordOptions recordOptions;
|
||||
if (checkEnabled() == TrueFalseUnset.TRUE)
|
||||
{
|
||||
recordOptions = getRecordOptionsOrParentRecordOptions();
|
||||
}
|
||||
else
|
||||
{
|
||||
recordOptions = null;
|
||||
}
|
||||
if(s_logger.isDebugEnabled())
|
||||
{
|
||||
s_logger.debug("...Record Options = "+recordOptions);
|
||||
}
|
||||
return recordOptions;
|
||||
}
|
||||
|
||||
private RecordOptions getRecordOptionsOrParentRecordOptions()
|
||||
{
|
||||
RecordOptions recordOptions = getRecordOptions();
|
||||
if(s_logger.isDebugEnabled())
|
||||
{
|
||||
s_logger.debug("... ... record options = "+recordOptions);
|
||||
}
|
||||
if (recordOptions == null)
|
||||
{
|
||||
if (getParent() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return getParent().getRecordOptionsOrParentRecordOptions();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return recordOptions;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private TrueFalseUnset checkEnabled()
|
||||
{
|
||||
TrueFalseUnset effective = getEnabled();
|
||||
|
Reference in New Issue
Block a user