apps.mathpadapp.networkmanager.managers
Class ClientManager

java.lang.Object
  extended by apps.mathpadapp.networkmanager.managers.NetworkedContentManager
      extended by apps.mathpadapp.networkmanager.managers.ClientManager

public class ClientManager
extends NetworkedContentManager

The Class ClientManager.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.mathpadapp.networkmanager.managers.NetworkedContentManager
NetworkedContentManager.NetworkListener
 
Constructor Summary
ClientManager(ContentSystem contentSystem, TableCommsClientService comms, java.util.ArrayList<java.lang.Class<?>> receiverClasses)
          Instantiates a new client manager.
 
Method Summary
 void assignmentReceivedToTable(TableIdentity sender, Assignment assignment)
          Assignment received to table.
 void assignmentReceivedToUser(TableIdentity sender, UserIdentity userId, Assignment assignment)
          Assignment received to user.
 void blockMathPadForUser(UserIdentity recipientUserIdentity, boolean blockPad)
          Block math pad for user.
 void blockTable(boolean tableBlockEnabled)
          Block table.
 void cancelAssignment(TableIdentity sender, UserIdentity recipientUserIdentity)
          Cancel assignment.
 void enabledTableBlock(TableIdentity sender, boolean blockEnabled)
          Enabled table block.
 void hideMathPadForUser(UserIdentity recipientUserIdentity, boolean hidePad)
          Hide math pad for user.
 void hideMathPads(boolean hideMathPadsEnabled)
          Hide math pads.
 void messageReceivedFromServer(TableIdentity sender, UserIdentity recipientUserIdentity, java.lang.String message)
          Message received from server.
 void postAllMathPadsToTable(TableIdentity requesterTable)
          Post all math pads to table.
 void postAllUserIdsToTable(TableIdentity requesterTable)
          Post all user ids to table.
 void postAssignmentResults(TableIdentity requesterTable, UserIdentity userId)
          Post assignment results.
 void postMathPadItemToTable(TableIdentity sender, UserIdentity recipientUserIdentity)
          Post math pad item to table.
 void postTableId(TableIdentity requester)
          Post table id.
 void registerMathPad(UserIdentity userId, MathTool tool)
          Register math pad.
 void setRemoteDesktopWithTableEnabled(TableIdentity requesterTable, boolean remoteDesktopEnabled)
          Sets the remote desktop with table enabled.
 void terminatePadForUser(UserIdentity userId)
          Terminate pad for user.
 
Methods inherited from class apps.mathpadapp.networkmanager.managers.NetworkedContentManager
addNetworkListener, allowedToSendmessage, getContentSystem, getOnlineTables, getReceiverClasses, getRegisteredMathPads, getSyncManager, getUserIdentityForMathTool, isAllowedToSendMessage, removeNetworkListener, removeNetworkListeners, sendMessage, unregisterMathPad, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientManager

public ClientManager(ContentSystem contentSystem,
                     TableCommsClientService comms,
                     java.util.ArrayList<java.lang.Class<?>> receiverClasses)
Instantiates a new client manager.

Parameters:
contentSystem - the content system
comms - the comms
receiverClasses - the receiver classes
Method Detail

assignmentReceivedToTable

public void assignmentReceivedToTable(TableIdentity sender,
                                      Assignment assignment)
Assignment received to table.

Parameters:
sender - the sender
assignment - the assignment

assignmentReceivedToUser

public void assignmentReceivedToUser(TableIdentity sender,
                                     UserIdentity userId,
                                     Assignment assignment)
Assignment received to user.

Parameters:
sender - the sender
userId - the user id
assignment - the assignment

blockMathPadForUser

public void blockMathPadForUser(UserIdentity recipientUserIdentity,
                                boolean blockPad)
Block math pad for user.

Parameters:
recipientUserIdentity - the recipient user identity
blockPad - the block pad

blockTable

public void blockTable(boolean tableBlockEnabled)
Block table.

Parameters:
tableBlockEnabled - the table block enabled

cancelAssignment

public void cancelAssignment(TableIdentity sender,
                             UserIdentity recipientUserIdentity)
Cancel assignment.

Parameters:
sender - the sender
recipientUserIdentity - the recipient user identity

enabledTableBlock

public void enabledTableBlock(TableIdentity sender,
                              boolean blockEnabled)
Enabled table block.

Parameters:
sender - the sender
blockEnabled - the block enabled

hideMathPadForUser

public void hideMathPadForUser(UserIdentity recipientUserIdentity,
                               boolean hidePad)
Hide math pad for user.

Parameters:
recipientUserIdentity - the recipient user identity
hidePad - the hide pad

hideMathPads

public void hideMathPads(boolean hideMathPadsEnabled)
Hide math pads.

Parameters:
hideMathPadsEnabled - the hide math pads enabled

messageReceivedFromServer

public void messageReceivedFromServer(TableIdentity sender,
                                      UserIdentity recipientUserIdentity,
                                      java.lang.String message)
Message received from server.

Parameters:
sender - the sender
recipientUserIdentity - the recipient user identity
message - the message

postAllMathPadsToTable

public void postAllMathPadsToTable(TableIdentity requesterTable)
Post all math pads to table.

Parameters:
requesterTable - the requester table

postAllUserIdsToTable

public void postAllUserIdsToTable(TableIdentity requesterTable)
Post all user ids to table.

Parameters:
requesterTable - the requester table

postAssignmentResults

public void postAssignmentResults(TableIdentity requesterTable,
                                  UserIdentity userId)
Post assignment results.

Parameters:
requesterTable - the requester table
userId - the user id

postMathPadItemToTable

public void postMathPadItemToTable(TableIdentity sender,
                                   UserIdentity recipientUserIdentity)
Post math pad item to table.

Parameters:
sender - the sender
recipientUserIdentity - the recipient user identity

postTableId

public void postTableId(TableIdentity requester)
Post table id.

Parameters:
requester - the requester

registerMathPad

public void registerMathPad(UserIdentity userId,
                            MathTool tool)
Description copied from class: NetworkedContentManager
Register math pad.

Overrides:
registerMathPad in class NetworkedContentManager
Parameters:
userId - the user id
tool - the tool

setRemoteDesktopWithTableEnabled

public void setRemoteDesktopWithTableEnabled(TableIdentity requesterTable,
                                             boolean remoteDesktopEnabled)
Sets the remote desktop with table enabled.

Parameters:
requesterTable - the requester table
remoteDesktopEnabled - the remote desktop enabled

terminatePadForUser

public void terminatePadForUser(UserIdentity userId)
Terminate pad for user.

Parameters:
userId - the user id