Class ClipboardServiceImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.clipboard.ClipboardServiceImpl
-
- All Implemented Interfaces:
ClipboardService
public class ClipboardServiceImpl extends Object implements ClipboardService
Default implementation ofClipboardService
- Since:
- 3.2
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected ClipboardServiceInternal
clipboardServiceInternal
protected ContentService
contentService
protected SiteService
siteService
-
Constructor Summary
Constructors Constructor Description ClipboardServiceImpl(ClipboardServiceInternal clipboardServiceInternal, SiteService siteService, ContentService contentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
duplicateItem(String siteId, String path)
Duplicates the given itemList<String>
pasteItems(String siteId, Operation operation, String targetPath, PasteItem item)
Performs the given clipboard operation
-
-
-
Field Detail
-
clipboardServiceInternal
protected final ClipboardServiceInternal clipboardServiceInternal
-
siteService
protected final SiteService siteService
-
contentService
protected ContentService contentService
-
-
Constructor Detail
-
ClipboardServiceImpl
@ConstructorProperties({"clipboardServiceInternal","siteService","contentService"}) public ClipboardServiceImpl(ClipboardServiceInternal clipboardServiceInternal, SiteService siteService, ContentService contentService)
-
-
Method Detail
-
pasteItems
public List<String> pasteItems(String siteId, Operation operation, String targetPath, PasteItem item) throws ServiceLayerException, UserNotFoundException
Description copied from interface:ClipboardService
Performs the given clipboard operation- Specified by:
pasteItems
in interfaceClipboardService
- Parameters:
siteId
- the id of the siteoperation
- the clipboard operationtargetPath
- the target pathitem
- the item to paste- Returns:
- the list of pasted items
- Throws:
ServiceLayerException
- if there is any error during the operationUserNotFoundException
- if the user is not found
-
duplicateItem
public String duplicateItem(String siteId, String path) throws ServiceLayerException, UserNotFoundException
Description copied from interface:ClipboardService
Duplicates the given item- Specified by:
duplicateItem
in interfaceClipboardService
- Parameters:
siteId
- the id of the sitepath
- the path of the item- Returns:
- the path of the new item
- Throws:
ServiceLayerException
- if there is any error copying the itemUserNotFoundException
- if the user is not found
-
-