org.opensync.engine.server
Class Synchronization

java.lang.Object
  extended byorg.opensync.engine.server.Synchronization
All Implemented Interfaces:
java.io.Serializable

public class Synchronization
extends java.lang.Object
implements java.io.Serializable

This object represents a synchronization

Version:
1.0
Author:
SOFTMED
See Also:
Serialized Form

Field Summary
static int STATUS_FAIL
          The synchronization failed
static int STATUS_NOT_EXDECUTED
          The synchronization is not executed
static int STATUS_RUNNING
          The synchronization is running
static int STATUS_SUCCESS
          The synchronization succed
 
Constructor Summary
Synchronization()
          Construct a Synchronization object
 
Method Summary
 Source getFromSource()
          Get the from source
 View getFromView()
          Get the from view
 java.util.Date getLastDone()
          Get the date of the last execution
 int getLastStatus()
          Get the status of the last execution
 java.lang.String getName()
          Get the name of the synchronization
 Source getToSource()
          Get the to source
 View getToView()
          Get the to view
 java.lang.String getUrlMapping()
          Get the url of the mapping file
 long lastModified()
           
 void setFromSource(Source fromSource)
          Set the from source
 void setFromView(View fromView)
          Set the from view
 void setLastDone(java.util.Date lastDone)
          Se the date of the last execution
 void setLastStatus(int lastStatus)
          Set the status of the las execution
 void setName(java.lang.String name)
          Set the name of the synchronization
 void setToSource(Source toSource)
          Set the to source
 void setToView(View toView)
          Set the to view
 void setUrlMapping(java.lang.String urlMapping)
          Set the url of the mapping file
 java.lang.String toString()
          Use for debug only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_NOT_EXDECUTED

public static final int STATUS_NOT_EXDECUTED
The synchronization is not executed

See Also:
Constant Field Values

STATUS_RUNNING

public static final int STATUS_RUNNING
The synchronization is running

See Also:
Constant Field Values

STATUS_SUCCESS

public static final int STATUS_SUCCESS
The synchronization succed

See Also:
Constant Field Values

STATUS_FAIL

public static final int STATUS_FAIL
The synchronization failed

See Also:
Constant Field Values
Constructor Detail

Synchronization

public Synchronization()
Construct a Synchronization object

Method Detail

setName

public void setName(java.lang.String name)
Set the name of the synchronization

Parameters:
name -

getName

public java.lang.String getName()
Get the name of the synchronization


setFromSource

public void setFromSource(Source fromSource)
Set the from source

Parameters:
fromSource - the from source

getFromSource

public Source getFromSource()
Get the from source


setFromView

public void setFromView(View fromView)
Set the from view

Parameters:
fromView - the from view

getFromView

public View getFromView()
Get the from view


setToSource

public void setToSource(Source toSource)
Set the to source

Parameters:
toSource - the to source

getToSource

public Source getToSource()
Get the to source


setToView

public void setToView(View toView)
Set the to view

Parameters:
toView - the to view

getToView

public View getToView()
Get the to view


setUrlMapping

public void setUrlMapping(java.lang.String urlMapping)
Set the url of the mapping file

Parameters:
urlMapping - the url of the mapping file

getUrlMapping

public java.lang.String getUrlMapping()
Get the url of the mapping file


getLastDone

public java.util.Date getLastDone()
Get the date of the last execution


setLastStatus

public void setLastStatus(int lastStatus)
Set the status of the las execution

Parameters:
lastStatus - the status of the last execution

getLastStatus

public int getLastStatus()
Get the status of the last execution


lastModified

public long lastModified()
                  throws OpenSyncException,
                         java.io.IOException
Throws:
OpenSyncException
java.io.IOException

toString

public java.lang.String toString()
Use for debug only


setLastDone

public void setLastDone(java.util.Date lastDone)
Se the date of the last execution

Parameters:
lastDone - the date of the last execution


Copyright © 2004 sourceforge. All Rights Reserved.