Ontimize Document Management 0.032EN

com.ontimize.dms.warehouse.local.copy
Class CopyInfo

java.lang.Object
  extended by com.ontimize.dms.warehouse.local.copy.CopyInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CopyInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Service copy information

Preference: Export operations over other types.

Since:
18/05/2009 Created by refactoring copy service., 22/01/2010 Added type., 25/01/2010 Compare by type.
See Also:
Serialized Form

Field Summary
protected  int action
           
protected  Document document
           
static int EXTRACT
           
static int EXTRACT_OPEN_OUTPUT_FILE
           
static int EXTRACT_OPEN_OUTPUT_PARENT
           
static int IMPORT
           
static int INTERNAL
           
protected  java.io.File output
           
protected  java.io.File source
           
protected  int type
           
 
Constructor Summary
CopyInfo(int type, Document document, java.io.File source, java.io.File output)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int getAction()
           
 Document getDocument()
           
 java.io.File getOutput()
           
 java.io.File getSource()
           
 int getType()
           
 void setAction(int action)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values

IMPORT

public static final int IMPORT
See Also:
Constant Field Values

EXTRACT

public static final int EXTRACT
See Also:
Constant Field Values

EXTRACT_OPEN_OUTPUT_FILE

public static final int EXTRACT_OPEN_OUTPUT_FILE
See Also:
Constant Field Values

EXTRACT_OPEN_OUTPUT_PARENT

public static final int EXTRACT_OPEN_OUTPUT_PARENT
See Also:
Constant Field Values

type

protected int type

document

protected Document document

source

protected java.io.File source

output

protected java.io.File output

action

protected int action
Constructor Detail

CopyInfo

public CopyInfo(int type,
                Document document,
                java.io.File source,
                java.io.File output)
Method Detail

getType

public int getType()

getDocument

public Document getDocument()

getSource

public java.io.File getSource()

getOutput

public java.io.File getOutput()

getAction

public int getAction()

setAction

public void setAction(int action)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Ontimize Document Management