userExists(identity)
Available in Controllers, Domains, Taglibs and Services
This method returns true if the specified user identity is recognized as a valid user by the current security provider.
The implementation of this method is provided by the security provider you have installed.
If a provide does not implement ACLs this will return true.
Usage
1 2 3 4 5 6 7 8 | class MessagesService { void findUserMessages(String user) { if (userExists(user)) { … } } … } |
Arguments
Name | Description |
---|---|
identity | The user id of the user. What this is depends on the provider you are using |