|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.opensync.engine.server.config.ConfigDoc
This class represents the document of the OpenSync server
| Field Summary | |
protected Agendas |
agendas
The agendas |
protected long |
lastModified
The date of the last modification |
protected Sources |
sources
The sources |
protected Synchronizations |
synchronizations
The synchronizations |
| Constructor Summary | |
ConfigDoc()
Construct the ConfigDoc object |
|
| Method Summary | |
long |
checkLastModified(long lastModified)
Return the lastModified from the files used in the Agendas Thus, we follow the Agendas, Tasks, Synchronisations, Sources, Views hierarchy to find XML configurations files which may have changed since the last update of the opensync.dat file in %OPENSYNC_HOME%\etc folder. |
void |
checkSourcesAvailability()
|
void |
checkXML()
|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
Agendas |
getAgendas()
Get all agendas |
static java.lang.String |
getConfigFileName()
|
long |
getLastModified()
Get the date of the last modification |
Source |
getSource(java.lang.String source)
Get a source |
Sources |
getSources()
Get all sources |
Synchronization |
getSynchronization(java.lang.String synchronization)
Get a synchronization |
Synchronizations |
getSynchronizations()
Get all synchronizations |
void |
init()
Initialize the document with parsing the config file |
void |
readFile()
|
protected void |
readObject(java.io.ObjectInputStream ois)
Read the document from a stream |
void |
setLastModified(long lastModified)
|
java.lang.String |
toString()
Use for debug only |
void |
warning(org.xml.sax.SAXParseException exception)
|
protected void |
writeObject(java.io.ObjectOutputStream oos)
Write the document in a stream |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long lastModified
protected Sources sources
protected Synchronizations synchronizations
protected Agendas agendas
| Constructor Detail |
public ConfigDoc()
| Method Detail |
public Synchronizations getSynchronizations()
public Sources getSources()
public Source getSource(java.lang.String source)
source - the source name to getpublic Synchronization getSynchronization(java.lang.String synchronization)
synchronization - the synchronization name to get
public void init()
throws javax.xml.parsers.ParserConfigurationException,
OpenSyncException,
org.xml.sax.SAXException,
java.io.IOException
OpenSyncException
java.io.IOException
org.xml.sax.SAXException
DocumentException
javax.xml.parsers.ParserConfigurationException
public long checkLastModified(long lastModified)
throws java.io.IOException,
OpenSyncException
java.io.IOException
OpenSyncException
public void readFile()
throws javax.xml.parsers.ParserConfigurationException,
OpenSyncException,
org.xml.sax.SAXException,
java.io.IOException
javax.xml.parsers.ParserConfigurationException
OpenSyncException
org.xml.sax.SAXException
java.io.IOExceptionpublic void setLastModified(long lastModified)
public void checkXML()
throws org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.FileNotFoundException,
java.net.MalformedURLException,
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.FileNotFoundException
java.net.MalformedURLException
java.io.IOException
public void checkSourcesAvailability()
throws OpenSyncException
OpenSyncException
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic Agendas getAgendas()
public java.lang.String toString()
protected void writeObject(java.io.ObjectOutputStream oos)
throws java.io.IOException
oos - the stream
java.io.IOException
protected void readObject(java.io.ObjectInputStream ois)
throws java.lang.ClassNotFoundException,
java.io.IOException
ois - the stream
java.io.IOException
java.lang.ClassNotFoundExceptionpublic long getLastModified()
public static java.lang.String getConfigFileName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||