xpages - OpenNTF Domino API (ODA) WrapperFactory.fromLotus Usage -


i have situation need org.openntf.domino.document object lotus.domino.document object. found examples using factory.fromlotus() depreciated.

the javadocs pointed me wrapperfactory.fromlotus() unsure how use this. doing this:

document doc = wrapperfactory.fromlotus(lotusdoc, org.openntf.domino.document.class, null);

eclipse marking line error:

the method fromlotus(d, factoryschema, p) in type wrapperfactory not applicable arguments (document, class, null)

how use wrapperfactory.fromlotus()?

that method wants original lotus object (as you're doing), "schema" object, , parent.

for schema, can use org.openntf.domino.document.schema.

for parent, you'll need pass in wrapped version of parent database object. believe can go chain getting database , session - wrap session session s = fac.fromlotus(lotussession, session.schema, null), db database db = fac.fromlotus(lotusdatabase, database.schema, s), doc document doc = fac.fromlotus(lotusdoc, document.schema, db).


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -