mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user