public class DesktopTarget extends 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,
String path)
class constructor
|
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
getNode()
Return the associated node
|
String |
getTarget()
Return the target path/id
|
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
|
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, String path)
typ
- intpath
- Stringpublic final int isType()
public final String getTarget()
public final boolean hasNodeRef()
public final org.alfresco.service.cmr.repository.NodeRef getNode()
public final String getTypeAsString()
public final void setNode(org.alfresco.service.cmr.repository.NodeRef node)
node
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.