com.opencms.file
Class CmsExportLink

java.lang.Object
  |
  +--com.opencms.file.CmsExportLink

public class CmsExportLink
extends Object

Describes a link for the static export.

Version:
1.0
Author:
Hanjo Riege

Constructor Summary
CmsExportLink(int linkId, String link, long lastExportDate, Vector dependencies)
          Constructor, creates a new CmsExportLink object.
CmsExportLink(String link, long lastExportDate, Vector dependencies)
          Constructor, creates a new CmsExportLink object.
 
Method Summary
 void addDependency(String dependency)
          Adds one dependency to the dependencies vector
 Vector getDependencies()
          returns the dependencies vector
 int getId()
          returns the database id of this link
 long getLastExportDate()
          gets the export time
 String getLink()
          returns the request.
 boolean getProcessedState()
          returns if this request is already exported.
 void setDeqendencies(Vector dependencies)
          sets the dependencies vector (old values are deleted)
 void setLastExportDate(long date)
          sets the export time
 void setLinkId(int id)
          sets the id.
 void setProcessedState(boolean processed)
          indicates that this request is processed.
 String toString()
          Returns a string-representation for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsExportLink

public CmsExportLink(int linkId,
                     String link,
                     long lastExportDate,
                     Vector dependencies)
Constructor, creates a new CmsExportLink object.

Parameters:
dependencies - The dep Vector.

CmsExportLink

public CmsExportLink(String link,
                     long lastExportDate,
                     Vector dependencies)
Constructor, creates a new CmsExportLink object.

Parameters:
dependencies - The dep Vector.
Method Detail

addDependency

public void addDependency(String dependency)
Adds one dependency to the dependencies vector

Parameters:
dependency - The rootname of a OpenCms resource this request depends on.

getDependencies

public Vector getDependencies()
returns the dependencies vector

Returns:
dependencies

getId

public int getId()
returns the database id of this link


getLastExportDate

public long getLastExportDate()
gets the export time

Returns:
long date.

getLink

public String getLink()
returns the request.


getProcessedState

public boolean getProcessedState()
returns if this request is already exported.


setDeqendencies

public void setDeqendencies(Vector dependencies)
sets the dependencies vector (old values are deleted)


setLinkId

public void setLinkId(int id)
sets the id.


setLastExportDate

public void setLastExportDate(long date)
sets the export time


setProcessedState

public void setProcessedState(boolean processed)
indicates that this request is processed.

Parameters:
processed - true or false.

toString

public String toString()
Returns a string-representation for this object. This can be used for debugging.

Overrides:
toString in class Object
Returns:
string-representation for this object.