. Workflow Command Servlet implementation

. Refactored common simple workflow code into a util class.
. Example template that demonstrates both querying for workflow information on a document (useful anyway) and executes the servlet to perform both the Approve and Reject actions if appropriate for the document.
. TemplateNode template API object now exposes the browse navigation servlet URL for a Space as the "url" API call
. Fix long standing bug in UIRichList (since PR1!) - subtle behaviour issue where under very high server loads, the richlist component would render the wrong number of items per row.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2590 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-03-30 14:09:08 +00:00
parent 9c9a0d3d1b
commit a9e9e57b6d
9 changed files with 613 additions and 92 deletions

View File

@@ -62,11 +62,10 @@ public class UIRichList extends UIComponentBase implements IDataContainer
{
Class clazz = Class.forName(view);
IRichListRenderer renderer = (IRichListRenderer)clazz.newInstance();
UIRichList.viewRenderers.put(renderer.getViewModeID(), renderer);
viewRenderers.put(renderer.getViewModeID(), renderer);
if (logger.isDebugEnabled())
logger.debug("Added view '" + renderer.getViewModeID() +
"' to UIRichList");
logger.debug("Added view '" + renderer.getViewModeID() + "' to UIRichList");
}
catch (Exception e)
{
@@ -449,7 +448,7 @@ public class UIRichList extends UIComponentBase implements IDataContainer
IRichListRenderer renderer = null;
if (getViewMode() != null)
{
renderer = (IRichListRenderer)UIRichList.viewRenderers.get(getViewMode());
renderer = (IRichListRenderer)viewRenderers.get(getViewMode());
}
return renderer;
}
@@ -509,7 +508,7 @@ public class UIRichList extends UIComponentBase implements IDataContainer
// Private data
/** map of available IRichListRenderer instances */
private final static Map<String, IRichListRenderer> viewRenderers = new HashMap<String, IRichListRenderer>(5);
private final Map<String, IRichListRenderer> viewRenderers = new HashMap<String, IRichListRenderer>(4, 1.0f);
// component state
private int currentPage = 0;