|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.server.context.users.DevicePersistentUserFactory
public class DevicePersistentUserFactory
Factory that generates a persistent user object from connected mobile device information.
| Nested Class Summary | |
|---|---|
protected static class |
DevicePersistentUserFactory.DeviceCredentials
Struct object holding login info for a device user. |
| Constructor Summary | |
|---|---|
DevicePersistentUserFactory(String device)
JSON-driven constructor. |
|
| Method Summary | |
|---|---|
protected DevicePersistentUserFactory.DeviceCredentials |
extractCredentials(Trace appTrace,
JSONObject param)
Extract the user login credentials from a user factory parameter object. |
String |
getDevice()
Obtain the name of the device this factory works with. |
void |
provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
Produce a user object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@JSONMethod(value="device") public DevicePersistentUserFactory(String device)
device - The name of the device (IOS, etc).| Method Detail |
|---|
public String getDevice()
return - this factory's device string.
public void provideUser(Contextor contextor,
Connection connection,
JSONObject param,
ArgRunnable handler)
provideUser in interface UserFactorycontextor - The contextor of the server in which the requested
user will be presentconnection - The connection over which the new user presented
themself.param - Arbitary JSON object parameterizing the construction.
this is analogous to the user record read from the ODB, but may be
anything that makes sense for the particular factory implementation.
Of course, the sender of this parameter must be coordinated with the
factory implementation.handler - Handler to be called with the result. The result will
be the user object that was produced, or null if none could be.
protected DevicePersistentUserFactory.DeviceCredentials extractCredentials(Trace appTrace,
JSONObject param)
appTrace - Trace object for error loggingparam - User factory parameters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||