org.wicketstuff.facebook.behaviors
Class AbstractAuthEventBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.wicketstuff.facebook.behaviors.AbstractSubscribeBehavior
                  extended by org.wicketstuff.facebook.behaviors.AbstractAuthEventBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable
Direct Known Subclasses:
AuthLoginEventBehavior, AuthResponseChangeEventBehavior, AuthStatusChangeEventBehavior

public abstract class AbstractAuthEventBehavior
extends AbstractSubscribeBehavior

https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

Author:
Till Freier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
protected AbstractAuthEventBehavior(String event)
           
 
Method Summary
protected  void onEvent(AjaxRequestTarget target, IRequestParameters parameters, String response)
           
protected abstract  void onSessionEvent(AjaxRequestTarget target, String status, String userId, String signedRequest, String expiresIn, String accessToken)
           
 
Methods inherited from class org.wicketstuff.facebook.behaviors.AbstractSubscribeBehavior
renderHead, respond
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthEventBehavior

protected AbstractAuthEventBehavior(String event)
Parameters:
event -
Method Detail

onEvent

protected void onEvent(AjaxRequestTarget target,
                       IRequestParameters parameters,
                       String response)
Specified by:
onEvent in class AbstractSubscribeBehavior

onSessionEvent

protected abstract void onSessionEvent(AjaxRequestTarget target,
                                       String status,
                                       String userId,
                                       String signedRequest,
                                       String expiresIn,
                                       String accessToken)
Parameters:
status - Current status of the session
userId - String representing the current user's ID
signedRequest - String with the current signedRequest
expiresIn - UNIX time when the session expires
accessToken - Access token of the user


Copyright © 2014. All rights reserved.