public final class AgentContextProxy extends BaseProxy implements DAgentContext
BaseProxy.DocumentCollectionIteratorDATETIME_STRING_LENGTH, EMPTY_STRING, MAX_DATETIME_LENGTH, NUM_DATETIME_VALUES, RESOURCES| Modifier and Type | Method and Description |
|---|---|
DAgent |
getCurrentAgent()
The agent that's currently running.
|
DDatabase |
getCurrentDatabase()
The database in which the current agent resides.
|
DDocument |
getDocumentContext()
The in-memory document when an agent starts.
|
String |
getEffectiveUserName()
The user name that is in effect for the current agent.
|
static DAgentContext |
getInstance(NotesProxyFactory theFactory,
SessionProxy session,
lotus.domino.AgentContext theAgentContext,
DNotesMonitor monitor)
Factory method for instances of this class.
|
int |
getLastExitStatus()
The exit status code returned by the Agent Manager the last time the current agent ran.
|
Calendar |
getLastRun()
The date and time when the current agent was last executed.
|
DDocument |
getSavedData()
A document that an agent uses to store information between invocations.
|
Iterator |
getUnprocessedDocuments()
The documents in a database that the current agent considers to be
unprocessed.
|
String |
toString()
Returns a short description of an instance.
|
Iterator |
unprocessedFTSearch(String query,
int maxDocs)
Performs a full-text search within the unprocessed documents.
|
Iterator |
unprocessedFTSearch(String query,
int maxDocs,
int sortOpt,
int otherOpt)
Performs a full-text search within the unprocessed documents.
|
Iterator |
unprocessedSearch(String query,
Calendar dateTime,
int maxDocs)
Searches for unprocessed documents which were created or modified since the cutoff date.
|
void |
updateProcessedDoc(DDocument document)
Marks a given document as processed.
|
checkSession, clearNotesObject, convertCalendarsToNotesDateTime, convertListToVector, convertNotesDateTimesToCalendar, convertVectorToList, createCalendar, createDateRange, createDateTime, decrementDateTimeCounter, finalize, getCountDateTime, getDSession, getFactory, getNotesObject, getParent, incrementDateTimeCounter, newException, newException, newException, newRuntimeException, newRuntimeException, newRuntimeException, recycleDateTimeList, refereceHashCode, toStringGeneric, toStringInterngetMonitor, setMonitorpublic static DAgentContext getInstance(NotesProxyFactory theFactory, SessionProxy session, lotus.domino.AgentContext theAgentContext, DNotesMonitor monitor)
theFactory - the controlling factorysession - the session that produced the databasetheAgentContext - Notes agent context objectmonitor - the monitor that handles loggingpublic void updateProcessedDoc(DDocument document)
updateProcessedDoc in interface DAgentContextdocument - a documentDAgentContext.updateProcessedDoc(DDocument)public Iterator unprocessedFTSearch(String query, int maxDocs)
unprocessedFTSearch in interface DAgentContextquery - The full-text querymaxDocs - The maximum number of documents you want returned; 0 means all matching documentsDAgentContext.unprocessedFTSearch(java.lang.String, int)public Iterator unprocessedFTSearch(String query, int maxDocs, int sortOpt, int otherOpt)
unprocessedFTSearch in interface DAgentContextquery - The full-text querymaxDocs - The maximum number of documents you want returned; 0 means all matching documentssortOpt - sorting optionsotherOpt - other optionsDAgentContext.unprocessedFTSearch(java.lang.String, int, int, int)public Iterator unprocessedSearch(String query, Calendar dateTime, int maxDocs)
unprocessedSearch in interface DAgentContextquery - A Lotus Domino formula that defines the selection criteriadateTime - A cutoff datemaxDocs - The maximum number of documents you want returned; 0 means all matching documentsDAgentContext.unprocessedSearch(java.lang.String, java.util.Calendar, int)public String getEffectiveUserName()
DSession.getUserName()return the same
value for a given program.
The exceptions are agents that run on a server, where
getEffectiveUserName is the name of the script's owner and
getUserName is the name of the server on which the script is running.
If the user name is hierarchical, this property returns the fully
distinguished name.getEffectiveUserName in interface DAgentContextDAgentContext.getEffectiveUserName()public DAgent getCurrentAgent()
getCurrentAgent in interface DAgentContextDAgentContext.getCurrentAgent()public DDatabase getCurrentDatabase()
getCurrentDatabase in interface DAgentContextDAgentContext.getCurrentDatabase()public DDocument getDocumentContext()
getDocumentContext in interface DAgentContextDAgentContext.getDocumentContext()public int getLastExitStatus()
getLastExitStatus in interface DAgentContextDAgentContext.getLastExitStatus()public Calendar getLastRun()
getLastRun in interface DAgentContextDAgentContext.getLastRun()public DDocument getSavedData()
getSavedData in interface DAgentContextDAgentContext.getSavedData()public Iterator getUnprocessedDocuments()
getUnprocessedDocuments in interface DAgentContextDAgentContext.getUnprocessedDocuments()Copyright © 2005–2020. All rights reserved.