|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.AbstractMonitorEnabled de.bea.domingo.http.BaseHttp de.bea.domingo.http.AgentHttp
public final class AgentHttp
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.bea.domingo.http.BaseHttp |
---|
BaseHttp.BaseHandler |
Field Summary |
---|
Fields inherited from class de.bea.domingo.http.BaseHttp |
---|
DATETIME_STRING_LENGTH, MAX_DATETIME_LENGTH, NUM_DATETIME_VALUES |
Fields inherited from interface de.bea.domingo.DAgent |
---|
ERROR_RUN, TARGET_ALL_DOCS, TARGET_ALL_DOCS_IN_VIEW, TARGET_NEW_DOCS, TARGET_NEW_OR_MODIFIED_DOCS, TARGET_NONE, TARGET_RUN_ONCE, TARGET_SELECTED_DOCS, TARGET_UNREAD_DOCS_IN_VIEW, TRIGGER_AFTER_MAIL_DELIVERY, TRIGGER_BEFORE_MAIL_DELIVERY, TRIGGER_DOC_PASTED, TRIGGER_DOC_UPDATE, TRIGGER_MANUAL, TRIGGER_NONE, TRIGGER_SCHEDULED |
Constructor Summary | |
---|---|
AgentHttp(NotesHttpFactory theFactory,
DBase theParent,
DNotesMonitor monitor,
java.lang.String agentName)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getComment()
The comment that describes an agent, as entered by the agent's designer. |
java.lang.String |
getCommonOwner()
The common name of the person who last modified and saved an agent. |
(package private) static AgentHttp |
getInstance(NotesHttpFactory theFactory,
DBase theParent,
DNotesMonitor monitor,
java.lang.String agentName)
Factory method for instances of this class. |
java.util.Calendar |
getLastRun()
The date that an agent last ran. |
java.lang.String |
getName()
The name of an agent. |
java.lang.String |
getOwner()
The name of the person who last modified and saved an agent. |
java.lang.String |
getParameterDocID()
Returns the NoteID of a document passed in by Run or RunOnServer. |
java.lang.String |
getQuery()
The text of the query used by an agent to select documents. |
java.lang.String |
getServerName()
The name of the server on which an agent runs. |
int |
getTarget()
Indicates which documents this agent acts on. |
int |
getTrigger()
Indicates when this agent runs. |
boolean |
isEnabled()
Indicates if an agent is able to run or not. |
boolean |
isNotesAgent()
Indicates if an agent can run in the Notes client environment. |
boolean |
isPublic()
Indicates if an agent is public or personal. |
boolean |
isWebAgent()
Indicates if an agent can run in a Web browser environment. |
void |
remove()
Permanently deletes an agent from a database. |
void |
run()
Runs the agent. |
void |
run(java.lang.String noteId)
Runs the agent. |
int |
runOnServer()
Runs the agent on the computer containing the database. |
int |
runOnServer(java.lang.String noteId)
Runs the agent on the computer containing the database. |
void |
save()
Saves changes made to the agent. |
void |
setEnabled(boolean enabled)
Indicates if an agent is able to run or not. |
void |
setServerName(java.lang.String serverName)
The name of the server on which an agent runs. |
java.lang.String |
toString()
Returns a short description of an instance. |
Methods inherited from class de.bea.domingo.http.BaseHttp |
---|
execute, execute, executeDomingoDatabaseUrl, executeUrl, getDSession, getFactory, getParent, parseViewEntryDateTime, postDXL, toStringIntern |
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled |
---|
getMonitor, setMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.bea.domingo.DBase |
---|
equals, hashCode |
Constructor Detail |
---|
public AgentHttp(NotesHttpFactory theFactory, DBase theParent, DNotesMonitor monitor, java.lang.String agentName)
theFactory
- the controlling factorytheParent
- the parent objectmonitor
- the monitoragentName
- the name of the agentMethod Detail |
---|
static AgentHttp getInstance(NotesHttpFactory theFactory, DBase theParent, DNotesMonitor monitor, java.lang.String agentName)
theFactory
- the controlling factorytheParent
- the parent the session that produced the databasemonitor
- the monitor that handles loggingagentName
- name of a Notes agent
public java.lang.String getComment()
getComment
in interface DAgent
DAgent.getComment()
public java.lang.String getCommonOwner()
getCommonOwner
in interface DAgent
DAgent.getCommonOwner()
public boolean isEnabled()
Usage
This property is intended for use with scheduled agents, which can be enabled and disabled. This property always returns true for hidden agents and agents that are run from a menu.
You must call Save to make any change effective.
If the agent is open in the UI, a change is not immediately reflected. The agent must be closed and reopened.
isEnabled
in interface DAgent
true
if the agent can be run, else false
DAgent.isEnabled()
public void setEnabled(boolean enabled)
Usage
This property is intended for use with scheduled agents, which can be enabled and disabled. This property always returns true for hidden agents and agents that are run from a menu.
You must call Save to make any change effective.
If the agent is open in the UI, a change is not immediately reflected. The agent must be closed and reopened.
setEnabled
in interface DAgent
enabled
- true
if the agent can be run, else false
DAgent.setEnabled(boolean)
public boolean isNotesAgent()
isNotesAgent
in interface DAgent
true
if the agent can run in the Notes client environment, else false
DAgent.isNotesAgent()
public boolean isPublic()
isPublic
in interface DAgent
true
if an agent is public, else false
.DAgent.isPublic()
public boolean isWebAgent()
isWebAgent
in interface DAgent
true
if an agent can run in a Web browser environment, else false
.DAgent.isWebAgent()
public java.util.Calendar getLastRun()
getLastRun
in interface DAgent
DAgent.getLastRun()
public java.lang.String getName()
getName
in interface DAgent
DAgent.getName()
public java.lang.String getOwner()
Usage
If the owner's name is hierarchical, this property returns the fully distinguished name.
Saving the agent changes the owner immediately. However, if you subsequently call Agent.owner within the same Session, the previous owner's name will be returned. The ownership change is not reflected in properties until the next time a Session is obtained.
getOwner
in interface DAgent
DAgent.getOwner()
public java.lang.String getParameterDocID()
Usage
Use getDocumentByID in Database to get a document through its NoteID.
getParameterDocID
in interface DAgent
DAgent.getParameterDocID()
public java.lang.String getQuery()
In the Agent Builder, a query is defined by the searches added to the agent using the Add Search button.
If no query is defined with the Add Search button, the Query property returns an empty string, even if the agent runs a formula that has its own SELECT statement or a script that selects specific documents.
getQuery
in interface DAgent
DAgent.getQuery()
public java.lang.String getServerName()
getServerName
in interface DAgent
DAgent.getServerName()
public void setServerName(java.lang.String serverName)
Usage
The value returned by getServerName depends upon whether the agent is scheduled:
setServerName
in interface DAgent
serverName
- the name of the server on which the agent should runsDAgent.setServerName(java.lang.String)
public int getTarget()
Usage
This property corresponds to "Which document(s) should it act on?" in the Designer UI for agents. The trigger limits the target possibilities. The TARGET_NONE targets are the only possibilities for their corresponding triggers.
Legal values
getTarget
in interface DAgent
DAgent.getTarget()
public int getTrigger()
getTrigger
in interface DAgent
DAgent.getTrigger()
public void remove()
remove
in interface DAgent
DAgent.remove()
public void run()
Usage
You cannot run an agent recursively (cannot call it from itself).
The user cannot interact directly with a called agent. User output goes to the Domino log.
You cannot debug a called agent.
For local operations, the agent runs on the computer running the current program. See runOnServer to do otherwise.
For remote (IIOP) operations, the agent runs on the server handling the remote calls.
run
in interface DAgent
DAgent.run()
public void run(java.lang.String noteId)
Usage
You cannot run an agent recursively (cannot call it from itself).
The user cannot interact directly with a called agent. User output goes to the Domino log.
You cannot debug a called agent.
For local operations, the agent runs on the computer running the current program. See runOnServer to do otherwise.
For remote (IIOP) operations, the agent runs on the server handling the remote calls.
run
in interface DAgent
noteId
- the NoteID of a document. The value is passed to the ParameterDocID property of the called agent.DAgent.run(java.lang.String)
public int runOnServer()
Usage
You cannot run an agent recursively (cannot call it from itself)..
The rules governing the access level required to run an agent using the runOnServer method are the same as for any other server-based agent. For information regarding agent security, see "Setting up agent security" in Application Development with Domino Designer..
The user cannot interact directly with a called agent. User output goes to the Domino log..
You cannot debug a called agent..
On a local database, the runOnServer method works like the run method, that is, runs the agent on the local computer or the server handling the remote (IIOP) calls..
Note This behavior is new with Release 5.0.2. The former behavior was to issue the error message "runOnServer must be used with a remote database.".
If a Notes client invokes runOnServer, security is through the signer of the agent.
runOnServer
in interface DAgent
DAgent.runOnServer()
public int runOnServer(java.lang.String noteId)
Usage
You cannot run an agent recursively (cannot call it from itself)..
The rules governing the access level required to run an agent using the runOnServer method are the same as for any other server-based agent. For information regarding agent security, see "Setting up agent security" in Application Development with Domino Designer..
The user cannot interact directly with a called agent. User output goes to the Domino log..
You cannot debug a called agent..
On a local database, the runOnServer method works like the run method, that is, runs the agent on the local computer or the server handling the remote (IIOP) calls..
Note This behavior is new with Release 5.0.2. The former behavior was to issue the error message "runOnServer must be used with a remote database.".
If a Notes client invokes runOnServer, security is through the signer of the agent.
runOnServer
in interface DAgent
noteId
- the NoteID of a document. The value is passed to the ParameterDocID property of the called agent.
DAgent.runOnServer(java.lang.String)
public void save()
Usage
Saving the agent changes the owner immediately. However, if you subsequently call Agent.owner within the same Session, the previous owner's name will be returned. The ownership change is not reflected in properties until the next time a Session is obtained.
You must call Save after setServerName and setEnabled, or the new value is lost.
save
in interface DAgent
DAgent.save()
public java.lang.String toString()
toString
in interface DBase
toString
in class BaseHttp
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |