com.atlassian.jira.soap.axis
Interface JiraSoapTokenResolver


public interface JiraSoapTokenResolver

Objects that implement this interface can resolve SOAP tokens back to user names. to

Since:
v3.13.2

Method Summary
 int getTokenParameterIndex(String operationName)
          The implementer is expected to return the parameter index that the "token" field occurs on for the named operation.
 String resolveTokenToUserName(String token)
          The JiraAxisTokenResolver is asked to resolve a token back into user name.
 

Method Detail

resolveTokenToUserName

String resolveTokenToUserName(String token)
The JiraAxisTokenResolver is asked to resolve a token back into user name. if it can resolve a name it should return null.

Parameters:
token - the token to resolve
Returns:
a name of the user presented by this token or null if it cant be resolved

getTokenParameterIndex

int getTokenParameterIndex(String operationName)
The implementer is expected to return the parameter index that the "token" field occurs on for the named operation. For example the if the token is the first parameter the implementer should return 0.

Parameters:
operationName - the name of the operation
Returns:
the zero based index of the token parameter in that operation or -1 if it has not token


Copyright © 2002-2009 Atlassian. All Rights Reserved.