base.jdbs
Class Backup

java.lang.Object
  extended by java.util.Observable
      extended by base.jdbs.Backup
All Implemented Interfaces:
IXMLSaveable

public class Backup
extends java.util.Observable
implements IXMLSaveable


Constructor Summary
  Backup(org.w3c.dom.Document document)
           
protected Backup(java.lang.String guId, java.lang.String name, java.lang.String description, java.util.Date creationDate, java.util.Date expirationDate, SecurityLevel securityLevel)
           
 
Method Summary
 void addAllFile(java.io.File[] file)
          This method adds a set of files to the backups' collection.
 void addFile(java.io.File file)
          This method adds a file to the backups' collection.
 java.util.Date getCreationDate()
           
 java.lang.String getDescription()
           
 java.util.Date getExpirationDate()
           
 FileDescriptor[] getFileDescriptor()
          This method returns an array of backups'collected files.
 java.lang.String getGuId()
           
 java.lang.String getName()
           
 SecurityLevel getSecurityLevel()
           
 void removeAllFile(java.io.File[] file)
          This method removes a set of files from the backups' collection.
 void removeFile(java.io.File file)
          This method removes a file from the backup's collection.
 void setCreationDate(java.util.Date creationDate)
           
 void setDescription(java.lang.String description)
           
 void setExpirationDate(java.util.Date expirationDate)
           
 void setName(java.lang.String name)
           
 void setSecurityLevel(SecurityLevel securityLevel)
           
 org.w3c.dom.Node toXml(org.w3c.dom.Document document)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Backup

protected Backup(java.lang.String guId,
                 java.lang.String name,
                 java.lang.String description,
                 java.util.Date creationDate,
                 java.util.Date expirationDate,
                 SecurityLevel securityLevel)
Parameters:
guId - The backups' global unique identifier.
name - The backups' name.
description - The backups' description.
creationDate - The backups' creation date.
expirationDate - The backups' expiration date.
securityLevel - The backups' security level.

Backup

public Backup(org.w3c.dom.Document document)
Method Detail

getGuId

public java.lang.String getGuId()
Returns:
Returns the guId.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getCreationDate

public java.util.Date getCreationDate()
Returns:
Returns the creationDate.

getExpirationDate

public java.util.Date getExpirationDate()
Returns:
Returns the expirationDate.

getSecurityLevel

public SecurityLevel getSecurityLevel()
Returns:
the securityLevel

addFile

public void addFile(java.io.File file)
This method adds a file to the backups' collection.

Parameters:
file - The file to be added to the backups'collection.

removeFile

public void removeFile(java.io.File file)
This method removes a file from the backup's collection.

Parameters:
file - The file to be removed from the backup's collection.

addAllFile

public void addAllFile(java.io.File[] file)
This method adds a set of files to the backups' collection.

Parameters:
file - The file set to be added to the backups'collection.

removeAllFile

public void removeAllFile(java.io.File[] file)
This method removes a set of files from the backups' collection.

Parameters:
file - The file set to be removed from the backups'collection.

getFileDescriptor

public FileDescriptor[] getFileDescriptor()
This method returns an array of backups'collected files.

Returns:
The file collection associated to the backup.

toXml

public org.w3c.dom.Node toXml(org.w3c.dom.Document document)
Specified by:
toXml in interface IXMLSaveable

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The creationDate to set.

setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)
Parameters:
expirationDate - The expirationDate to set.

setSecurityLevel

public void setSecurityLevel(SecurityLevel securityLevel)
Parameters:
securityLevel - The securityLevel to set.


Copyright © 2006 SF.net. All Rights Reserved.