synergynetframework.appsystem.services.net.networkedcontentmanager
Class NetworkedContentManager

java.lang.Object
  extended by synergynetframework.appsystem.services.net.networkedcontentmanager.NetworkedContentManager

public class NetworkedContentManager
extends java.lang.Object

The Class NetworkedContentManager.


Field Summary
static java.lang.String BACKITEMSLIST
          The Constant BACKITEMSLIST.
static java.lang.String ONLINEITEMSLIST
          The Constant ONLINEITEMSLIST.
 
Constructor Summary
NetworkedContentManager(ContentSystem contentSystem, TableCommsClientService comms, java.util.List<java.lang.Class<?>> receiverClasses)
          Instantiates a new networked content manager.
 
Method Summary
 void addNetworkedContentListener(NetworkedContentListener l)
          Adds the networked content listener.
 void allowedToSendmessage(boolean allowedToSendMessage)
          Allowed to sendmessage.
 void backupLocalItems()
          Backup local items.
 void blockRemoteDesktop(boolean isRemoteLocked)
          Block remote desktop.
 void broadcastCurrentDeskTop()
          Broadcast current desk top.
 void clearRemoteDeskTop()
          Clear remote desk top.
 void createProjectorController(java.util.ArrayList<java.lang.Class<?>> controllerClasses, java.util.ArrayList<java.lang.Class<?>> projectorClasses)
          Creates the projector controller.
 void createRemoteDesktopController(java.util.ArrayList<java.lang.Class<?>> controllerClasses, java.util.ArrayList<java.lang.Class<?>> targetClasses)
          Creates the remote desktop controller.
 void enableBiSynchronisation(boolean isBiSynchronisationEnabled)
          Enable bi synchronisation.
 void enableMenu(boolean isMenuEnabled)
          Enable menu.
 void enableMenuController(boolean isMenuControllerOn, OrthoContainer menu)
          Enable menu controller.
 void enableRemoteMenu(boolean isRemoteMenuOn)
          Enable remote menu.
 void enableSynchronisation(boolean isSynchronisationOn)
          Enable synchronisation.
 ContentSystem getContentSystem()
          Gets the content system.
 java.lang.String getCurrentScreenChannel()
          Gets the current screen channel.
 GraphManager getGraphManager()
          Gets the graph manager.
 java.util.List<NetworkedContentListener> getNetworkedContentListeners()
          Gets the networked content listeners.
 NetworkedFlickController getNetworkedFlickController()
          Gets the networked flick controller.
 java.util.Map<java.lang.String,ContentItem> getOnlineItems()
          Gets the online items.
 ProjectorController getProjectorController()
          Gets the projector controller.
 java.util.List<java.lang.Class<?>> getReceiverClasses()
          Gets the receiver classes.
 RemoteDesktopController getRemoteDesktopController()
          Gets the remote desktop controller.
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getSychronisedData()
          Gets the sychronised data.
 TableCommsClientService getTableCommsClientService()
          Gets the table comms client service.
 boolean isAllowedToSendMessage()
          Checks if is allowed to send message.
 boolean isbackupListEnabled()
          Checks if is backup list enabled.
 boolean isBiSynchronisationEnabled()
          Checks if is bi synchronisation enabled.
 boolean isMenuEnabled()
          Checks if is menu enabled.
 boolean isRemoteLocked()
          Checks if is remote locked.
 boolean isRemoteMenuOn()
          Checks if is remote menu on.
 boolean isSynchronisationOn()
          Checks if is synchronisation on.
 void loadContent(java.util.List<ContentItem> collection)
          Load content.
 void loadContent(java.lang.String filePath, java.lang.String name)
          Load content.
 void loadContentInRemoteTable(java.lang.String filePath, java.lang.String name)
          Load content in remote table.
 void loadContentItem(ContentItem item)
          Load content item.
 void loadLocalContent(java.lang.String filePath, java.lang.String name)
          Load local content.
 void removeAllItems()
          Removes the all items.
 void removeAllItemsInBackList()
          Removes the all items in back list.
 void removeContentItem(ContentItem item)
          Removes the content item.
 void removeNetworkedContentListener(NetworkedContentListener l)
          Removes the networked content listener.
 void removeNetworkedContentListeners()
          Removes the networked content listeners.
 void requestDataFrom(TableIdentity table)
          Request data from.
 void sendDataTo(TableIdentity table)
          Send data to.
 void sendMessage(java.lang.Object obj)
          Send message.
 void sendSwapTableMessage(TableIdentity targetTable)
          Send swap table message.
 void setbackupListEnabled(boolean isbackupListEnabled)
          Sets the backup list enabled.
 void setBiSynchronisationEnabled(boolean isBiSynchronisationEnabled)
          Sets the bi synchronisation enabled.
 void setGraphManager(GraphManager graphManager)
          Sets the graph manager.
 void setRemoteLocked(boolean isRemoteLocked)
          Sets the remote locked.
 void setRemoteMenuOn(boolean isRemoteMenuOn)
          Sets the remote menu on.
 void setSynchronisationOn(boolean isSynchronisationOn)
          Sets the synchronisation on.
 void showLocalItems()
          Show local items.
 void stateUpdate(float tpf)
          State update.
 void swapTable(TableIdentity table1, TableIdentity table2)
          Swap table.
 void switchItemList()
          Switch item list.
 void synchroniseData(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> synchronisedItems)
          Synchronise data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKITEMSLIST

