mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added 'enableAuditPath' and 'disableAuditPath'
- Various tests to see that the recorded data is changed - disabledPaths rely entirely on the property caching for fast retrieval git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16271 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -209,7 +209,6 @@ public abstract class AbstractAuditDAOImpl implements AuditDAO
|
||||
* alf_audit_application
|
||||
*/
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public AuditApplicationInfo getAuditApplication(String application)
|
||||
{
|
||||
AuditApplicationEntity entity = getAuditApplicationByName(application);
|
||||
@@ -223,9 +222,7 @@ public abstract class AbstractAuditDAOImpl implements AuditDAO
|
||||
appInfo.setId(entity.getId());
|
||||
appInfo.setname(application);
|
||||
appInfo.setModelId(entity.getAuditModelId());
|
||||
// Resolve the disabled paths
|
||||
Set<String> disabledPaths = (Set<String>) propertyValueDAO.getPropertyById(entity.getDisabledPathsId());
|
||||
appInfo.setDisabledPaths(disabledPaths);
|
||||
appInfo.setDisabledPathsId(entity.getDisabledPathsId());
|
||||
// Done
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
@@ -252,7 +249,7 @@ public abstract class AbstractAuditDAOImpl implements AuditDAO
|
||||
appInfo.setId(entity.getId());
|
||||
appInfo.setname(application);
|
||||
appInfo.setModelId(modelId);
|
||||
appInfo.setDisabledPaths(disabledPaths);
|
||||
appInfo.setDisabledPathsId(disabledPathsId);
|
||||
// Done
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
|
@@ -78,7 +78,7 @@ public interface AuditDAO
|
||||
private Long id;
|
||||
private String name;
|
||||
private Long modelId;
|
||||
private Set<String> disabledPaths;
|
||||
private Long disabledPathsId;
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
@@ -88,7 +88,7 @@ public interface AuditDAO
|
||||
.append("[ id=").append(id)
|
||||
.append(", name=").append(name)
|
||||
.append(", modelId=").append(modelId)
|
||||
.append(", disabledPaths=").append(disabledPaths)
|
||||
.append(", disabledPathsId=").append(disabledPathsId)
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
@@ -117,13 +117,13 @@ public interface AuditDAO
|
||||
{
|
||||
this.modelId = modelId;
|
||||
}
|
||||
public Set<String> getDisabledPaths()
|
||||
public Long getDisabledPathsId()
|
||||
{
|
||||
return disabledPaths;
|
||||
return disabledPathsId;
|
||||
}
|
||||
public void setDisabledPaths(Set<String> disabledPaths)
|
||||
public void setDisabledPathsId(Long disabledPathsId)
|
||||
{
|
||||
this.disabledPaths = disabledPaths;
|
||||
this.disabledPathsId = disabledPathsId;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user