public class WorkspaceClipboardItem extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
protected ClipboardStatus |
mode |
protected static String |
MSG_COPY_OF |
protected org.alfresco.service.cmr.repository.NodeRef |
parent |
protected org.alfresco.service.cmr.repository.NodeRef |
ref |
Constructor and Description |
---|
WorkspaceClipboardItem(org.alfresco.service.cmr.repository.NodeRef ref,
ClipboardStatus mode,
List<String> customPasteViewIds) |
WorkspaceClipboardItem(org.alfresco.service.cmr.repository.NodeRef ref,
org.alfresco.service.cmr.repository.NodeRef parent,
ClipboardStatus mode,
List<String> customPasteViewIds) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyToViewId(String viewId) |
boolean |
canMoveToViewId(String viewId) |
protected boolean |
checkExists(String name,
org.alfresco.service.cmr.repository.NodeRef parent) |
boolean |
equals(Object obj)
Override equals() to compare NodeRefs
|
String |
getIcon() |
ClipboardStatus |
getMode() |
String |
getName() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
org.alfresco.service.cmr.repository.NodeRef |
getParent() |
protected ServiceRegistry |
getServiceRegistry() |
org.alfresco.service.namespace.QName |
getType() |
int |
hashCode()
Override hashCode() to use the internal NodeRef hashcode instead
|
boolean |
paste(FacesContext fc,
String viewId,
int action) |
boolean |
supportsLink() |
protected static org.apache.commons.logging.Log logger
protected static final String MSG_COPY_OF
protected org.alfresco.service.cmr.repository.NodeRef ref
protected org.alfresco.service.cmr.repository.NodeRef parent
protected ClipboardStatus mode
public WorkspaceClipboardItem(org.alfresco.service.cmr.repository.NodeRef ref, ClipboardStatus mode, List<String> customPasteViewIds)
ref
- mode
- public WorkspaceClipboardItem(org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.cmr.repository.NodeRef parent, ClipboardStatus mode, List<String> customPasteViewIds)
ref
- mode
- public boolean supportsLink()
ClipboardItem.supportsLink()
public boolean canCopyToViewId(String viewId)
canCopyToViewId
in interface ClipboardItem
viewId
- JSF View Id to check againstClipboardItem.canCopyToViewId(java.lang.String)
public boolean canMoveToViewId(String viewId)
canMoveToViewId
in interface ClipboardItem
viewId
- JSF View Id to check againstClipboardItem.canMoveToViewId(java.lang.String)
public boolean paste(FacesContext fc, String viewId, int action)
fc
- FacesContextviewId
- JSF View Id to paste intoaction
- Clipboard action constant (@see org.alfresco.web.ui.repo.component.shelf.UIClipboardShelfItem)ClipboardItem.paste(javax.faces.context.FacesContext, java.lang.String, int)
public ClipboardStatus getMode()
getMode
in interface ClipboardItem
public String getName()
getName
in interface ClipboardItem
public org.alfresco.service.namespace.QName getType()
getType
in interface ClipboardItem
public String getIcon()
getIcon
in interface ClipboardItem
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
getNodeRef
in interface ClipboardItem
public org.alfresco.service.cmr.repository.NodeRef getParent()
public boolean equals(Object obj)
public int hashCode()
protected ServiceRegistry getServiceRegistry()
protected boolean checkExists(String name, org.alfresco.service.cmr.repository.NodeRef parent)
Copyright © 2005–2017 Alfresco Software. All rights reserved.