mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
84257: ACE-2644 - Administrator Node Browser (in-process) functional parity of Explorer Fixed Session serialization of QNameBean classes. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@84652 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,9 +54,6 @@ import org.alfresco.service.namespace.QName;
|
|||||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||||
import org.alfresco.service.transaction.TransactionService;
|
import org.alfresco.service.transaction.TransactionService;
|
||||||
import org.alfresco.util.ISO9075;
|
import org.alfresco.util.ISO9075;
|
||||||
import org.springframework.beans.BeansException;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
|
||||||
import org.springframework.context.ApplicationContextAware;
|
|
||||||
import org.springframework.extensions.webscripts.Cache;
|
import org.springframework.extensions.webscripts.Cache;
|
||||||
import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||||
import org.springframework.extensions.webscripts.Status;
|
import org.springframework.extensions.webscripts.Status;
|
||||||
@@ -69,17 +66,9 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* @author dcaruana
|
* @author dcaruana
|
||||||
* @author wabson
|
* @author wabson
|
||||||
*/
|
*/
|
||||||
public class NodeBrowserScript extends DeclarativeWebScript implements Serializable, ApplicationContextAware
|
public class NodeBrowserScript extends DeclarativeWebScript implements Serializable
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 48743409337475896L;
|
private static final long serialVersionUID = 48743409337475896L;
|
||||||
|
|
||||||
private transient ApplicationContext applicationContext = null;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
|
|
||||||
{
|
|
||||||
this.applicationContext = applicationContext;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Long searchElapsedTime = null;
|
private Long searchElapsedTime = null;
|
||||||
|
|
||||||
@@ -157,9 +146,7 @@ public class NodeBrowserScript extends DeclarativeWebScript implements Serializa
|
|||||||
|
|
||||||
protected NamespaceService getNamespaceService()
|
protected NamespaceService getNamespaceService()
|
||||||
{
|
{
|
||||||
// used by serialised bean objects
|
return this.namespaceService;
|
||||||
if (namespaceService == null) namespaceService = (NamespaceService)applicationContext.getBean("NamespaceService");
|
|
||||||
return namespaceService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -665,6 +652,7 @@ public class NodeBrowserScript extends DeclarativeWebScript implements Serializa
|
|||||||
private static final long serialVersionUID = 6982292337846270774L;
|
private static final long serialVersionUID = 6982292337846270774L;
|
||||||
|
|
||||||
protected QName name;
|
protected QName name;
|
||||||
|
private String prefixString = null;
|
||||||
|
|
||||||
public QNameBean(QName name)
|
public QNameBean(QName name)
|
||||||
{
|
{
|
||||||
@@ -680,7 +668,7 @@ public class NodeBrowserScript extends DeclarativeWebScript implements Serializa
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return name.toPrefixString(getNamespaceService());
|
return prefixString != null ? prefixString : (prefixString = name.toPrefixString(getNamespaceService()));
|
||||||
}
|
}
|
||||||
catch(NamespaceException e)
|
catch(NamespaceException e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user