com.amazonaws.mturk.service.axis
Class RequesterServiceRaw

java.lang.Object
  extended by com.amazonaws.mturk.service.axis.AWSService
      extended by com.amazonaws.mturk.service.axis.FilteredAWSService
          extended by com.amazonaws.mturk.service.axis.RequesterServiceRaw
Direct Known Subclasses:
RequesterService

public class RequesterServiceRaw
extends FilteredAWSService

The RequesterServiceRaw class provides a set of APIs, which maps to the Mechanical Turk Requester WSDL. Its contructor is protected, so the client cannot instantiate this class directly. The client should instead use a child instance that inherits these raw APIs.

See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReferenceArticle.html

Field Summary
static java.lang.String NOTIFICATION_VERSION
           
protected  AWSMechanicalTurkRequester service
           
protected  java.lang.ThreadLocal<java.lang.Object> stubCache
          Port stubs are not thread safe, so let's cache it per thread in a thread local
 
Fields inherited from class com.amazonaws.mturk.service.axis.AWSService
config, HTTP_HEADER_AMAZON_SOFTWARE, httpHeaders
 
Constructor Summary
protected RequesterServiceRaw()
          Deprecated. 
protected RequesterServiceRaw(ClientConfig config)
           
 
Method Summary
protected static void appendApplicationSignature(java.lang.String signature, java.lang.Object port)
           
 void approveAssignment(java.lang.String assignmentId, java.lang.String requesterFeedback)
           
 AsyncReply approveAssignmentAsync(java.lang.String assignmentId, java.lang.String requesterFeedback, AsyncCallback callback)
           
 void assignQualification(java.lang.String qualificationTypeId, java.lang.String workerId, java.lang.Integer integerValue, java.lang.Boolean sendNotification)
           
 void blockWorker(java.lang.String workerId, java.lang.String reason)
           
 void changeHITTypeOfHIT(java.lang.String hitId, java.lang.String newHitTypeId)
           
 AsyncReply changeHITTypeOfHITAsync(java.lang.String hitId, java.lang.String newHITTypeId, AsyncCallback callback)
          Updates the hit type of a HIT asynchronously using the Axis worker thread pool.
 HIT createHIT(java.lang.String hitTypeId, java.lang.String title, java.lang.String description, java.lang.String keywords, java.lang.String question, java.lang.Double reward, java.lang.Long assignmentDurationInSeconds, java.lang.Long autoApprovalDelayInSeconds, java.lang.Long lifetimeInSeconds, java.lang.Integer maxAssignments, java.lang.String requesterAnnotation, QualificationRequirement[] qualificationRequirements, java.lang.String[] responseGroup)
           
 AsyncReply createHITAsync(java.lang.String hitTypeId, java.lang.String title, java.lang.String description, java.lang.String keywords, java.lang.String question, java.lang.Double reward, java.lang.Long assignmentDurationInSeconds, java.lang.Long autoApprovalDelayInSeconds, java.lang.Long lifetimeInSeconds, java.lang.Integer maxAssignments, java.lang.String requesterAnnotation, QualificationRequirement[] qualificationRequirements, java.lang.String[] responseGroup, AsyncCallback callback)
          Creates a HIT asynchronously using the Axis worker thread pool.
 QualificationType createQualificationType(java.lang.String name, java.lang.String keywords, java.lang.String description, QualificationTypeStatus status, java.lang.Long retryDelayInSeconds, java.lang.String test, java.lang.String answerKey, java.lang.Long testDurationInSeconds, java.lang.Boolean autoGranted, java.lang.Integer autoGrantedValue)
           
 void disableHIT(java.lang.String hitId)
           
 void disposeHIT(java.lang.String hitId)
           
 AsyncReply disposeHITAsync(java.lang.String hitId, AsyncCallback callback)
          Disposes a HIT asynchronously
 void extendHIT(java.lang.String hitId, java.lang.Integer maxAssignmentsIncrement, java.lang.Long expirationIncrementInSeconds)
           
 AsyncReply extendHITAsync(java.lang.String hitId, java.lang.Integer maxAssignmentsIncrement, java.lang.Long expirationIncrementInSeconds, AsyncCallback callback)
          Extends a HIT asynchronously using the Axis worker thread pool.
 void forceExpireHIT(java.lang.String hitId)
           
 GetAccountBalanceResult getAccountBalance(java.lang.String unused)
           
 GetAssignmentsForHITResult getAssignmentsForHIT(java.lang.String hitId, SortDirection sortDirection, AssignmentStatus[] status, GetAssignmentsForHITSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.String[] responseGroup)
           
 AsyncReply getAssignmentsForHITAsync(java.lang.String hitId, SortDirection sortDirection, AssignmentStatus[] status, GetAssignmentsForHITSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.String[] responseGroup, AsyncCallback callback)
          Loads an assignments page for a HIT asynchronously using the Axis worker thread pool.
 Assignment[] getAssignmentsForHITAsync(java.lang.String hitId, SortDirection sortDirection, AssignmentStatus[] status, GetAssignmentsForHITSortProperty sortProperty, java.lang.Integer pageSize, java.lang.String[] responseGroup, GetAssignmentsForHITResult firstPage, AsyncCallback callback)
          Loads all assignment pages for a HIT using the Axis worker thread pool.
 GetBonusPaymentsResult getBonusPayments(java.lang.String hitId, java.lang.String assignmentId, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 java.lang.String getFileUploadURL(java.lang.String assignmentId, java.lang.String questionIdentifier)
           
 HIT getHIT(java.lang.String hitId, java.lang.String[] responseGroup)
           
 AsyncReply getHITAsync(java.lang.String hitId, java.lang.String[] responseGroup, AsyncCallback callback)
          Loads a HIT asynchronously using the Axis worker thread pool.
 GetHITsForQualificationTypeResult getHITsForQualificationType(java.lang.String qualificationTypeId, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
protected  java.lang.String getPackagePrefix()
           
protected  java.lang.Object getPort()
           
 GetQualificationRequestsResult getQualificationRequests(java.lang.String qualificationTypeId, SortDirection sortDirection, GetQualificationRequestsSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 Qualification getQualificationScore(java.lang.String qualificationTypeId, java.lang.String subjectId)
           
 GetQualificationsForQualificationTypeResult getQualificationsForQualificationType(java.lang.String qualificationTypeId, QualificationStatus status, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 QualificationType getQualificationType(java.lang.String qualificationTypeId)
           
 DataPoint[] getRequesterStatistic(RequesterStatistic statistic, TimePeriod timePeriod, java.lang.Integer count)
           
 GetReviewableHITsResult getReviewableHITs(java.lang.String hitTypeId, ReviewableHITStatus status, SortDirection sortDirection, GetReviewableHITsSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
protected  java.lang.String getServiceName()
           
 int getWorkerAcceptLimit(LimitGroupType type, java.lang.String limitGroupId)
           
 void grantBonus(java.lang.String workerId, java.lang.Double bonusAmount, java.lang.String assignmentId, java.lang.String reason)
           
 void grantQualification(java.lang.String qualificationRequestId, java.lang.Integer integerValue)
           
 Information help(java.lang.String[] about, HelpRequestHelpType type)
           
 void notifyWorkers(java.lang.String subject, java.lang.String messageText, java.lang.String[] workerId)
           
 java.lang.String registerHITType(java.lang.Long autoApprovalDelayInSeconds, java.lang.Long assignmentDurationInSeconds, java.lang.Double reward, java.lang.String title, java.lang.String keywords, java.lang.String description, QualificationRequirement[] qualRequirements)
           
 void rejectAssignment(java.lang.String assignmentId, java.lang.String requesterFeedback)
           
 void rejectQualificationRequest(java.lang.String qualificationRequestId, java.lang.String reason)
           
 void revokeQualification(java.lang.String qualificationTypeId, java.lang.String subjectId, java.lang.String reason)
           
 SearchHITsResult searchHITs(SortDirection sortDirection, SearchHITsSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize, java.lang.String[] responseGroup)
           
 SearchQualificationTypesResult searchQualificationTypes(java.lang.String query, java.lang.Boolean mustBeRequestable, java.lang.Boolean mustBeOwnedByCaller, SortDirection sortDirection, SearchQualificationTypesSortProperty sortProperty, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 void sendTestEventNotification(NotificationSpecification notification, EventType testEventType)
           
 void setHITAsReviewing(java.lang.String hitId, java.lang.Boolean revert)
           
 void setHITTypeNotification(java.lang.String hitTypeId, NotificationSpecification notification, java.lang.Boolean active)
           
 void setWorkerAcceptLimit(java.lang.Integer maxWorkerAcceptLimit, LimitGroupType type, java.lang.String limitGroupId)
           
 void unblockWorker(java.lang.String workerId, java.lang.String reason)
           
 void updateQualificationScore(java.lang.String qualificationTypeId, java.lang.String subjectId, java.lang.Integer integerValue)
           
 QualificationType updateQualificationType(java.lang.String qualificationTypeId, java.lang.String description, QualificationTypeStatus status, java.lang.String test, java.lang.String answerKey, java.lang.Long testDurationInSeconds, java.lang.Long retryDelayInSeconds, java.lang.Boolean autoGranted, java.lang.Integer autoGrantedValue)
           
 
Methods inherited from class com.amazonaws.mturk.service.axis.FilteredAWSService
addFilter, clearFilters, executeAsyncRequest, executeAsyncRequests, executeRequest, executeRequest, executeRequests, executeRequests, getFilterList, removeFilter
 
Methods inherited from class com.amazonaws.mturk.service.axis.AWSService
executeRequestMessage, getAWSAccessKeyId, getConfig, getSigner, setAccessKeyId, setSigner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected AWSMechanicalTurkRequester service

stubCache

protected java.lang.ThreadLocal<java.lang.Object> stubCache
Port stubs are not thread safe, so let's cache it per thread in a thread local


NOTIFICATION_VERSION

public static final java.lang.String NOTIFICATION_VERSION
See Also:
Constant Field Values
Constructor Detail

RequesterServiceRaw

@Deprecated
protected RequesterServiceRaw()
Deprecated. 


RequesterServiceRaw

protected RequesterServiceRaw(ClientConfig config)
Method Detail

getPort

protected java.lang.Object getPort()
Specified by:
getPort in class AWSService

getServiceName

protected java.lang.String getServiceName()
Specified by:
getServiceName in class AWSService

getPackagePrefix

protected java.lang.String getPackagePrefix()
Specified by:
getPackagePrefix in class AWSService

appendApplicationSignature

protected static void appendApplicationSignature(java.lang.String signature,
                                                 java.lang.Object port)

createHIT

public HIT createHIT(java.lang.String hitTypeId,
                     java.lang.String title,
                     java.lang.String description,
                     java.lang.String keywords,
                     java.lang.String question,
                     java.lang.Double reward,
                     java.lang.Long assignmentDurationInSeconds,
                     java.lang.Long autoApprovalDelayInSeconds,
                     java.lang.Long lifetimeInSeconds,
                     java.lang.Integer maxAssignments,
                     java.lang.String requesterAnnotation,
                     QualificationRequirement[] qualificationRequirements,
                     java.lang.String[] responseGroup)
              throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_CreateHITOperation.html

registerHITType

public java.lang.String registerHITType(java.lang.Long autoApprovalDelayInSeconds,
                                        java.lang.Long assignmentDurationInSeconds,
                                        java.lang.Double reward,
                                        java.lang.String title,
                                        java.lang.String keywords,
                                        java.lang.String description,
                                        QualificationRequirement[] qualRequirements)
                                 throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_RegisterHITTypeOperation.html

changeHITTypeOfHIT

public void changeHITTypeOfHIT(java.lang.String hitId,
                               java.lang.String newHitTypeId)
                        throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-06-21/ApiReference_ChangeHITTypeOfHIT.html

setHITTypeNotification

public void setHITTypeNotification(java.lang.String hitTypeId,
                                   NotificationSpecification notification,
                                   java.lang.Boolean active)
                            throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SetHITTypeNotificationOperation.html

sendTestEventNotification

public void sendTestEventNotification(NotificationSpecification notification,
                                      EventType testEventType)
                               throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SendTestEventNotificationOperation.html

disposeHIT

public void disposeHIT(java.lang.String hitId)
                throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_DisposeHITOperation.html

disableHIT

public void disableHIT(java.lang.String hitId)
                throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_DisableHITOperation.html

getHIT

public HIT getHIT(java.lang.String hitId,
                  java.lang.String[] responseGroup)
           throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetHITOperation.html

getReviewableHITs

public GetReviewableHITsResult getReviewableHITs(java.lang.String hitTypeId,
                                                 ReviewableHITStatus status,
                                                 SortDirection sortDirection,
                                                 GetReviewableHITsSortProperty sortProperty,
                                                 java.lang.Integer pageNumber,
                                                 java.lang.Integer pageSize)
                                          throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetReviewableHITsOperation.html

getHITsForQualificationType

public GetHITsForQualificationTypeResult getHITsForQualificationType(java.lang.String qualificationTypeId,
                                                                     java.lang.Integer pageNumber,
                                                                     java.lang.Integer pageSize)
                                                              throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetHITsForQualificationTypeOperation.html

getQualificationsForQualificationType

public GetQualificationsForQualificationTypeResult getQualificationsForQualificationType(java.lang.String qualificationTypeId,
                                                                                         QualificationStatus status,
                                                                                         java.lang.Integer pageNumber,
                                                                                         java.lang.Integer pageSize)
                                                                                  throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetQualificationsForQualificationTypeOperation.html

setHITAsReviewing

public void setHITAsReviewing(java.lang.String hitId,
                              java.lang.Boolean revert)
                       throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SetHITAsReviewingOperation.html

extendHIT

public void extendHIT(java.lang.String hitId,
                      java.lang.Integer maxAssignmentsIncrement,
                      java.lang.Long expirationIncrementInSeconds)
               throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_ExtendHITOperation.html

extendHITAsync

public AsyncReply extendHITAsync(java.lang.String hitId,
                                 java.lang.Integer maxAssignmentsIncrement,
                                 java.lang.Long expirationIncrementInSeconds,
                                 AsyncCallback callback)
                          throws ServiceException
Extends a HIT asynchronously using the Axis worker thread pool. It returns an AsyncReply object, which can either be used to wait for the asynchronous call to complete and to get the result of the call. Alternatively, a callback handler can be passed that is notified when the call has completed. The work queue is using a pool of daemon threads to process the submitted tasks. To guarantee that all work submitted to the queue was processed before the JVM exits, this requires to wait for all future results of the submitted work items. This can conveniently be done using the getResult() method of the AsyncReply object returned by this method. A typical usage pattern would be to first submit all requests to the work queue, store the AsyncReply objects in an array and then call getResult() for each of the objects in the array.

Throws:
ServiceException

forceExpireHIT

public void forceExpireHIT(java.lang.String hitId)
                    throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_ForceExpireHITOperation.html

approveAssignment

public void approveAssignment(java.lang.String assignmentId,
                              java.lang.String requesterFeedback)
                       throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_ApproveAssignmentOperation.html

rejectAssignment

public void rejectAssignment(java.lang.String assignmentId,
                             java.lang.String requesterFeedback)
                      throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_RejectAssignmentOperation.html

getAssignmentsForHIT

public GetAssignmentsForHITResult getAssignmentsForHIT(java.lang.String hitId,
                                                       SortDirection sortDirection,
                                                       AssignmentStatus[] status,
                                                       GetAssignmentsForHITSortProperty sortProperty,
                                                       java.lang.Integer pageNumber,
                                                       java.lang.Integer pageSize,
                                                       java.lang.String[] responseGroup)
                                                throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetAssignmentsForHITOperation.html

getFileUploadURL

public java.lang.String getFileUploadURL(java.lang.String assignmentId,
                                         java.lang.String questionIdentifier)
                                  throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetFileUploadURLOperation.html

searchHITs

public SearchHITsResult searchHITs(SortDirection sortDirection,
                                   SearchHITsSortProperty sortProperty,
                                   java.lang.Integer pageNumber,
                                   java.lang.Integer pageSize,
                                   java.lang.String[] responseGroup)
                            throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SearchHITsOperation.html

grantBonus

public void grantBonus(java.lang.String workerId,
                       java.lang.Double bonusAmount,
                       java.lang.String assignmentId,
                       java.lang.String reason)
                throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GrantBonusOperation.html

getBonusPayments

public GetBonusPaymentsResult getBonusPayments(java.lang.String hitId,
                                               java.lang.String assignmentId,
                                               java.lang.Integer pageNumber,
                                               java.lang.Integer pageSize)
                                        throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetBonusPaymentsOperation.html

createQualificationType

public QualificationType createQualificationType(java.lang.String name,
                                                 java.lang.String keywords,
                                                 java.lang.String description,
                                                 QualificationTypeStatus status,
                                                 java.lang.Long retryDelayInSeconds,
                                                 java.lang.String test,
                                                 java.lang.String answerKey,
                                                 java.lang.Long testDurationInSeconds,
                                                 java.lang.Boolean autoGranted,
                                                 java.lang.Integer autoGrantedValue)
                                          throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_CreateQualificationTypeOperation.html

getQualificationRequests

public GetQualificationRequestsResult getQualificationRequests(java.lang.String qualificationTypeId,
                                                               SortDirection sortDirection,
                                                               GetQualificationRequestsSortProperty sortProperty,
                                                               java.lang.Integer pageNumber,
                                                               java.lang.Integer pageSize)
                                                        throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetQualificationRequestsOperation.html

rejectQualificationRequest

public void rejectQualificationRequest(java.lang.String qualificationRequestId,
                                       java.lang.String reason)
                                throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_RejectQualificationRequestOperation.html

grantQualification

public void grantQualification(java.lang.String qualificationRequestId,
                               java.lang.Integer integerValue)
                        throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GrantQualificationOperation.html

assignQualification

public void assignQualification(java.lang.String qualificationTypeId,
                                java.lang.String workerId,
                                java.lang.Integer integerValue,
                                java.lang.Boolean sendNotification)
                         throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_AssignQualificationOperation.html

revokeQualification

public void revokeQualification(java.lang.String qualificationTypeId,
                                java.lang.String subjectId,
                                java.lang.String reason)
                         throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_RevokeQualificationOperation.html

updateQualificationScore

public void updateQualificationScore(java.lang.String qualificationTypeId,
                                     java.lang.String subjectId,
                                     java.lang.Integer integerValue)
                              throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_UpdateQualificationScoreOperation.html

getQualificationType

public QualificationType getQualificationType(java.lang.String qualificationTypeId)
                                       throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetQualificationTypeOperation.html

getQualificationScore

public Qualification getQualificationScore(java.lang.String qualificationTypeId,
                                           java.lang.String subjectId)
                                    throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetQualificationScoreOperation.html

searchQualificationTypes

public SearchQualificationTypesResult searchQualificationTypes(java.lang.String query,
                                                               java.lang.Boolean mustBeRequestable,
                                                               java.lang.Boolean mustBeOwnedByCaller,
                                                               SortDirection sortDirection,
                                                               SearchQualificationTypesSortProperty sortProperty,
                                                               java.lang.Integer pageNumber,
                                                               java.lang.Integer pageSize)
                                                        throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SearchQualificationTypesOperation.html

updateQualificationType

public QualificationType updateQualificationType(java.lang.String qualificationTypeId,
                                                 java.lang.String description,
                                                 QualificationTypeStatus status,
                                                 java.lang.String test,
                                                 java.lang.String answerKey,
                                                 java.lang.Long testDurationInSeconds,
                                                 java.lang.Long retryDelayInSeconds,
                                                 java.lang.Boolean autoGranted,
                                                 java.lang.Integer autoGrantedValue)
                                          throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_UpdateQualificationTypeOperation.html

getAccountBalance

public GetAccountBalanceResult getAccountBalance(java.lang.String unused)
                                          throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetAccountBalanceOperation.html

getRequesterStatistic

public DataPoint[] getRequesterStatistic(RequesterStatistic statistic,
                                         TimePeriod timePeriod,
                                         java.lang.Integer count)
                                  throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetRequesterStatisticOperation.html

notifyWorkers

public void notifyWorkers(java.lang.String subject,
                          java.lang.String messageText,
                          java.lang.String[] workerId)
                   throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_NotifyWorkersOperation.html

setWorkerAcceptLimit

public void setWorkerAcceptLimit(java.lang.Integer maxWorkerAcceptLimit,
                                 LimitGroupType type,
                                 java.lang.String limitGroupId)
                          throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_SetWorkerAcceptLimitOperation.html

getWorkerAcceptLimit

public int getWorkerAcceptLimit(LimitGroupType type,
                                java.lang.String limitGroupId)
                         throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetWorkerAcceptLimitOperation.html

blockWorker

public void blockWorker(java.lang.String workerId,
                        java.lang.String reason)
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-06-21/ApiReference_BlockWorkerOperation.html

unblockWorker

public void unblockWorker(java.lang.String workerId,
                          java.lang.String reason)
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-06-21/ApiReference_UnblockWorkerOperation.html

help

public Information help(java.lang.String[] about,
                        HelpRequestHelpType type)
                 throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_GetWorkerAcceptLimitOperation.html

createHITAsync

public AsyncReply createHITAsync(java.lang.String hitTypeId,
                                 java.lang.String title,
                                 java.lang.String description,
                                 java.lang.String keywords,
                                 java.lang.String question,
                                 java.lang.Double reward,
                                 java.lang.Long assignmentDurationInSeconds,
                                 java.lang.Long autoApprovalDelayInSeconds,
                                 java.lang.Long lifetimeInSeconds,
                                 java.lang.Integer maxAssignments,
                                 java.lang.String requesterAnnotation,
                                 QualificationRequirement[] qualificationRequirements,
                                 java.lang.String[] responseGroup,
                                 AsyncCallback callback)
Creates a HIT asynchronously using the Axis worker thread pool. It returns an AsyncReply object, which can either be used to wait for the asynchronous call to complete and to get the result of the call. Alternatively, a callback handler can be passed that is notified when the call has completed. The work queue is using a pool of daemon threads to process the submitted tasks. To guarantee that all work submitted to the queue was processed before the JVM exits, this requires to wait for all future results of the submitted work items. This can conveniently be done using the getResult() method of the AsyncReply object returned by this method. A typical usage pattern would be to first submit all requests to the work queue, store the AsyncReply objects in an array and then call getResult() for each of the objects in the array.

Throws:
ServiceException

getHITAsync

public AsyncReply getHITAsync(java.lang.String hitId,
                              java.lang.String[] responseGroup,
                              AsyncCallback callback)
                       throws ServiceException
Loads a HIT asynchronously using the Axis worker thread pool. It returns an AsyncReply object, which can either be used to wait for the asynchronous call to complete and to get the result of the call. Alternatively, a callback handler can be passed that is notified when the call has completed. The work queue is using a pool of daemon threads to process the submitted tasks. To guarantee that all work submitted to the queue was processed before the JVM exits, this requires to wait for all future results of the submitted work items. This can conveniently be done using the getResult() method of the AsyncReply object returned by this method. A typical usage pattern would be to first submit all requests to the work queue, store the AsyncReply objects in an array and then call getResult() for each of the objects in the array.

Throws:
ServiceException

changeHITTypeOfHITAsync

public AsyncReply changeHITTypeOfHITAsync(java.lang.String hitId,
                                          java.lang.String newHITTypeId,
                                          AsyncCallback callback)
Updates the hit type of a HIT asynchronously using the Axis worker thread pool. It returns an AsyncReply object, which can either be used to wait for the asynchronous call to complete and to get the result of the call. Alternatively, a callback handler can be passed that is notified when the call has completed. The work queue is using a pool of daemon threads to process the submitted tasks. To guarantee that all work submitted to the queue was processed before the JVM exits, this requires to wait for all future results of the submitted work items. This can conveniently be done using the getResult() method of the AsyncReply object returned by this method. A typical usage pattern would be to first submit all requests to the work queue, store the AsyncReply objects in an array and then call getResult() for each of the objects in the array.


approveAssignmentAsync

public AsyncReply approveAssignmentAsync(java.lang.String assignmentId,
                                         java.lang.String requesterFeedback,
                                         AsyncCallback callback)
                                  throws ServiceException
Throws:
ServiceException
See Also:
http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2007-03-12/ApiReference_ApproveAssignmentOperation.html

getAssignmentsForHITAsync

public AsyncReply getAssignmentsForHITAsync(java.lang.String hitId,
                                            SortDirection sortDirection,
                                            AssignmentStatus[] status,
                                            GetAssignmentsForHITSortProperty sortProperty,
                                            java.lang.Integer pageNumber,
                                            java.lang.Integer pageSize,
                                            java.lang.String[] responseGroup,
                                            AsyncCallback callback)
                                     throws ServiceException
Loads an assignments page for a HIT asynchronously using the Axis worker thread pool. It returns an AsyncReply object, which can either be used to wait for the asynchronous call to complete and to get the result of the call. Alternatively, a callback handler can be passed that is notified when the call has completed. The work queue is using a pool of daemon threads to process the submitted tasks. To guarantee that all work submitted to the queue was processed before the JVM exits, this requires to wait for all future results of the submitted work items. This can conveniently be done using the getResult() method of the AsyncReply object returned by this method. A typical usage pattern would be to first submit all requests to the work queue, store the AsyncReply objects in an array and then call getResult() for each of the objects in the array.

Throws:
ServiceException

getAssignmentsForHITAsync

public Assignment[] getAssignmentsForHITAsync(java.lang.String hitId,
                                              SortDirection sortDirection,
                                              AssignmentStatus[] status,
                                              GetAssignmentsForHITSortProperty sortProperty,
                                              java.lang.Integer pageSize,
                                              java.lang.String[] responseGroup,
                                              GetAssignmentsForHITResult firstPage,
                                              AsyncCallback callback)
                                       throws ServiceException
Loads all assignment pages for a HIT using the Axis worker thread pool.

Throws:
ServiceException

disposeHITAsync

public AsyncReply disposeHITAsync(java.lang.String hitId,
                                  AsyncCallback callback)
                           throws ServiceException
Disposes a HIT asynchronously

Throws:
ServiceException