ActionEventRequestBuilder¶
-
public class
ActionEventRequestBuilder
¶ The
ActionEventRequestBuilder
class provides methods for constructing action event requests.See also:
org.motechproject.tasks.contract.ActionEventRequest
Methods¶
createActionEventRequest¶
-
public ActionEventRequest
createActionEventRequest
()¶ Builds an object of the
ActionEventRequest
class.Returns: the created instance
setActionParameters¶
-
public ActionEventRequestBuilder
setActionParameters
(SortedSet<ActionParameterRequest> actionParameters)¶ Sets the parameters of the action event to be built.
Parameters: - actionParameters – the action event parameter
Returns: the reference to this object
setDescription¶
-
public ActionEventRequestBuilder
setDescription
(String description)¶ Sets the description of the action event to be built.
Parameters: - description – the action event description
Returns: the reference to this object
setDisplayName¶
-
public ActionEventRequestBuilder
setDisplayName
(String displayName)¶ Sets the display name of the action event to be built.
Parameters: - displayName – the action event display name
Returns: the reference to this object
setName¶
-
public ActionEventRequestBuilder
setName
(String name)¶ Sets the name of the action event to be built.
Parameters: - name – the action event name
Returns: the reference to this object
setPostActionParameters¶
-
public ActionEventRequestBuilder
setPostActionParameters
(SortedSet<ActionParameterRequest> postActionParameters)¶ Sets the post action parameters of the action event to be built.
Parameters: - postActionParameters – the post action event parameter
Returns: the reference to this object
setServiceInterface¶
-
public ActionEventRequestBuilder
setServiceInterface
(String serviceInterface)¶ Sets the service interface of the action event to be built.
Parameters: - serviceInterface – the action event service interface
Returns: the reference to this object
setServiceMethod¶
-
public ActionEventRequestBuilder
setServiceMethod
(String serviceMethod)¶ Sets the service method of the action event to be built.
Parameters: - serviceMethod – the action event service method
Returns: the reference to this object
setServiceMethodCallManner¶
-
public ActionEventRequestBuilder
setServiceMethodCallManner
(String serviceMethodCallManner)¶ Sets the service method call manner of the action event to be built.
Parameters: - serviceMethodCallManner – the action event service method call manner, for supported values see {@see org.motechproject.tasks.domain.enums.MethodCallManner}
Returns: the reference to this object
setSubject¶
-
public ActionEventRequestBuilder
setSubject
(String subject)¶ Sets the subject of the action event to be built.
Parameters: - subject – the action event subject
Returns: the reference to this object