mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Refactor of template and script services to allow easy addition of further template and script processors.
Hightlights of check-in include: - Introduction of script processor - Neutralisation of script and template models - The notion of a processor extension introduced - Extensions applied to processor implementation rather than the services - Auto selection of processor based on file extension of template or script git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5519 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package org.alfresco.repo.action.scheduled;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
@@ -46,7 +48,7 @@ public interface TemplateActionModelFactory
|
||||
*
|
||||
* @return - the model for the template engine.
|
||||
*/
|
||||
public Object getModel();
|
||||
public Map<String, Object> getModel();
|
||||
|
||||
/**
|
||||
* Build a model with a default node context.
|
||||
@@ -54,5 +56,5 @@ public interface TemplateActionModelFactory
|
||||
* @param nodeRef
|
||||
* @return - the model (with nodeRef as its context).
|
||||
*/
|
||||
public Object getModel(NodeRef nodeRef);
|
||||
public Map<String, Object> getModel(NodeRef nodeRef);
|
||||
}
|
||||
|
Reference in New Issue
Block a user