(Quick Reference)
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
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 |