Class UserDirectory
java.lang.Object
com.iizix.server.push.engine.store.UserDirectory
The Destination field's lookup: user names and e-mail addresses, case-insensitive, with the
* wildcard, resolved to user IDs against IZS.USERS.Push does not model identity (ruling 2). This class names a user only by UserInfoBase.id and reads the columns that exist for the lookup: user_name_lower and email. The SQL is LIKE ... ESCAPE '!' with LOWER() on the e-mail, both SQL-92, portable between Derby and PostgreSQL.
- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionFinds one user by exact user name, case-insensitive.Resolves destinations to users.
Constructor Details
UserDirectory
Constructor.- Parameters:
connections- The connection source.
Method Details
resolve
Resolves destinations to users.- Parameters:
destinations- User names or e-mail addresses, case-insensitive,*matching any run of characters; a lone*matches every user.- Returns:
- The users, each once, in user-ID order per destination.
- Throws:
SQLException- For SQL errors.
byName
Finds one user by exact user name, case-insensitive.- Parameters:
userName- The user name.- Returns:
- The user, or null.
- Throws:
SQLException- For SQL errors.