Class Index | File Index

Classes


Class AC.server.Callback

Defines functions for invoking server methods.
Defined in: Utility.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Default constructor.
Method Summary
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).
Class Detail
AC.server.Callback()
Default constructor.
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).
Parameters:
msg
the message
Returns:
the original message; or the objects as noted above

Documentation generated by JsDoc Toolkit 2.0.0 on Sun Sep 23 2012 02:46:07 GMT-0500 (CDT)