Warn if 'protectDays' property is 0. In-transaction writes can have content removed.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2447 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-19 21:38:59 +00:00
parent 58bec08e99
commit ac19d98707

View File

@@ -136,6 +136,18 @@ public class ContentStoreCleaner
{ {
throw new AlfrescoRuntimeException("Property 'listeners' not set"); throw new AlfrescoRuntimeException("Property 'listeners' not set");
} }
// check the protect days
if (protectDays < 0)
{
throw new AlfrescoRuntimeException("Property 'protectDays' must be 0 or greater (0 is not recommended)");
}
else if (protectDays == 0)
{
logger.warn(
"Property 'protectDays' is set to 0. " +
"It is possible that in-transaction content will be deleted.");
}
} }
private Set<String> getValidUrls() private Set<String> getValidUrls()