Document Library: some refactoring & clean-up of evaluator code. Adds support for Repository custom response injection; the vti server details have now moved to this model instead of a separate webscript call. Added browser evaluator via userAgent regexp test and access to doclib webscript metadata response in evaluators.

Closes:
  ALF-9173 - SE.S07	Share - Single configuration files for actions
  ALF-9176 - SE.S15	Share - Refactor doclist data webscript to use web-tier ActionGroups and Evaluators
  ALF-9181 - SE.S63	Share - Refactor doclist client javascript to work with updated data response
Fixes:
  ALF-9917 - wrong URLs are generated for some actions
  ALF-9931 - Add simple workflow rule crashes the Document Library

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mike Hatfield
2011-08-17 20:43:39 +00:00
parent 8f99b3564e
commit 937d945d71
11 changed files with 296 additions and 9 deletions

View File

@@ -19,7 +19,7 @@
package org.alfresco.repo.jscript;
import org.alfresco.model.ContentModel;
import org.alfresco.repo.jscript.app.JSONPropertyDecorator;
import org.alfresco.repo.jscript.app.PropertyDecorator;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
@@ -237,7 +237,7 @@ public final class ApplicationScriptUtils extends BaseScopableProcessorExtension
// Has a decorator has been registered for this property?
if (this.decoratedProperties.containsKey(shortQName))
{
json.put(key, ((JSONPropertyDecorator) this.decoratedProperties.get(shortQName)).decorate(nodeRef, shortQName, value));
json.put(key, ((PropertyDecorator) this.decoratedProperties.get(shortQName)).decorate(nodeRef, shortQName, value));
}
else
{