public class ClipboardServiceImpl extends Object implements ClipboardService
| Constructor and Description |
|---|
ClipboardServiceImpl(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClipboardCommand(String userId,
ClipboardCommand command,
boolean isVirtual)
Adds a clipboard command for user
|
void |
clearClipboardList(String userId,
boolean isVirtual)
Clears the list of clipboard command
|
Set<ClipboardCommand> |
getClipboardList(String userId,
boolean isVirtual)
Gets the list of clipboard command added by given user
check in clipboard.
|
ClipboardCommand |
getLastClipboard(String userId)
Gets the last clipboard command of user
|
void |
removeClipboardCommand(String userId,
ClipboardCommand command)
Remove one command form clipboard
|
public ClipboardServiceImpl(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams initParams)
public void addClipboardCommand(String userId, ClipboardCommand command, boolean isVirtual)
ClipboardServiceaddClipboardCommand in interface ClipboardServiceuserId - user to add commandcommand - the commandisVirtual - if the command is virtualpublic ClipboardCommand getLastClipboard(String userId)
ClipboardServicegetLastClipboard in interface ClipboardServiceuserId - user to get commandpublic Set<ClipboardCommand> getClipboardList(String userId, boolean isVirtual)
ClipboardServicegetClipboardList in interface ClipboardServiceuserId - the user who added the commandsisVirtual - if the commands are virtualpublic void clearClipboardList(String userId, boolean isVirtual)
ClipboardServiceclearClipboardList in interface ClipboardServiceuserId - the user who added the commandsisVirtual - if the commands are virtualpublic void removeClipboardCommand(String userId, ClipboardCommand command)
ClipboardServiceremoveClipboardCommand in interface ClipboardServiceuserId - the user who added the commandscommand - the command
command need to removeCopyright © 2003–2019 eXo Platform SAS. All rights reserved.