org.alfresco.web.bean.clipboard
Interface ClipboardItem
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- AVMClipboardItem, WorkspaceClipboardItem
public interface ClipboardItem
- extends java.io.Serializable
Simple class representing a single item added to the clipboard.
getMode
ClipboardStatus getMode()
- Returns:
- the mode status of the clipboard item, the enum can be either Cut or Copy
getName
java.lang.String getName()
- Returns:
- display label (cm:name) of the clipboard item
getType
org.alfresco.service.namespace.QName getType()
- Returns:
- QName type of the clipboard item
getIcon
java.lang.String getIcon()
- Returns:
- the app:icon property of the clipboard item
getNodeRef
org.alfresco.service.cmr.repository.NodeRef getNodeRef()
- Returns:
- the NodeRef of the clipboard item
supportsLink
boolean supportsLink()
- Returns:
- true if the item on the clipboard supports linking (.url) as a link type
canCopyToViewId
boolean canCopyToViewId(java.lang.String viewId)
- Parameters:
viewId
- JSF View Id to check against
- Returns:
- true if the clipboard item can be Copy pasted to the specified JSF view
canMoveToViewId
boolean canMoveToViewId(java.lang.String viewId)
- Parameters:
viewId
- JSF View Id to check against
- Returns:
- true if the clipboard item can be Move pasted to the specified JSF view
paste
boolean paste(javax.faces.context.FacesContext fc,
java.lang.String viewId,
int action)
throws java.lang.Throwable
- Parameters:
fc
- FacesContextviewId
- JSF View Id to paste intoaction
- Clipboard action constant (@see org.alfresco.web.ui.repo.component.shelf.UIClipboardShelfItem)
- Returns:
- true on successful paste, false otherwise
- Throws:
java.lang.Throwable
- on fatal error during paste
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.