org.tigris.eyebrowse
Class ListMaint
java.lang.Object
|
+--org.tigris.eyebrowse.ListMaint
- public class ListMaint
- extends java.lang.Object
ListMaint
Methods for adding, removing eyebrowse lists and mailbox files.
These methods are called by the user programs such as AddList, DeleteList,
etc.
- Since:
- 1.0
- Author:
- Brian Goetz - Quiotix Corp, Daniel Rall, Ed Korthof
- See Also:
org.tigris.eyebrowse.programs.AddList
,
org.tigris.eyebrowse.programs.AddListFile
,
org.tigris.eyebrowse.programs.DeleteList
,
org.tigris.eyebrowse.programs.UpdateList
Inner Class Summary |
protected static class |
ListMaint.MboxInfo
Internal data structure used for passing around mbox meta data. |
Field Summary |
protected static org.tigris.eyebrowse.util.EyebrowseLogger |
log
Log file to write to. |
Method Summary |
static void |
addList(java.lang.String list,
java.lang.String descr,
int ID)
Adds a list to the Eyebrowse database. |
static void |
addList(java.lang.String list,
java.lang.String descr,
java.lang.Integer ID)
Adds a list to the Eyebrowse database. |
static void |
addListFile(java.lang.String listName,
java.lang.String filePath)
Adds a new file to an existing list. |
static void |
deleteList(java.lang.String list)
Delete a list from the eyebrowse database. |
static void |
updateList(EyebrowseDb.ListInfo list,
boolean doIndex)
Update a list. |
static void |
updateList(java.lang.String listName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.tigris.eyebrowse.util.EyebrowseLogger log
- Log file to write to.
ListMaint
public ListMaint()
addList
public static void addList(java.lang.String list,
java.lang.String descr,
java.lang.Integer ID)
throws EyebrowseException
- Adds a list to the Eyebrowse database. If ID.intValue() == -1,
the ID will be generated from an autoincrement sequence.
- Parameters:
list
- Name of the list to adddescr
- Brief description of the list.ID
- Integer version of the list ID
addList
public static void addList(java.lang.String list,
java.lang.String descr,
int ID)
throws EyebrowseException
- Adds a list to the Eyebrowse database. If ID == -1, the ID
will be generated from an autoincrement sequence.
- Parameters:
list
- Name of the list to add.descr
- Brief description of the list.
addListFile
public static void addListFile(java.lang.String listName,
java.lang.String filePath)
throws EyebrowseException
- Adds a new file to an existing list. The new file becomes the active
file for the list, meaning that when the list is updated, the active
file will be scanned for new messages. Note that once the previously
active file is no longer active, it won't be scanned again -- so you
should probably do an updateList on the list first before adding
new files to it.
- Parameters:
listName
- Name of the list to which the file is being addedfilePath
- Absolute path to the new active file for the list- Throws:
EyebrowseException
-
deleteList
public static void deleteList(java.lang.String list)
throws EyebrowseException
- Delete a list from the eyebrowse database. Deletes all information
about the list and the messages in the list, but doesn't delete the
list mailbox files from disk.
- Parameters:
list
- Name of the list to delete.- Throws:
EyebrowseException
-
updateList
public static void updateList(java.lang.String listName)
throws EyebrowseException
updateList
public static void updateList(EyebrowseDb.ListInfo list,
boolean doIndex)
throws EyebrowseException
- Update a list. Scan the active mailbox file in the list to see if there
have been any messages added since the last update, and if so, process
the messages and update the database.
- Parameters:
list
- Name of the list to update.- Throws:
EyebrowseException
- Incorrect or out of sync data.
Copyright © 2000 Quiotix Corp. All Rights Reserved.