Package org.alfresco.filesys.alfresco
Class DesktopTarget
- java.lang.Object
-
- org.alfresco.filesys.alfresco.DesktopTarget
-
public class DesktopTarget extends Object
Desktop Target ClassContains the details of a target file/folder/node for a desktop action.
- Author:
- gkspencer
-
-
Field Summary
Fields Modifier and Type Field Description static intTargetCopiedFilestatic intTargetCopiedFolderstatic intTargetFilestatic intTargetFolderstatic intTargetNodeRef
-
Constructor Summary
Constructors Constructor Description DesktopTarget(int typ, String path)class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetNode()Return the associated nodeStringgetTarget()Return the target path/idStringgetTypeAsString()Return the target type as a stringbooleanhasNodeRef()Check if the associated node is validintisType()Return the target typevoidsetNode(org.alfresco.service.cmr.repository.NodeRef node)Set the associated nodeStringtoString()Return the desktop target as a string
-
-
-
Field Detail
-
TargetFile
public static final int TargetFile
- See Also:
- Constant Field Values
-
TargetFolder
public static final int TargetFolder
- See Also:
- Constant Field Values
-
TargetCopiedFile
public static final int TargetCopiedFile
- See Also:
- Constant Field Values
-
TargetCopiedFolder
public static final int TargetCopiedFolder
- See Also:
- Constant Field Values
-
TargetNodeRef
public static final int TargetNodeRef
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DesktopTarget
public DesktopTarget(int typ, String path)class constructor- Parameters:
typ- intpath- String
-
-
Method Detail
-
isType
public final int isType()
Return the target type- Returns:
- int
-
getTarget
public final String getTarget()
Return the target path/id- Returns:
- String
-
hasNodeRef
public final boolean hasNodeRef()
Check if the associated node is valid- Returns:
- boolean
-
getNode
public final org.alfresco.service.cmr.repository.NodeRef getNode()
Return the associated node- Returns:
- NodeRef
-
getTypeAsString
public final String getTypeAsString()
Return the target type as a string- Returns:
- String
-
setNode
public final void setNode(org.alfresco.service.cmr.repository.NodeRef node)
Set the associated node- Parameters:
node- NodeRef
-
-