[ACS-9736] Update audit model documentation and implement inheritance in AuditModelRegistry

This commit is contained in:
Kacper Magdziarz
2025-09-10 11:32:25 +02:00
parent 872ad1c185
commit ecb373252d
2 changed files with 7 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ public interface AuditModelRegistry
public boolean isAuditEnabled();
/**
* Determines whether audit values should be stored in database.
* Determines whether audit values should be stored in database. <code>True</code> by default if not changed by property.
*
* @return <code>true</code> if audit is enabled.
*/

View File

@@ -252,6 +252,9 @@ public class AuditModelRegistryImpl extends AbstractPropertyBackedBean implement
return value != null && value.equalsIgnoreCase("true");
}
/**
* {@inheritDoc}
*/
@Override
public boolean isAuditingToDatabaseEnabled()
{
@@ -259,6 +262,9 @@ public class AuditModelRegistryImpl extends AbstractPropertyBackedBean implement
return value == null || value.equalsIgnoreCase("true");
}
/**
* {@inheritDoc}
*/
@Override
public boolean isAuditingToAuditStorageEnabled()
{