@Controller public class ClientContactCandidateFormTriggerController extends AbstractFormTriggerController<com.bullhornsdk.data.model.entity.core.standard.ClientContact,ClientContactValidationTraverser>
bullhornData, log| Constructor and Description |
|---|
ClientContactCandidateFormTriggerController(Node<ClientContactValidationTraverser> clientContactValidationWorkflow,
Node<CandidateValidationTraverser> candidateValidationWorkflow,
com.bullhornsdk.data.api.BullhornData bullhornData) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addEntity(FormCandidateDto formCandidateDto,
java.lang.Integer updatingUserID,
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
Handle candidate add
|
java.lang.String |
addEntity(FormClientContactDto formClientContactDto,
java.lang.Integer updatingUserID,
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
Handle client contact add
|
java.lang.String |
editEntity(FormClientContactDto formClientContactDto,
FormCandidateDto formCandidateDto,
java.lang.Integer updatingUserID,
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
Handle either client contact or candidate edit
|
handleRequest, initBinder, prepareErrorReturnValue, prepareReturnValue@Autowired
public ClientContactCandidateFormTriggerController(@Qualifier(value="clientContactValidationWorkflow")
Node<ClientContactValidationTraverser> clientContactValidationWorkflow,
@Qualifier(value="candidateValidationWorkflow")
Node<CandidateValidationTraverser> candidateValidationWorkflow,
com.bullhornsdk.data.api.BullhornData bullhornData)
@RequestMapping(value="/formtrigger/clientcontact/add",
method=POST,
produces="application/json;charset=UTF-8")
@ResponseBody
public java.lang.String addEntity(@ModelAttribute
FormClientContactDto formClientContactDto,
@RequestParam(value="ft.userId")
java.lang.Integer updatingUserID,
@RequestParam(value="ft.corpId")
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
formClientContactDto - contains all the relevant data from the formupdatingUserID - id of corporate user who saved the formcorporationID - response - request - @RequestMapping(value="/formtrigger/clientcontactcandidate/edit",
method=POST,
produces="application/json;charset=UTF-8")
@ResponseBody
public java.lang.String editEntity(@ModelAttribute
FormClientContactDto formClientContactDto,
@ModelAttribute
FormCandidateDto formCandidateDto,
@RequestParam(value="ft.userId")
java.lang.Integer updatingUserID,
@RequestParam(value="ft.corpId")
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
formClientContactDto - contains all the relevant data from the formformCandidateDto - contains all the relevant data from the formupdatingUserID - id of corporate user who saved the formcorporationID - response - request - @RequestMapping(value="/formtrigger/candidate/add",
method=POST,
produces="application/json;charset=UTF-8")
@ResponseBody
public java.lang.String addEntity(@ModelAttribute
FormCandidateDto formCandidateDto,
@RequestParam(value="ft.userId")
java.lang.Integer updatingUserID,
@RequestParam(value="ft.corpId")
java.lang.Integer corporationID,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
formCandidateDto - contains all the relevant data from the formupdatingUserID - id of corporate user who saved the formcorporationID - response - request -