public static final java.lang.String BACKITEMSLIST
The Constant BACKITEMSLIST.

See Also:
Constant Field Values

ONLINEITEMSLIST

public static final java.lang.String ONLINEITEMSLIST
The Constant ONLINEITEMSLIST.

See Also:
Constant Field Values
Constructor Detail

NetworkedContentManager

public NetworkedContentManager(ContentSystem contentSystem,
                               TableCommsClientService comms,
                               java.util.List<java.lang.Class<?>> receiverClasses)
Instantiates a new networked content manager.

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

addNetworkedContentListener

public void addNetworkedContentListener(NetworkedContentListener l)
Adds the networked content listener.

Parameters:
l - the l

allowedToSendmessage

public void allowedToSendmessage(boolean allowedToSendMessage)
Allowed to sendmessage.

Parameters:
allowedToSendMessage - the allowed to send message

backupLocalItems

public void backupLocalItems()
Backup local items.


blockRemoteDesktop

public void blockRemoteDesktop(boolean isRemoteLocked)
Block remote desktop.

Parameters:
isRemoteLocked - the is remote locked

broadcastCurrentDeskTop

public void broadcastCurrentDeskTop()
Broadcast current desk top.


clearRemoteDeskTop

public void clearRemoteDeskTop()
Clear remote desk top.


createProjectorController

public void createProjectorController(java.util.ArrayList<java.lang.Class<?>> controllerClasses,
                                      java.util.ArrayList<java.lang.Class<?>> projectorClasses)
Creates the projector controller.

Parameters:
controllerClasses - the controller classes
projectorClasses - the projector classes

createRemoteDesktopController

public void createRemoteDesktopController(java.util.ArrayList<java.lang.Class<?>> controllerClasses,
                                          java.util.ArrayList<java.lang.Class<?>> targetClasses)
Creates the remote desktop controller.

Parameters:
controllerClasses - the controller classes
targetClasses - the target classes

enableBiSynchronisation

public void enableBiSynchronisation(boolean isBiSynchronisationEnabled)
Enable bi synchronisation.

Parameters:
isBiSynchronisationEnabled - the is bi synchronisation enabled

enableMenu

public void enableMenu(boolean isMenuEnabled)
Enable menu.

Parameters:
isMenuEnabled - the is menu enabled

enableMenuController

public void enableMenuController(boolean isMenuControllerOn,
                                 OrthoContainer menu)
Enable menu controller.

Parameters:
isMenuControllerOn - the is menu controller on
menu - the menu

enableRemoteMenu

public void enableRemoteMenu(boolean isRemoteMenuOn)
Enable remote menu.

Parameters:
isRemoteMenuOn - the is remote menu on

enableSynchronisation

public void enableSynchronisation(boolean isSynchronisationOn)
Enable synchronisation.

Parameters:
isSynchronisationOn - the is synchronisation on

getContentSystem

public ContentSystem getContentSystem()
Gets the content system.

Returns:
the content system

getCurrentScreenChannel

public java.lang.String getCurrentScreenChannel()
Gets the current screen channel.

Returns:
the current screen channel

getGraphManager

public GraphManager getGraphManager()
Gets the graph manager.

Returns:
the graph manager

getNetworkedContentListeners

public java.util.List<NetworkedContentListener> getNetworkedContentListeners()
Gets the networked content listeners.

Returns:
the networked content listeners

getNetworkedFlickController

public NetworkedFlickController getNetworkedFlickController()
Gets the networked flick controller.

Returns:
the networked flick controller

getOnlineItems

public java.util.Map<java.lang.String,ContentItem> getOnlineItems()
Gets the online items.

Returns:
the online items

getProjectorController

public ProjectorController getProjectorController()
Gets the projector controller.

Returns:
the projector controller

getReceiverClasses

public java.util.List<java.lang.Class<?>> getReceiverClasses()
Gets the receiver classes.

Returns:
the receiver classes

getRemoteDesktopController

