ScriptedAttribute: is there a coding guide (Objects/Classes/methods and for loops)?
Cantor, Scott
cantor.2 at osu.edu
Thu Jul 29 20:50:27 UTC 2021
The Javadocs for whatever Java classes you're dealing with are the guide for anything that's Java. The rest is Javascript, such as:
> Where do I find docs on the correct use of for loops?
Any book or reference on ECMA/Javascript should be a close enough approximation when there aren't touchpoints with Java involved. For the Java touchpoints that deal with type conversions, importing and creating classes, etc. you have to go to the reference material for the Javascript implementation, like Nashorn or Rhino, when things get weird, such as dealing with string data that exists on both sides of the boundary.
Loops are the same. When applying JS constructs to Java objects, what works or doesn't gets weird and depends on the scripting engine at times.
> What class is "affiliation"? What methods are supported? How to I copy an object?
The classes of the objects exposed by the IdP are documented in the relevant wiki pages, with links to the Javadocs for them.
In the wiki, it says specifically "In addition, each defined dependency of the connector, it exists, will be present via an object which implements ScriptedIdPAttribute" (with a link to that class).
-- Scott
More information about the users
mailing list