Class AC.server.Callback
Defines functions for invoking server methods.
Defined in: Utility.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Default constructor.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
AC.server.Callback.callServer(message, methodName, channel, callbackobject, callbackobject, passdata)
Invokes the specified method on the server.
|
<static> |
AC.server.Callback.callServerReadOnly(message, methodName, callbackobject, callbackobject, passdata)
Invokes the specified method on the server in the read-only mode.
|
<static> |
AC.server.Callback.callServerUpdate(message, methodName, callbackobject, callbackobject, passdata)
Invokes the specified method on the server in the update mode.
|
<static> |
AC.server.Callback.setReturnMsg(msg)
Handles server response messages by invoking callbacks passing server message as the argument.
|
<static> |
AC.server.Callback.translate(msg)
Translates the specified message into objects if the message's response type fits certain patterns:
(Contribution -> AC.data.Contribution); (UserList -> AC.data.UserList); (anyOther -> the specified message). |
Method Detail
<static>
AC.server.Callback.callServer(message, methodName, channel, callbackobject, callbackobject, passdata)
Invokes the specified method on the server.
- Parameters:
- message
- the message to pass to the server
- methodName
- the name of the method to invoke on the server
- channel
- the name of the channel on which to publish the message
- callbackobject
- the callback object
- callbackobject
- the callback method
- passdata
<static>
AC.server.Callback.callServerReadOnly(message, methodName, callbackobject, callbackobject, passdata)
Invokes the specified method on the server in the read-only mode.
- Parameters:
- message
- the message to pass to the server
- methodName
- the name of the method to invoke on the server
- callbackobject
- the callback object
- callbackobject
- the callback method
- passdata
<static>
AC.server.Callback.callServerUpdate(message, methodName, callbackobject, callbackobject, passdata)
Invokes the specified method on the server in the update mode.
- Parameters:
- message
- the message to pass to the server
- methodName
- the name of the method to invoke on the server
- callbackobject
- the callback object
- callbackobject
- the callback method
- passdata
<static>
AC.server.Callback.setReturnMsg(msg)
Handles server response messages by invoking callbacks passing server message as the argument.
- Parameters:
- msg
- the server's reply
<static>
AC.server.Callback.translate(msg)
Translates the specified message into objects if the message's response type fits certain patterns:
(Contribution -> AC.data.Contribution);
(UserList -> AC.data.UserList);
(anyOther -> the specified message).
(Contribution -> AC.data.Contribution);
(UserList -> AC.data.UserList);
(anyOther -> the specified message).
- Parameters:
- msg
- the message
- Returns:
- the original message; or the objects as noted above