public RemoteDesktopController getRemoteDesktopController()
Gets the remote desktop controller.

Returns:
the remote desktop controller

getSychronisedData

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getSychronisedData()
Gets the sychronised data.

Returns:
the sychronised data

getTableCommsClientService

public TableCommsClientService getTableCommsClientService()
Gets the table comms client service.

Returns:
the table comms client service

isAllowedToSendMessage

public boolean isAllowedToSendMessage()
Checks if is allowed to send message.

Returns:
true, if is allowed to send message

isbackupListEnabled

public boolean isbackupListEnabled()
Checks if is backup list enabled.

Returns:
true, if is backup list enabled

isBiSynchronisationEnabled

public boolean isBiSynchronisationEnabled()
Checks if is bi synchronisation enabled.

Returns:
true, if is bi synchronisation enabled

isMenuEnabled

public boolean isMenuEnabled()
Checks if is menu enabled.

Returns:
true, if is menu enabled

isRemoteLocked

public boolean isRemoteLocked()
Checks if is remote locked.

Returns:
true, if is remote locked

isRemoteMenuOn

public boolean isRemoteMenuOn()
Checks if is remote menu on.

Returns:
true, if is remote menu on

isSynchronisationOn

public boolean isSynchronisationOn()
Checks if is synchronisation on.

Returns:
true, if is synchronisation on

loadContent

public void loadContent(java.util.List<ContentItem> collection)
Load content.

Parameters:
collection - the collection

loadContent

public void loadContent(java.lang.String filePath,
                        java.lang.String name)
Load content.

Parameters:
filePath - the file path
name - the name

loadContentInRemoteTable

public void loadContentInRemoteTable(java.lang.String filePath,
                                     java.lang.String name)
Load content in remote table.

Parameters:
filePath - the file path
name - the name

loadContentItem

public void loadContentItem(ContentItem item)
Load content item.

Parameters:
item - the item

loadLocalContent

public void loadLocalContent(java.lang.String filePath,
                             java.lang.String name)
Load local content.

Parameters:
filePath - the file path
name - the name

removeAllItems

public void removeAllItems()
Removes the all items.


removeAllItemsInBackList

public void removeAllItemsInBackList()
Removes the all items in back list.


removeContentItem

public void removeContentItem(ContentItem item)
Removes the content item.

Parameters:
item - the item

removeNetworkedContentListener

public void removeNetworkedContentListener(NetworkedContentListener l)
Removes the networked content listener.

Parameters:
l - the l

removeNetworkedContentListeners

public void removeNetworkedContentListeners()
Removes the networked content listeners.


requestDataFrom

public void requestDataFrom(TableIdentity table)
Request data from.

Parameters:
table - the table

sendDataTo

public void sendDataTo(TableIdentity table)
Send data to.

Parameters:
table - the table

sendMessage

public void sendMessage(java.lang.Object obj)
Send message.

Parameters:
obj - the obj

sendSwapTableMessage

public void sendSwapTableMessage(TableIdentity targetTable)
Send swap table message.

Parameters:
targetTable - the target table

setbackupListEnabled

public void setbackupListEnabled(boolean isbackupListEnabled)
Sets the backup list enabled.

Parameters:
isbackupListEnabled - the new backup list enabled

setBiSynchronisationEnabled

public void setBiSynchronisationEnabled(boolean isBiSynchronisationEnabled)
Sets the bi synchronisation enabled.

Parameters:
isBiSynchronisationEnabled - the new bi synchronisation enabled

setGraphManager

public void setGraphManager(GraphManager graphManager)
Sets the graph manager.

Parameters:
graphManager - the new graph manager

setRemoteLocked

public void setRemoteLocked(boolean isRemoteLocked)
Sets the remote locked.

Parameters:
isRemoteLocked - the new remote locked

setRemoteMenuOn

public void setRemoteMenuOn(boolean isRemoteMenuOn)
Sets the remote menu on.

Parameters:
isRemoteMenuOn - the new remote menu on

setSynchronisationOn

public void setSynchronisationOn(boolean isSynchronisationOn)
Sets the synchronisation on.

Parameters:
isSynchronisationOn - the new synchronisation on

showLocalItems

public void showLocalItems()
Show local items.


stateUpdate

public void stateUpdate(float tpf)
State update.

Parameters:
tpf - the tpf

swapTable

public void swapTable(TableIdentity table1,
                      TableIdentity table2)
Swap table.

Parameters:
table1 - the table1
table2 - the table2

switchItemList

public void switchItemList()
Switch item list.


synchroniseData

public void synchroniseData(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> synchronisedItems)
Synchronise data.

Parameters:
synchronisedItems - the synchronised items