public interface SocialGraph
Modifier and Type | Method and Description |
---|---|
org.elkoserver.server.presence.Domain |
domain()
Obtain the domain that this social graph describes.
|
void |
init(org.elkoserver.server.presence.PresenceServer master,
org.elkoserver.server.presence.Domain domain,
JSONObject conf)
Initialize this social graph.
|
void |
loadUserGraph(org.elkoserver.server.presence.ActiveUser user)
Fetch the social graph for a new user presence from persistant storage.
|
void |
shutdown()
Do any work required prior to shutting down the server.
|
void |
update(org.elkoserver.server.presence.PresenceServer master,
org.elkoserver.server.presence.Domain domain,
JSONObject conf)
Update this social graph.
|
void init(org.elkoserver.server.presence.PresenceServer master, org.elkoserver.server.presence.Domain domain, JSONObject conf)
master
- The object representing the presence server environment
in which this graph will be used.domain
- The domain for which this graph is the applicable
description.conf
- A JSONObject full of configuration information, whose
particulars depend on the class implementing this interface.void loadUserGraph(org.elkoserver.server.presence.ActiveUser user)
user
- The user whose social graph should be fetched.org.elkoserver.server.presence.Domain domain()
void update(org.elkoserver.server.presence.PresenceServer master, org.elkoserver.server.presence.Domain domain, JSONObject conf)
master
- The object representing the presence server environment
in which this graph is being used.domain
- The domain being updated.conf
- A JSONObject full of Domain-specific configuration update
information, whose particulars depend on the class implementing this
interface.void shutdown()
Copyright © 2017. All rights reserved.