CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | Static Public Member Functions | List of all members
unicopa.copa.server.CopaSystem Class Reference

This class represents the core of the system. More...

Collaboration diagram for unicopa.copa.server.CopaSystem:
Collaboration graph

Public Member Functions

String processClientMessage (String json, String userName, GeneralUserPermission userPermission)
 Process a message sent from a client. More...
 
CopaSystemContext getContext ()
 

Static Public Member Functions

static CopaSystem getInstance ()
 Get the instance of the CopaSystem. More...
 

Detailed Description

This class represents the core of the system.

It receives client messages, processes them and returns responses. It is to be used by a wrapper that provides the communication with clients. Due to allow simple access by these wrappers, the class is a singleton.

Author
Felix Wiemuth

Member Function Documentation

static CopaSystem unicopa.copa.server.CopaSystem.getInstance ( )
static

Get the instance of the CopaSystem.

Do not use this if not absolutely necessary. Components of the system are provided with the needed information by the system itself.

Returns
String unicopa.copa.server.CopaSystem.processClientMessage ( String  json,
String  userName,
GeneralUserPermission  userPermission 
)

Process a message sent from a client.

Parameters
jsonthe message from the client (expected in JSON format)
userNamethe unique user name of the user whose message to process
Returns
the message to be sent back to the client

The documentation for this class was generated from the following file: