Class MappingRequest
- java.lang.Object
-
- org.apache.manifoldcf.authorities.system.MappingRequest
-
public class MappingRequest extends java.lang.Object
This class describes a user mapping request. The request has state: It can be in an incomplete state, or it can be in a complete state. The thread that cares whether the request is complete needs to be able to wait for that situation to occur, so the request has a method that does just that.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_rcsid
protected boolean
answerComplete
protected java.lang.Throwable
answerException
protected java.lang.String
identifyingString
protected IMappingConnection
mappingConnection
protected java.lang.String
outputUserID
protected java.lang.String
userID
-
Constructor Summary
Constructors Constructor Description MappingRequest(IMappingConnection mappingConnection, java.lang.String identifyingString)
Construct the request, and record the question.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeRequest(java.lang.String outputUserID, java.lang.Throwable answerException)
Note that the request is complete, and record the answers.java.lang.Throwable
getAnswerException()
Get the answer exceptionjava.lang.String
getAnswerResponse()
Get the answer userjava.lang.String
getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problemIMappingConnection
getMappingConnection()
Get the mapping connection.java.lang.String
getUserID()
Get the user IDvoid
setUserID(java.lang.String userID)
Set the user ID we'll be usingvoid
waitForComplete()
Wait for an auth request to be complete.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
userID
protected java.lang.String userID
-
mappingConnection
protected final IMappingConnection mappingConnection
-
identifyingString
protected final java.lang.String identifyingString
-
answerComplete
protected boolean answerComplete
-
outputUserID
protected java.lang.String outputUserID
-
answerException
protected java.lang.Throwable answerException
-
-
Constructor Detail
-
MappingRequest
public MappingRequest(IMappingConnection mappingConnection, java.lang.String identifyingString)
Construct the request, and record the question.
-
-
Method Detail
-
setUserID
public void setUserID(java.lang.String userID)
Set the user ID we'll be using
-
getUserID
public java.lang.String getUserID()
Get the user ID
-
getMappingConnection
public IMappingConnection getMappingConnection()
Get the mapping connection.
-
getIdentifyingString
public java.lang.String getIdentifyingString()
Get the identifying string, to pass back to the user if there was a problem
-
waitForComplete
public void waitForComplete() throws java.lang.InterruptedException
Wait for an auth request to be complete.- Throws:
java.lang.InterruptedException
-
completeRequest
public void completeRequest(java.lang.String outputUserID, java.lang.Throwable answerException)
Note that the request is complete, and record the answers.
-
getAnswerResponse
public java.lang.String getAnswerResponse()
Get the answer user
-
getAnswerException
public java.lang.Throwable getAnswerException()
Get the answer exception
-
-