Fixed AWC-487: Added patch to grant required permissions to 'Saved Searches' folder

Fixed I18N of SavedSearchFolderPatch
Neatened up patch logging


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2276 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-01 15:36:03 +00:00
parent 2bdace676d
commit 9be5d15ad1
6 changed files with 219 additions and 49 deletions

View File

@@ -32,6 +32,8 @@ import org.apache.commons.logging.LogFactory;
*/
public class PatchExecuter
{
private static final String MSG_CHECKING = "patch.executer.checking";
private static final String MSG_NO_PATCHES_REQUIRED = "patch.executer.no_patches_required";
private static final String MSG_NOT_EXECUTED = "patch.executer.not_executed";
private static final String MSG_EXECUTED = "patch.executer.executed";
private static final String MSG_FAILED = "patch.executer.failed";
@@ -53,6 +55,8 @@ public class PatchExecuter
*/
public void applyOutstandingPatches()
{
logger.info(I18NUtil.getMessage(MSG_CHECKING));
Date before = new Date(System.currentTimeMillis() - 20000L); // 20 seconds ago
patchService.applyOutstandingPatches();
Date after = new Date(System .currentTimeMillis() + 20000L); // 20 seconds ahead
@@ -63,10 +67,7 @@ public class PatchExecuter
// don't report anything if nothing was done
if (appliedPatches.size() == 0)
{
if (logger.isDebugEnabled())
{
logger.debug("No patches applied");
}
logger.info(I18NUtil.getMessage(MSG_NO_PATCHES_REQUIRED));
}
else
{