. First part of the Clipboard UI refactoring ready for AVM node support

- Clipboard actions now based on NodeRef not "id"
 - Added notion of "workspace" and "AVM" specific clipboard items
 - Clipboard bean supports creating different ClipboardItem types (workspace or avm)
. ActionLink parameters are now "toString()"ed rather than assumed String
. Optimization to Portal Tree Navigator support

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4924 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-01-24 18:41:49 +00:00
parent d40af2be67
commit bd25cfa86f
10 changed files with 294 additions and 141 deletions

View File

@@ -42,6 +42,7 @@ import javax.transaction.UserTransaction;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.repo.content.MimetypeMap;
import org.alfresco.web.app.Application;
import org.alfresco.web.bean.repository.Repository;
/**
@@ -98,18 +99,22 @@ public class InvokeCommand extends BaseAjaxCommand
// to cover this scenario we have to go through the names of
// all the objects in the session to find the bean we want.
Object bean = null;
Enumeration enumNames = request.getSession().getAttributeNames();
while (enumNames.hasMoreElements())
if (Application.inPortalServer())
{
String name = (String)enumNames.nextElement();
if (name.endsWith(variableName))
Enumeration enumNames = request.getSession().getAttributeNames();
while (enumNames.hasMoreElements())
{
bean = request.getSession().getAttribute(name);
if (logger.isDebugEnabled())
logger.debug("Found bean " + bean + " in the session");
break;
String name = (String)enumNames.nextElement();
if (name.endsWith(variableName))
{
bean = request.getSession().getAttribute(name);
if (logger.isDebugEnabled())
logger.debug("Found bean " + bean + " in the session");
break;
}
}
}