|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAgent
Represents notes agents.
Field Summary | |
---|---|
static int |
ERROR_RUN
Return value of method runOnServer if an exception occurred. |
static int |
TARGET_ALL_DOCS
Target constant: TARGET_ALL_DOCS. |
static int |
TARGET_ALL_DOCS_IN_VIEW
Target constant: TARGET_ALL_DOCS_IN_VIEW. |
static int |
TARGET_NEW_DOCS
Target constant: TARGET_NEW_DOCS. |
static int |
TARGET_NEW_OR_MODIFIED_DOCS
Target constant: TARGET_NEW_OR_MODIFIED_DOCS. |
static int |
TARGET_NONE
Target constant: TARGET_NONE. |
static int |
TARGET_RUN_ONCE
Target constant: TARGET_RUN_ONCE. |
static int |
TARGET_SELECTED_DOCS
Target constant: TARGET_SELECTED_DOCS. |
static int |
TARGET_UNREAD_DOCS_IN_VIEW
Target constant: TARGET_UNREAD_DOCS_IN_VIEW. |
static int |
TRIGGER_AFTER_MAIL_DELIVERY
Trigger constant: TRIGGER_AFTER_MAIL_DELIVERY. |
static int |
TRIGGER_BEFORE_MAIL_DELIVERY
Trigger constant: TRIGGER_BEFORE_MAIL_DELIVERY. |
static int |
TRIGGER_DOC_PASTED
Trigger constant: TRIGGER_DOC_PASTED. |
static int |
TRIGGER_DOC_UPDATE
Trigger constant: TRIGGER_DOC_UPDATE. |
static int |
TRIGGER_MANUAL
Trigger constant: TRIGGER_MANUAL. |
static int |
TRIGGER_NONE
Trigger constant: NONE. |
static int |
TRIGGER_SCHEDULED
Trigger constant: TRIGGER_SCHEDULED. |
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. |
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. |
Methods inherited from interface de.bea.domingo.DBase |
---|
equals, hashCode, toString |
Field Detail |
---|
static final int TRIGGER_NONE
static final int TRIGGER_SCHEDULED
static final int TRIGGER_AFTER_MAIL_DELIVERY
static final int TRIGGER_DOC_PASTED
static final int TRIGGER_MANUAL
static final int TRIGGER_DOC_UPDATE
static final int TRIGGER_BEFORE_MAIL_DELIVERY
static final int TARGET_NONE
static final int TARGET_ALL_DOCS
static final int TARGET_NEW_DOCS
static final int TARGET_NEW_OR_MODIFIED_DOCS
static final int TARGET_SELECTED_DOCS
static final int TARGET_ALL_DOCS_IN_VIEW
static final int TARGET_UNREAD_DOCS_IN_VIEW
static final int TARGET_RUN_ONCE
static final int ERROR_RUN
Method Detail |
---|
java.lang.String getComment()
java.lang.String getCommonOwner()
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.
true
if the agent can be run, else false
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.
enabled
- true
if the agent can be run, else false
boolean isNotesAgent()
true
if the agent can run in the Notes client environment, else false
boolean isPublic()
true
if an agent is public, else false
.boolean isWebAgent()
true
if an agent can run in a Web browser environment, else false
.java.util.Calendar getLastRun()
java.lang.String getName()
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.
java.lang.String getParameterDocID()
Usage
Use getDocumentByID in Database to get a document through its NoteID.
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.
java.lang.String getServerName()
void setServerName(java.lang.String serverName)
Usage
The value returned by getServerName depends upon whether the agent is scheduled:
serverName
- the name of the server on which the agent should runsint 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
int getTrigger()
void remove()
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.
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.
noteId
- the NoteID of a document. The value is passed to the ParameterDocID property of the called agent.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.
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.
noteId
- the NoteID of a document. The value is passed to the ParameterDocID property of the called agent.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |