org.apache.lenya.cms.site.usecases
Class ClipboardHelper

java.lang.Object
  extended by org.apache.lenya.cms.site.usecases.ClipboardHelper

public class ClipboardHelper
extends java.lang.Object

Helper class for clipboard handling.

Version:
$Id: ClipboardHelper.java 532646 2007-04-26 08:04:08Z andreas $

Constructor Summary
ClipboardHelper()
           
 
Method Summary
 Clipboard getClipboard(org.apache.avalon.framework.context.Context context)
          Returns the clipboard attachted to the session.
protected  org.apache.cocoon.environment.Session getSession(org.apache.avalon.framework.context.Context context)
           
protected  java.lang.String getSessionAttributeName()
           
 void removeClipboard(org.apache.avalon.framework.context.Context context)
          Removes the clipboard from the session.
 void saveClipboard(org.apache.avalon.framework.context.Context context, Clipboard clipboard)
          Saves the clipboard to the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardHelper

public ClipboardHelper()
Method Detail

getClipboard

public Clipboard getClipboard(org.apache.avalon.framework.context.Context context)
Returns the clipboard attachted to the session.

Parameters:
context - The context containing the session.
Returns:
A clipboard or null if no clipboard is attached to the session.

getSessionAttributeName

protected java.lang.String getSessionAttributeName()
Returns:
The name of the session attribute to hold the clipboard.

getSession

protected org.apache.cocoon.environment.Session getSession(org.apache.avalon.framework.context.Context context)
Parameters:
context - The context.
Returns:
The session of the context.

saveClipboard

public void saveClipboard(org.apache.avalon.framework.context.Context context,
                          Clipboard clipboard)
Saves the clipboard to the session.

Parameters:
context - The context.
clipboard - The clipboard.

removeClipboard

public void removeClipboard(org.apache.avalon.framework.context.Context context)
Removes the clipboard from the session.

Parameters:
context - The context.


Copyright $ Apache Software Foundation. All Rights Reserved.