dist1.acb.ACBpoint
Class PointDB

java.lang.Object
  extended bydist1.acb.ACBpoint.PointDB

public class PointDB
extends java.lang.Object

Class that takes care for local saving of published information of the user

Version:
$Revision: 1.20 $
Author:
Lazar Adzigogov

Method Summary
 void addDocument(SharedDocument sharedDocument)
          Adds shared document to internal LinkedList sharedDocuments
 boolean checkDocument()
          Check whether the file exist or the user moved in different location
static PointDB getInstance()
          Since it is a layer, getInstance returns a reference to the layer
 java.util.LinkedList getSharedDocuments()
          Getter for property sharedDocuments.
 void loadDownloadingDocuments()
          DOCUMENT ME!
 void loadSharedDocuments()
          load all information from local storage
 void removeDocument()
          remove shared document from internal LinkedList sharedDocuments
 void saveDownloadingDocuments()
          DOCUMENT ME!
 void saveSharedDocuments()
          save internal LinkedList sharedDocuments to local storage
 void setSharedDocuments(java.util.LinkedList sharedDocuments)
          Setter for property sharedDocuments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PointDB getInstance()
Since it is a layer, getInstance returns a reference to the layer

Returns:
reference to PointDB

setSharedDocuments

public void setSharedDocuments(java.util.LinkedList sharedDocuments)
Setter for property sharedDocuments.

Parameters:
sharedDocuments - New value of property sharedDocuments.

getSharedDocuments

public java.util.LinkedList getSharedDocuments()
Getter for property sharedDocuments.

Returns:
Value of property sharedDocuments.

addDocument

public void addDocument(SharedDocument sharedDocument)
Adds shared document to internal LinkedList sharedDocuments

Parameters:
sharedDocument - DOCUMENT ME!

checkDocument

public boolean checkDocument()
Check whether the file exist or the user moved in different location

Returns:
true, if the path of the file is correct false, otherwise

loadDownloadingDocuments

public void loadDownloadingDocuments()
DOCUMENT ME!


loadSharedDocuments

public void loadSharedDocuments()
load all information from local storage


removeDocument

public void removeDocument()
remove shared document from internal LinkedList sharedDocuments


saveDownloadingDocuments

public void saveDownloadingDocuments()
DOCUMENT ME!


saveSharedDocuments

public void saveSharedDocuments()
save internal LinkedList sharedDocuments to local storage



Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.