Domino Code Fragment
Code Name* CommonOwner property | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.191.132.194 | |
Description* This example prints the common owner name of the current agent. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class commonowneragent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
Agent agent = ac.getCurrentAgent();
System.out.println
("Current Agent is " + agent.getName());
System.out.println
("Commomowner : " + agent.getCommonOwner());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}