|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vodafone360.people.service.interfaces.IPeopleServiceImpl
public class IPeopleServiceImpl
BaseEngine.IEngineEventCallback,
IPeopleService| Field Summary | |
|---|---|
private ApplicationCache |
mApplicationCache
|
private UiAgent |
mHandlerAgent
|
private NetworkAgent |
mNetworkAgent
|
private RemoteService |
mService
|
private java.util.List<Handler> |
mUiEventCallbackList
|
private IWorkerThreadControl |
mWorkerThreadControl
|
| Constructor Summary | |
|---|---|
IPeopleServiceImpl(IWorkerThreadControl workerThreadControl,
RemoteService service)
Initialises the object, creating the UiAgent. |
|
| Method Summary | |
|---|---|
void |
addEventCallback(Handler uiHandler)
Allows the Activity to register a Handler, so that it can receive new call back events from the Service layer. |
void |
checkForUpdates()
Push the UpdateEngine to immediately check for an updated version of the client. |
void |
downloadMeProfileFirstTime()
This method triggers the Me Profile download, is currently called by UI |
void |
fetchAvailableIdentities(Bundle data)
Begins the process of retrieving all Third party Accounts from the Vodafone 360 back end. |
void |
fetchMyIdentities(Bundle data)
Begins the process of retrieving Third party Accounts that the user is already registered with from the Vodafone 360 back end. |
void |
fetchPrivacyStatement()
Fetched the current Privacy Statement information from the Vodafone 360 back end system. |
void |
fetchTermsOfService()
Fetched the current Terms of Service information from the Vodafone 360 back end system. |
void |
fetchUsernameState(java.lang.String userName)
Asks the back end server to check the validity of the given user name. |
ApplicationCache |
getApplicationCache()
Returns the ApplicationCache, for storing data. |
boolean |
getLoginRequired()
Called by the UI to determine if the Service is currently logged into the Vodafone 360 back end. |
void |
getMoreTimelines()
This method should be called to retrieve older timelines in TimelineListActivity, @see ActivitiesEngine. |
NetworkAgentState |
getNetworkAgentState()
Returns the current state of the Network Agent. |
void |
getOlderStatuses()
This method should be called to retrieve older statuses in StatusListActivity, @see ActivitiesEngine. |
void |
getPresenceList(long contactId)
Request a refresh of the currently known Presence information (used for testing only) |
boolean |
getRoamingDeviceSetting()
Gets the current IS_ROAMING_ALLOWED value for the device, which is set by the user in the "Menu > Settings > Wireless Controls > Mobile network settings > Data roaming" check box. |
int |
getRoamingNotificationType()
Gets the type of roaming notification to show to the user |
void |
getStatuses()
This method should be called to retrieve status updates in StatusListActivity, @see ActivitiesEngine. |
UiAgent |
getUiAgent()
Returns the UiAgent, for sending unsolicited messages to the UI. |
void |
kickWorkerThread()
Restarts the WorkerThread if it is in a sleeping or suspended state, ignored otherwise. |
void |
logon(LoginDetails loginDetails)
Log into the Vodafone 360 back end system using the given credentials. |
void |
notifyDataSettingChanged(PersistSettings.InternetAvail val)
Sets the current Data connectivity preference (i.e. connect, connect when not roaming, or never connect), although this value is ignored during initial sign up. |
void |
onUiEvent(ServiceUiRequest event,
int arg1,
int arg2,
java.lang.Object data)
Handle an incoming UI Event. |
void |
pingUserActivity()
Pings the service about user activity. |
void |
register(RegistrationDetails details)
Signs up a new user to the Vodafone 360 back end using the given Registration details. |
void |
removeEventCallback(Handler uiHandler)
Allows the Activity to unregister a Handler, so it will no longer receive call back events from the Service layer. |
void |
sendMessage(long localContactId,
java.lang.String body,
int networkId)
This method should be used to send a message to a contact |
void |
setAvailability(java.util.Hashtable<java.lang.String,java.lang.String> myself)
Alter the current Social Network availability state and send it to the server. |
void |
setIdentityStatus(java.lang.String network,
java.lang.String identityId,
boolean identityStatus)
Calls the set identity capability status API |
void |
setNetworkAgent(NetworkAgent agent)
Sets the ServiceAgent, as this needs to be called after the constructor. |
void |
setNetworkAgentState(NetworkAgentState state)
Overrides the current state of the Network Agent. |
void |
setNewUpdateFrequency()
Push the UpdateEngine to check if a new update frequency has been set and to act accordingly. |
void |
setShowRoamingNotificationAgain(boolean showAgain)
Sets a preference that disables the showing of further roaming notifications. |
void |
startBackgroundContactSync(long delay)
Begins the process of synchronising contacts with the Vodafone 360 back end. |
void |
startContactSync()
Begins the process of synchronising contacts with the Vodafone 360 back end. |
void |
startStatusesSync()
Push the ActivitiesEngine Engine to begin synchronising Activities |
void |
subscribe(Handler handler,
java.lang.Long contactId,
boolean chat)
Allows an Activity to indicate to the Service that it is ready and able to handle incoming unsolicited UI events. |
void |
unsubscribe(Handler handler)
Allows the Activity to indicate that it is no longer in the foreground and will not handle incoming UI events correctly. |
void |
updateChatNotification(long localContactId)
This method should be called to update the Chat Notifications. |
void |
uploadMeProfile()
This method triggers the Me Profile upload |
void |
uploadMyStatus(java.lang.String statusText)
This method triggers the Me Profile status text upload |
void |
validateIdentityCredentials(boolean dryRun,
java.lang.String network,
java.lang.String username,
java.lang.String password,
Bundle identityCapabilityStatus)
Validate the given Social Network identity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.List<Handler> mUiEventCallbackList
private IWorkerThreadControl mWorkerThreadControl
private RemoteService mService
private NetworkAgent mNetworkAgent
private UiAgent mHandlerAgent
private ApplicationCache mApplicationCache
| Constructor Detail |
|---|
public IPeopleServiceImpl(IWorkerThreadControl workerThreadControl,
RemoteService service)
workerThreadControl - Provides access to worker thread control
functions.service - Provides access to remote service functions (mainly used
to retrieve context).| Method Detail |
|---|
public void setNetworkAgent(NetworkAgent agent)
agent - Handle to ServiceAgent.
public void onUiEvent(ServiceUiRequest event,
int arg1,
int arg2,
java.lang.Object data)
BaseEngine.IEngineEventCallback
onUiEvent in interface BaseEngine.IEngineEventCallbackevent - ServiceUiRequest - e.g. UI request complete.arg1 - ID of associated request.arg2 - status of request (success or error code).data - object Data associated with completed request.com.vodafone360.people.engine.BaseEngine.IEngineEventCallback#onUiEvent(UiEvent,
int, int, Object)public void kickWorkerThread()
BaseEngine.IEngineEventCallback
kickWorkerThread in interface BaseEngine.IEngineEventCallbackBaseEngine.IEngineEventCallback.kickWorkerThread()public void addEventCallback(Handler uiHandler)
IPeopleService
addEventCallback in interface IPeopleServiceIPeopleService.addEventCallback(Handler)public void removeEventCallback(Handler uiHandler)
IPeopleService
removeEventCallback in interface IPeopleServiceIPeopleService.removeEventCallback(Handler)public void checkForUpdates()
IPeopleService
checkForUpdates in interface IPeopleServiceIPeopleService.checkForUpdates()public void fetchAvailableIdentities(Bundle data)
IPeopleService
fetchAvailableIdentities in interface IPeopleServiceIPeopleService.fetchAvailableIdentities(Bundle)public void fetchMyIdentities(Bundle data)
IPeopleService
fetchMyIdentities in interface IPeopleServiceIPeopleService.fetchMyIdentities(Bundle)public void fetchPrivacyStatement()
IPeopleService
fetchPrivacyStatement in interface IPeopleServiceIPeopleService.fetchPrivacyStatement()public void fetchTermsOfService()
IPeopleService
fetchTermsOfService in interface IPeopleServiceIPeopleService.fetchTermsOfService()public void fetchUsernameState(java.lang.String userName)
IPeopleService
fetchUsernameState in interface IPeopleServiceIPeopleService.fetchUsernameState(String)public boolean getLoginRequired()
IPeopleService
getLoginRequired in interface IPeopleServiceIPeopleService.getLoginRequired()public int getRoamingNotificationType()
IPeopleService
getRoamingNotificationType in interface IPeopleServiceIPeopleService.getRoamingNotificationType()public boolean getRoamingDeviceSetting()
IPeopleService
getRoamingDeviceSetting in interface IPeopleServiceIPeopleService.getRoamingDeviceSetting()public void notifyDataSettingChanged(PersistSettings.InternetAvail val)
IPeopleService
notifyDataSettingChanged in interface IPeopleServicecom.vodafone360.people.service.interfaces.IPeopleService#notifyDataSettingChanged(InternetAvail)public void logon(LoginDetails loginDetails)
IPeopleService
logon in interface IPeopleServiceIPeopleService.logon(LoginDetails)public void register(RegistrationDetails details)
IPeopleService
register in interface IPeopleServiceIPeopleService.register(RegistrationDetails)public void setNewUpdateFrequency()
IPeopleService
setNewUpdateFrequency in interface IPeopleServiceIPeopleService.setNewUpdateFrequency()public void setShowRoamingNotificationAgain(boolean showAgain)
IPeopleService
setShowRoamingNotificationAgain in interface IPeopleServiceIPeopleService.setShowRoamingNotificationAgain(boolean)public void startContactSync()
IPeopleService
startContactSync in interface IPeopleServiceIPeopleService.startContactSync()public void startBackgroundContactSync(long delay)
IPeopleService
startBackgroundContactSync in interface IPeopleServicedelay - the delay in milliseconds from now when the sync should
startIPeopleService.startBackgroundContactSync(long)public void pingUserActivity()
IPeopleService
pingUserActivity in interface IPeopleServiceIPeopleService.pingUserActivity()
public void validateIdentityCredentials(boolean dryRun,
java.lang.String network,
java.lang.String username,
java.lang.String password,
Bundle identityCapabilityStatus)
IPeopleService
validateIdentityCredentials in interface IPeopleServicedryRun - Set to true to validate credentials without actually
signing the server up.network - Social Network Nameusername - Login user namepassword - Login passwordidentityCapabilityStatus - Social Network capability status BundleIPeopleService.validateIdentityCredentials(boolean,
String, String, String, Bundle)public void startStatusesSync()
IPeopleService
startStatusesSync in interface IPeopleServiceIPeopleService.startStatusesSync()public NetworkAgentState getNetworkAgentState()
IPeopleService
getNetworkAgentState in interface IPeopleServiceIPeopleService.getNetworkAgentState()public void setNetworkAgentState(NetworkAgentState state)
IPeopleService
setNetworkAgentState in interface IPeopleServicestate - A new overriding state.com.vodafone360.people.service.interfaces.IPeopleService#setNetowrkAgentState(NetworkAgentState)public void getPresenceList(long contactId)
IPeopleService
getPresenceList in interface IPeopleServicecontactId - Provide a contactId to receive detailed presence
information for the given contact onlyIPeopleService.getPresenceList(long)public void setAvailability(java.util.Hashtable<java.lang.String,java.lang.String> myself)
IPeopleService
setAvailability in interface IPeopleServicemyself - is the wrapper for the own presence state, can be retrieved
from PresenceTable.getUserByLocalContactId(long
meProfileLocalContactId).IPeopleService.setAvailability(Hashtable)
public void subscribe(Handler handler,
java.lang.Long contactId,
boolean chat)
IPeopleService
subscribe in interface IPeopleServicehandler - to accept incoming unsolicited UI events from the Service.contactId - Provide a contactId to receive updates for the given
contact only. Set this to -1 to receive updates for every
contact. Set this to NULL not to receive contact updates.chat - - TRUE if the Handler expects chat messages.com.vodafone360.people.service.interfaces.IPeopleService#subscribe(Handler,
long, boolean)public void unsubscribe(Handler handler)
IPeopleService
unsubscribe in interface IPeopleServicehandler - that should no longer receive incoming unsolicited UI
events from the ServiceIPeopleService.unsubscribe(Handler)public UiAgent getUiAgent()
BaseEngine.IEngineEventCallback
getUiAgent in interface BaseEngine.IEngineEventCallbackBaseEngine.IEngineEventCallback.getUiAgent()public ApplicationCache getApplicationCache()
BaseEngine.IEngineEventCallback
getApplicationCache in interface BaseEngine.IEngineEventCallbackBaseEngine.IEngineEventCallback.getApplicationCache()
public void sendMessage(long localContactId,
java.lang.String body,
int networkId)
IPeopleService
sendMessage in interface IPeopleServicebody - Message textIPeopleService.sendMessage(long,
String, int)
public void setIdentityStatus(java.lang.String network,
java.lang.String identityId,
boolean identityStatus)
IPeopleService
setIdentityStatus in interface IPeopleServicenetwork - Social Network NameidentityId - Social Network Identifierpublic void getStatuses()
IPeopleService
getStatuses in interface IPeopleServicepublic void getMoreTimelines()
IPeopleService
getMoreTimelines in interface IPeopleServicepublic void getOlderStatuses()
IPeopleService
getOlderStatuses in interface IPeopleServicepublic void uploadMeProfile()
IPeopleService
uploadMeProfile in interface IPeopleServicepublic void uploadMyStatus(java.lang.String statusText)
IPeopleService
uploadMyStatus in interface IPeopleServicestatusText - String - new Me Profile status textpublic void downloadMeProfileFirstTime()
IPeopleService
downloadMeProfileFirstTime in interface IPeopleServicepublic void updateChatNotification(long localContactId)
IPeopleService
updateChatNotification in interface IPeopleService
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaDoc