org.alfresco.bm.user
Class PickUserCallback

java.lang.Object
  extended by org.alfresco.http.AbstractHttpRequestCallback<String>
      extended by org.alfresco.bm.user.PickUserCallback
All Implemented Interfaces:
org.alfresco.http.HttpRequestCallback<String>

public class PickUserCallback
extends org.alfresco.http.AbstractHttpRequestCallback<String>

Callback that extracts the nodeRef from the picked user. Throws an exception when no user can be extracted from the response.

Author:
Frederik Heremans

Constructor Summary
PickUserCallback(String userName)
           
 
Method Summary
 String onCallException(org.apache.http.HttpResponse response, Throwable t)
           
 String onCallSuccess(org.apache.http.HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PickUserCallback

public PickUserCallback(String userName)
Method Detail

onCallSuccess

public String onCallSuccess(org.apache.http.HttpResponse response)

onCallException

public String onCallException(org.apache.http.HttpResponse response,
                              Throwable t)
Specified by:
onCallException in interface org.alfresco.http.HttpRequestCallback<String>
Overrides:
onCallException in class org.alfresco.http.AbstractHttpRequestCallback<String>


Copyright © 2012. All Rights Reserved.