public interface DAgentContext
| 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.
|
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.
|
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.
|
void updateProcessedDoc(DDocument document)
document - a documentIterator unprocessedFTSearch(String query, int maxDocs)
query - The full-text querymaxDocs - The maximum number of documents you want returned; 0 means all matching documentsIterator unprocessedFTSearch(String query, int maxDocs, int sortOpt, int otherOpt)
query - The full-text querymaxDocs - The maximum number of documents you want returned; 0 means all matching documentssortOpt - sorting optionsotherOpt - other optionsIterator unprocessedSearch(String query, Calendar dateTime, int maxDocs)
query - A Lotus Domino formula that defines the selection criteriadateTime - A cutoff datemaxDocs - The maximum number of documents you want returned; 0 means all matching documentsString 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.DAgent getCurrentAgent()
DDatabase getCurrentDatabase()
DDocument getDocumentContext()
int getLastExitStatus()
Calendar getLastRun()
DDocument getSavedData()
Iterator getUnprocessedDocuments()
Copyright © 2005–2020. All rights reserved.