mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix authentication, upload and download to handle generic JSR-168 portals - means we can run against Liferay and other portals besides JBoss
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3188 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -62,7 +62,7 @@ public class Application
|
||||
|
||||
public static final String MESSAGE_BUNDLE = "alfresco.messages.webclient";
|
||||
|
||||
private static ThreadLocal<Boolean> inPortalServer = new ThreadLocal<Boolean>();
|
||||
private static boolean inPortalServer = false;
|
||||
private static StoreRef repoStoreRef;
|
||||
private static String rootPath;
|
||||
private static String companyRootId;
|
||||
@@ -88,7 +88,7 @@ public class Application
|
||||
*/
|
||||
public static void setInPortalServer(boolean inPortal)
|
||||
{
|
||||
inPortalServer.set(inPortal);
|
||||
inPortalServer = inPortal;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,7 @@ public class Application
|
||||
*/
|
||||
public static boolean inPortalServer()
|
||||
{
|
||||
return (inPortalServer.get() != null ? inPortalServer.get() : false);
|
||||
return inPortalServer;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user