Provides the Platform Core APIs and Tags
(Quick Reference)
securityInfoAvailable in Controllers, Domains, Taglibs and Services Returns the internal security object representing the current user.The implementation of this method is provided by the security provider you have installed, and the type of the object is entirely dependent on this.No guarantees are made about the type or properties of the returned object.Usage{docx} class PurchaseService { def getPurchases() { Purchase.findAllByUser(securityInfo) } … } {docx}Here the securityInfo object is assumed to be a domain object that is associated to the Purchase domain as the "user" property. |
BeansEvents MethodsGlobal PropertiesPlugin ConventionsScriptsSecurity MethodsSecurity PropertiesSecurity TagsSystem TagsUi Extension MethodsUi Extension PropertiesUi Extension TagsUtility Classes |