making height for rich text editor widget paramaterizable. adding snapshot after regenerating renditions.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5990 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2007-06-15 22:08:58 +00:00
parent 460092a901
commit 9ee0de2054
4 changed files with 52 additions and 19 deletions

View File

@@ -69,6 +69,7 @@ import org.alfresco.web.ui.wcm.WebResources;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.util.StringUtils;
import org.w3c.dom.Document;
/**
@@ -113,6 +114,26 @@ public class RegenerateRenditionsWizard
}
LOGGER.debug("updating " + diffList.size() + " renditions in staging");
this.avmSyncService.update(diffList, null, true, true, true, true, null, null);
final StringBuilder description = new StringBuilder();
if (this.regenerateScope.equals(REGENERATE_SCOPE_FORM))
{
description.append("regenerated all renditions for content authored using forms ").
append(StringUtils.arrayToDelimitedString(this.selectedForms, ", ")).
append(".");
}
else if (this.regenerateScope.equals(REGENERATE_SCOPE_RENDERING_ENGINE_TEMPLATE))
{
description.append("regenerated all renditions generated by ").
append(StringUtils.arrayToDelimitedString(this.selectedRenderingEngineTemplates, ", ")).
append(".");
}
else
{
description.append("regenerated all renditions in web project " + this.selectedWebProject.getName());
}
this.avmService.createSnapshot(this.selectedWebProject.getStoreId(),
"regenerated renditions",
description.toString());
}
return outcome;
}