mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
First cut of Facebook integration:
1) Web Script framework extensions for supporting the development of Alfresco based Facebook applications 2) Sample Document Library Facebook application 3) FormData enhancements for supporting request args retrieval for multipart/form-data encoding 4) Sort order added to Search Javascript API Note: Stuff needs commenting, tidy up, but at least it's in SVN. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7259 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,10 +42,10 @@ import org.alfresco.web.scripts.WebScriptDescription.RequiredAuthentication;
|
||||
*/
|
||||
public class WebScriptServletRuntime extends WebScriptRuntime
|
||||
{
|
||||
private HttpServletRequest req;
|
||||
private HttpServletResponse res;
|
||||
private WebScriptServletAuthenticator authenticator;
|
||||
private ServerConfigElement serverConfig;
|
||||
protected HttpServletRequest req;
|
||||
protected HttpServletResponse res;
|
||||
protected WebScriptServletAuthenticator authenticator;
|
||||
protected ServerConfigElement serverConfig;
|
||||
|
||||
|
||||
/**
|
||||
@@ -137,12 +137,12 @@ public class WebScriptServletRuntime extends WebScriptRuntime
|
||||
* @see org.alfresco.web.scripts.WebScriptRuntime#authenticate(org.alfresco.web.scripts.WebScriptDescription.RequiredAuthentication, boolean)
|
||||
*/
|
||||
@Override
|
||||
protected boolean authenticate(RequiredAuthentication required, boolean isGuest)
|
||||
protected boolean authenticate(RequiredAuthentication required, boolean isGuest, WebScriptRequest req, WebScriptResponse res)
|
||||
{
|
||||
boolean authorised = true;
|
||||
if (authenticator != null)
|
||||
{
|
||||
authorised = authenticator.authenticate(required, isGuest, req, res);
|
||||
authorised = authenticator.authenticate(required, isGuest, (WebScriptServletRequest)req, (WebScriptServletResponse)res);
|
||||
}
|
||||
return authorised;
|
||||
}
|
||||
|
Reference in New Issue
Block a user