public class DesktopTarget
extends java.lang.Object
Contains the details of a target file/folder/node for a desktop action.
| Modifier and Type | Field and Description |
|---|---|
static int |
TargetCopiedFile |
static int |
TargetCopiedFolder |
static int |
TargetFile |
static int |
TargetFolder |
static int |
TargetNodeRef |
| Constructor and Description |
|---|
DesktopTarget(int typ,
java.lang.String path)
class constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
getNode()
Return the associated node
|
java.lang.String |
getTarget()
Return the target path/id
|
java.lang.String |
getTypeAsString()
Return the target type as a string
|
boolean |
hasNodeRef()
Check if the associated node is valid
|
int |
isType()
Return the target type
|
void |
setNode(org.alfresco.service.cmr.repository.NodeRef node)
Set the associated node
|
java.lang.String |
toString()
Return the desktop target as a string
|
public static final int TargetFile
public static final int TargetFolder
public static final int TargetCopiedFile
public static final int TargetCopiedFolder
public static final int TargetNodeRef
public DesktopTarget(int typ,
java.lang.String path)
typ - intpath - Stringpublic final int isType()
public final java.lang.String getTarget()
public final boolean hasNodeRef()
public final org.alfresco.service.cmr.repository.NodeRef getNode()
public final java.lang.String getTypeAsString()
public final void setNode(org.alfresco.service.cmr.repository.NodeRef node)
node - NodeRefpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.