OpenNTF / org.openntf.domino

Open replacement for lotus.domino package in HCL Domino
Apache License 2.0
65 stars 34 forks source link

Session as signer #143

Closed degiorgig closed 8 years ago

degiorgig commented 8 years ago

Hi,

is there any way to get the session as a signer with the optntf API?

Session signerSession = ExtLibUtil.getCurrentSessionAsSigner();

cheers G

paulswithers commented 8 years ago

That will work in XPages if you have godmode set as one of the switches. Alternatively ExtLibUtil.resolveVariable("sessionAsSigner") or, without the switch, ExtLibUtil.resolveVariable("openSessionAsSigner")

paulswithers commented 8 years ago

There's also an ODA chat on OpenNTF's Slack channel. Just register to the OpenNTF Slack from http://openntf.org and it's a channel you can add

degiorgig commented 8 years ago

I was thinking about the session class, there is no factory for that. I know I can read and use the extension lib to gather it.

How would you cast a lotus.domino.Session into an org.openntf.domino.Session? thanks for your reply G.