|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticdesktop.aperture.crawler.base.CrawlerBase org.semanticdesktop.aperture.outlook.OutlookCrawler
public class OutlookCrawler
Crawler that wraps Microsoft Outlook. It is not very exhaustive and can not read all variables out of an outlook system.
There have been requests to crawl e-mail after everything else, because e-mail takes very
long.
To distinguish the e-mail folders to be crawled, we had to find a way to identify them.
DefaultItemType of e-mail folders is 0
, DefaultMessageClass is
"IPM.Note"
. This is insofar a problem, as also contacts and deleted items
folders have these properties. Hence we sort folders with DefaultItemType 0 later,
but not if their name contains "*ontacts" or "Kontakte" (which is a hack).
Copyright: Copyright (c) 2003-2006
Organisation: DFKI.de, Aduna.Biz
Nested Class Summary | |
---|---|
static class |
OutlookCrawler.OLConst
Constants from outlook |
Field Summary | |
---|---|
protected String |
calendarTimeZone
default calendar timezone should be one of the timezones from the website. |
static String |
ITEMID_IDENTIFIERPREFIX
A prefix to distinguish outlook item-identifiers from other nao:identifiers. |
static String |
NS
Namespace |
static String |
OUTLOOKURIPREFIX
|
Fields inherited from class org.semanticdesktop.aperture.crawler.base.CrawlerBase |
---|
accessData, accessorRegistry, crawlReportFile, source, stopRequested |
Constructor Summary | |
---|---|
OutlookCrawler()
|
Method Summary | |
---|---|
protected void |
beginCall()
|
void |
crashChecker(Throwable cause)
check if it would be wise to restart our outlook adaption |
protected ExitCode |
crawlObjects()
crawling outlook. |
protected void |
endCall()
|
protected OutlookAccessor |
getAccessor()
|
protected com.jacob.com.Dispatch |
getOutlookMapi()
outlookMapi, the fabulous "default namespace" of outlook, useful to retrieve many things. |
String |
getUriPrefix()
|
boolean |
hasRedemption()
can this OLAdapter be used in combination with redemption? |
void |
killKillKill()
due to enduring problems with release, this method is used to kill outlook crawler for sure |
void |
open(URI uri)
Opens the resource indicated by the specified URI in the application that the user typically would use to access such a resource. |
void |
release()
the release of the Outlook Adapter ATTENTION: If the Outlook Adapter is not released properly, It will halt the whole application as the MainSTA has to be released. |
void |
setDataSource(DataSource source)
Sets the data source |
Methods inherited from class org.semanticdesktop.aperture.crawler.base.CrawlerBase |
---|
clear, clear, crawl, getAccessData, getCrawlerHandler, getCrawlReport, getCrawlReportFile, getDataAccessorRegistry, getDataSource, getRDFContainerFactory, inDomain, isStopRequested, reportAccessingObject, reportDeletedDataObject, reportFatalErrorCause, reportFatalErrorCause, reportFatalErrorCause, reportModifiedDataObject, reportNewDataObject, reportUnmodifiedDataObject, reportUntouched, runSubCrawler, setAccessData, setCrawlerHandler, setCrawlReportFile, setDataAccessorRegistry, stop, storeCrawlReport, touchObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OUTLOOKURIPREFIX
public static final String NS
public static final String ITEMID_IDENTIFIERPREFIX
protected String calendarTimeZone
Constructor Detail |
---|
public OutlookCrawler()
Method Detail |
---|
protected void beginCall()
public void crashChecker(Throwable cause)
cause
- protected ExitCode crawlObjects()
crawlObjects
in class CrawlerBase
protected void endCall()
protected OutlookAccessor getAccessor()
protected com.jacob.com.Dispatch getOutlookMapi()
public String getUriPrefix()
public boolean hasRedemption()
public void open(URI uri) throws IOException
DataOpener
open
in interface DataOpener
uri
- The uri of the resource that should be opened
IOException
- In case of an I/O error.public void release()
public void killKillKill()
public void setDataSource(DataSource source)
CrawlerBase
setDataSource
in class CrawlerBase
source
- the new data source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |