Articles in this section

The Groovy Function

Groovy is an interpreted language for the JVM. Domains and DomEL use Groovy in the following ways:

  • The " <principalExpression>" tag in an access grant in the Domain Security file uses a Groovy expression to get the current authentication object and determine its access privileges, along with the user and roles associated with the object. In this case, Groovy is used directly inside the tag.
  • You can use the DomEL groovy() function as part of a DomEL expression. The DomEl groovy function takes a single string argument that is interpreted as Groovy code. The output of the function is a string that is put into the SQL.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.