mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Web Scripts:
- fix issues integrating with Flex (rename of tunnel url arguments) - add admin to required authentication levels - support json callback method (for browser based ajax requests) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5856 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -37,6 +37,7 @@ import javax.faces.event.ActionEvent;
|
||||
import javax.faces.event.FacesEvent;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.service.cmr.security.AuthorityService;
|
||||
import org.alfresco.service.transaction.TransactionService;
|
||||
import org.alfresco.web.scripts.DeclarativeWebScriptRegistry;
|
||||
import org.alfresco.web.scripts.WebScriptMatch;
|
||||
@@ -70,6 +71,7 @@ public class UIWebScript extends SelfRenderingComponent
|
||||
|
||||
private WebScriptRegistry registry;
|
||||
private TransactionService txnService;
|
||||
private AuthorityService authorityService;
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
@@ -80,6 +82,7 @@ public class UIWebScript extends SelfRenderingComponent
|
||||
FacesContext.getCurrentInstance());
|
||||
this.registry = (DeclarativeWebScriptRegistry)ctx.getBean("webscripts.registry");
|
||||
this.txnService = (TransactionService)ctx.getBean("transactionComponent");
|
||||
this.authorityService = (AuthorityService)ctx.getBean("authorityService");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -225,7 +228,7 @@ public class UIWebScript extends SelfRenderingComponent
|
||||
|
||||
WebScriptJSFRuntime(FacesContext fc, String scriptUrl)
|
||||
{
|
||||
super(registry, txnService);
|
||||
super(registry, txnService, authorityService);
|
||||
this.fc = fc;
|
||||
this.scriptUrl = scriptUrl;
|
||||
this.script = WebScriptURLRequest.splitURL(scriptUrl)[2];
|
||||
|
Reference in New Issue
Block a user