mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Audit and Prop table enhancements
- alf_prop_xxx tables - Added alf_prop_root table - alf_prop_value_xxx tables enforce uniqueness - Better splitting up of Collections and Maps (attempt to use exact storage type) - Moved some indexes around to reduce size but maintain index data lookups - Allow updates and deletes of properties via alf_prop_root (entry-point table) - Audit Application - Unique by name - Add 'disabled paths' to control audit behaviour (not wired into services) - Added concurrency checks for updates to the Audit Application (model change, etc) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16217 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,8 +33,10 @@ package org.alfresco.repo.domain.audit;
|
||||
public class AuditApplicationEntity
|
||||
{
|
||||
private Long id;
|
||||
private Long auditModelId;
|
||||
private short version;
|
||||
private Long applicationNameId;
|
||||
private Long auditModelId;
|
||||
private Long disabledPathsId;
|
||||
|
||||
public AuditApplicationEntity()
|
||||
{
|
||||
@@ -46,12 +48,26 @@ public class AuditApplicationEntity
|
||||
StringBuilder sb = new StringBuilder(512);
|
||||
sb.append("AuditApplicationEntity")
|
||||
.append("[ ID=").append(id)
|
||||
.append(", auditModelId=").append(auditModelId)
|
||||
.append(", version=").append(version)
|
||||
.append(", applicationNameId=").append(applicationNameId)
|
||||
.append(", auditModelId=").append(auditModelId)
|
||||
.append(", disabledPathsId=").append(disabledPathsId)
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public void incrementVersion()
|
||||
{
|
||||
if (version >= Short.MAX_VALUE)
|
||||
{
|
||||
this.version = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.version++;
|
||||
}
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
@@ -62,14 +78,14 @@ public class AuditApplicationEntity
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getAuditModelId()
|
||||
public short getVersion()
|
||||
{
|
||||
return auditModelId;
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setAuditModelId(Long auditModelId)
|
||||
public void setVersion(short version)
|
||||
{
|
||||
this.auditModelId = auditModelId;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Long getApplicationNameId()
|
||||
@@ -81,4 +97,24 @@ public class AuditApplicationEntity
|
||||
{
|
||||
this.applicationNameId = applicationNameId;
|
||||
}
|
||||
|
||||
public Long getAuditModelId()
|
||||
{
|
||||
return auditModelId;
|
||||
}
|
||||
|
||||
public void setAuditModelId(Long auditModelId)
|
||||
{
|
||||
this.auditModelId = auditModelId;
|
||||
}
|
||||
|
||||
public Long getDisabledPathsId()
|
||||
{
|
||||
return disabledPathsId;
|
||||
}
|
||||
|
||||
public void setDisabledPathsId(Long disabledPathsId)
|
||||
{
|
||||
this.disabledPathsId = disabledPathsId;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user