- 
    
        
        
        
            <static> addDataChangeListeners()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to add a new data change listener (callback) for a given el expression (variable)
e.g.
  adf.addDataChangeListeners("#{bindings.apple}",                   appleChangedCallback); 
  adf.addDataChangeListeners("#{bindgins.apple + bindings.orange}", appleOrOrangeChangedCallback);
                             
	 adf.addDataChangeListeners("#{!bindings.foo}",                    bindingsFooChangedCallback);
  where the callback would looks something like this:
  bindingsFooChangedCallback = function(id)
  {
     document.write("DataChangeNotification 1 notification for ID: " + id);
  }
  
If the same expression/listener combination is registered several times, duplicates are discarded.
For more details see @Understanding_DataChangeListeners
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> getContextId()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to get the current context ID. 
e.g. adf.getContextId(success, failed);
     
    
        
    
    
    
    
    
    
        - Deprecated:
 
- 
    
        
        
        
            <static> getContextInstanceId()
            
        
- 
    
    
    
        PUBLIC FINCTION used to get the current context's instance ID
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> getContextPageDef()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to get the current context's pagedef. 
e.g. adf.getContextId(success, failed);
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> invokeMethod(classname, methodname, params, success, failed)
            
        
- 
    
    
    
        PUBLIC FUNCTION used to invoke method in any class in classpath.
e.g. adf.invokeMethod(classname, methodname, param1, param2, ... , paramN ,successCallback, failedCallback);
Examples:
     adf.invokeMethod("TestBean", "setStringProp", "foo", success, failed);                  
     adf.invokeMethod("TestBean", "getStringProp", success, failed);                  
     adf.invokeMethod("TestBean", "testSimpleIntMethod", "101", success, failed); // Integer parameter              
     adf.invokeMethod("TestBean", "testComplexMethod", 
             {"foo":"newfoo","baz":"newbaz",".type":"TestBeanComplexSubType"}, success, failed); // Comples parameter
     adf.invokeMethod("TestBean", "getComplexColl", success, failed); // No parameter
     adf.invokeMethod("TestBean", "testMethodStringStringString", "Hello ", "World", success, failed); // 2 string parameter
     Parameters:
    
	
		
		| Name | Type | Description |  
            
                | classname |  | name of the class |  
            
                | methodname |  | name of the method |  
            
                | params |  | parameters |  
            
                | success |  | invoked when the method is successfull invoked
                    (signature: success(request, response)) |  
            
                | failed |  | invoked when an error is encountered 
                    (signature: failed(request, response)) |  
 
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> invokeSecurityMethod()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to invoke IDM Mobile SDK methods
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> processDataChangeEvent()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to process the data change event associated with response messages.
DataChangeEvents can be sent as their own request message or as part of _any_ response
message.  This event is sent to inform the javascript side that some data was side-effected
in the CVM layer and should be propagated into the javascript cache as well as notify the 
user interface of the change.  This event has the following JSON represention:
  
DataChangeEvent
{
 	variableChanges: {
	    	elExpression:value
	    	...
 	}
 	providerChanges: {
 		providerId: {
 		   :{ 
 		      current_row_key: { properties filtered by node }
 		      ...
 		   }
            ...
 		}
 		...
 	}
}
Given that, we need to do the following for each data change event:
Variable Changes:
   set the value in the local cache
   notify anyone interested in that variable, that it has changed.
   
Provider Changes:
   on Create:
     set the value in the local cache
   on Update:
     set the value in the local cache
     notify anyone interested in that variable, that it has changed.
   on Create:
     remove the value from the local cache
For more details see @Understanding_DataChangeListeners
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> removeDataChangeListeners()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to remove all data change listeners associated with the variable
For more details see @Understanding_DataChangeListeners
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> resetContext()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to reset context. Call this before setting new context.
This is exactly the same as calling adf.setContext with an empty context name.
e.g. adf.resetContext(successCallback, failedCallback);
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> setContext()
            
        
- 
    
    
    
        PUBLIC FUNCTION used to set context for the specified name
e.g. adf.setContext("myContextName", successCallback, failedCallback);
     
    
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        
    
    
    
    
    
    
    
 
- 
    
        
        
        
            <static> setContextInstance()
            
        
- 
    
    
    
        setContext
pageDef    - name of the page definition
instanceId - unique id for the instance
resetState - reset the bindings associated with this instance
reSync     - resend the initial bindings structure to the container