com.stratelia.webactiv.clipboard.control.ejb
Class ClipboardBmEJB

java.lang.Object
  extended by com.stratelia.webactiv.clipboard.control.ejb.ClipboardBmEJB
All Implemented Interfaces:
Clipboard, Serializable

public class ClipboardBmEJB
extends Object
implements Clipboard, Serializable

Stateful EJB to maintain the status of the clipboard of Silverpeas content.

See Also:
Serialized Form

Constructor Summary
ClipboardBmEJB()
          Constructor.
 
Method Summary
 void add(ClipboardSelection objectToCopy)
          Copy a node.
 void clear()
          Removes all of the elements from the clipboard.
 Clipboard create(String name)
           
 int getCount()
          Get the count access of clipboard.
 Exception getExceptionError()
          Method declaration
 String getMessageError()
          Method getMessageError
 String getName()
           
 ClipboardSelection getObject()
          Paste a node.
 ClipboardSelection getObject(int index)
          Returns the element at the specified position in the clipboard.
 Collection<ClipboardSelection> getObjects()
          Return al the objects.
 Collection<ClipboardSelection> getSelectedObjects()
          Return the selected objects.
 void PasteDone()
          When paste is done.
 void remove()
           
 void removeObject(int index)
          Removes the element at the specified position in the clipboard.
 void setMessageError(String messageID, Exception e)
          - Method setMessageError
 void setMultiClipboard()
          Switch the clipboard to multi mode.
 void setSelected(int index, boolean setIt)
          Returns the element at the specified position in the clipboard.
 void setSingleClipboard()
          Switch the clipboard to single mode.
 int size()
          Returns the number of elements in the clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardBmEJB

public ClipboardBmEJB()
Constructor.

Method Detail

add

public void add(ClipboardSelection objectToCopy)
         throws ClipboardException
Copy a node.

Specified by:
add in interface Clipboard
Parameters:
objectToCopy -
Throws:
ClipboardException
See Also:

getObject

public ClipboardSelection getObject()
Paste a node.

Specified by:
getObject in interface Clipboard
Returns:

getObjects

public Collection<ClipboardSelection> getObjects()
Return al the objects.

Specified by:
getObjects in interface Clipboard
Returns:

getSelectedObjects

public Collection<ClipboardSelection> getSelectedObjects()
                                                  throws ClipboardException
Return the selected objects.

Specified by:
getSelectedObjects in interface Clipboard
Returns:
Throws:
ClipboardException

size

public int size()
         throws ClipboardException
Returns the number of elements in the clipboard.

Specified by:
size in interface Clipboard
Returns:
Throws:
ClipboardException
See Also:

getObject

public ClipboardSelection getObject(int index)
                             throws ClipboardException
Returns the element at the specified position in the clipboard.

Specified by:
getObject in interface Clipboard
Parameters:
index -
Returns:
Throws:
ClipboardException

PasteDone

public void PasteDone()
When paste is done.

Specified by:
PasteDone in interface Clipboard

setSelected

public void setSelected(int index,
                        boolean setIt)
                 throws ClipboardException
Returns the element at the specified position in the clipboard.

Specified by:
setSelected in interface Clipboard
Parameters:
index -
setIt -
Throws:
ClipboardException

removeObject

public void removeObject(int index)
                  throws ClipboardException
Removes the element at the specified position in the clipboard.

Specified by:
removeObject in interface Clipboard
Parameters:
index -
Throws:
ClipboardException

clear

public void clear()
Removes all of the elements from the clipboard.

Specified by:
clear in interface Clipboard
Throws:
ClipboardException

setMultiClipboard

public void setMultiClipboard()
                       throws ClipboardException
Switch the clipboard to multi mode.

Specified by:
setMultiClipboard in interface Clipboard
Throws:
ClipboardException

setSingleClipboard

public void setSingleClipboard()
Switch the clipboard to single mode.

Specified by:
setSingleClipboard in interface Clipboard

getCount

public int getCount()
Get the count access of clipboard.

Specified by:
getCount in interface Clipboard
Returns:

getMessageError

public String getMessageError()
Method getMessageError

Specified by:
getMessageError in interface Clipboard
Returns:
See Also:

getExceptionError

public Exception getExceptionError()
Description copied from interface: Clipboard
Method declaration

Specified by:
getExceptionError in interface Clipboard
Returns:

setMessageError

public void setMessageError(String messageID,
                            Exception e)
- Method setMessageError

Specified by:
setMessageError in interface Clipboard
Parameters:
messageID -
e -
See Also:

remove

public void remove()
Specified by:
remove in interface Clipboard

getName

public String getName()
Specified by:
getName in interface Clipboard

create

public Clipboard create(String name)
Specified by:
create in interface Clipboard


Copyright © 2016 Silverpeas. All Rights Reserved.