org.alfresco.filesys.alfresco
Class DesktopTarget

java.lang.Object
  extended by org.alfresco.filesys.alfresco.DesktopTarget

public class DesktopTarget
extends java.lang.Object

Desktop Target Class

Contains the details of a target file/folder/node for a desktop action.


Field Summary
static int TargetCopiedFile
           
static int TargetCopiedFolder
           
static int TargetFile
           
static int TargetFolder
           
static int TargetNodeRef
           
 
Constructor Summary
DesktopTarget(int typ, java.lang.String path)
          class constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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,
                     java.lang.String path)
class constructor

Parameters:
typ - int
path - String
Method Detail

isType

public final int isType()
Return the target type

Returns:
int

getTarget

public final java.lang.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 java.lang.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

toString

public java.lang.String toString()
Return the desktop target as a string

Overrides:
toString in class java.lang.Object
Returns:
String


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.