Class ClipboardServiceImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.clipboard.ClipboardServiceImpl
- All Implemented Interfaces:
ClipboardService
Default implementation of
ClipboardService- Since:
- 3.2
- Author:
- joseross
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
clipboardServiceInternal
-
-
Constructor Details
-
ClipboardServiceImpl
@ConstructorProperties("clipboardServiceInternal") public ClipboardServiceImpl(ClipboardServiceInternal clipboardServiceInternal)
-
-
Method Details
-
pasteItems
public List<String> pasteItems(String siteId, Operation operation, String targetPath, PasteItem item) throws ServiceLayerException, UserNotFoundException Description copied from interface:ClipboardServicePerforms the given clipboard operation- Specified by:
pasteItemsin 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:ClipboardServiceDuplicates the given item- Specified by:
duplicateItemin 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
-