public abstract class AbstractScheduledTaskHelper extends java.lang.Object implements ScheduledTaskHelper
Constructor and Description |
---|
AbstractScheduledTaskHelper(SubscriptionEvent event) |
AbstractScheduledTaskHelper(SubscriptionEvent event,
com.bullhornsdk.data.api.BullhornData bullhornData) |
Modifier and Type | Method and Description |
---|---|
boolean |
fieldWasUpdated(java.lang.String... fieldsToCheck)
Returns true if any of the field names passed in is part of the subscriptionEvent.updatedProperties
|
com.bullhornsdk.data.model.entity.core.standard.Appointment |
findAppointment(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.Candidate |
findCandidate(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.CandidateEducation |
findCandidateEducation(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.CandidateReference |
findCandidateReference(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.CandidateWorkHistory |
findCandidateWorkHistory(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.ClientContact |
findClientContact(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.ClientCorporation |
findClientCorporation(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.CorporateUser |
findCorporateUser(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.JobOrder |
findJobOrder(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.JobSubmission |
findJobSubmission(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.Note |
findNote(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.Placement |
findPlacement(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.PlacementChangeRequest |
findPlacementChangeRequest(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.PlacementCommission |
findPlacementCommission(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.Sendout |
findSendout(java.lang.Integer id)
Makes api call to bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.Task |
findTask(java.lang.Integer id)
Makes api call to bullhorn.
|
UserTypeDto |
findUserType(java.lang.Integer id)
Makes api call to bullhorn.
|
java.util.Map<java.lang.String,? extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> |
getAllEntitiesToSave() |
com.bullhornsdk.data.api.BullhornData |
getBullhornData() |
SubscriptionEvent |
getEvent()
Returns the subscription event that drives this helper.
|
<T extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> |
getOneEntityToSave(T entity)
Returns a deep copy of the passed in entity, if a entity of type T already exists in allEntitiesToSaveBackToBH that entity will be
returned, otherwise this method will return a deep copy the entity passed in to the method.
|
com.bullhornsdk.data.model.entity.core.standard.CorporateUser |
getUpdatingUser()
Gets the CorporateUserDto for the person who saved the entity, if updatingUser == null then makes api call, otherwise returns
updatingUser instance variable.
|
void |
setUpdatingUser(com.bullhornsdk.data.model.entity.core.standard.CorporateUser updatingUser) |
java.lang.String |
toString() |
public AbstractScheduledTaskHelper(SubscriptionEvent event)
public AbstractScheduledTaskHelper(SubscriptionEvent event, com.bullhornsdk.data.api.BullhornData bullhornData)
public <T extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> T getOneEntityToSave(T entity)
ScheduledTaskHelper
getOneEntityToSave
in interface ScheduledTaskHelper
entity
- entity to be copied, if this object already exists in the allDtosToSaveBackToBH map then that entity will be returned.public boolean fieldWasUpdated(java.lang.String... fieldsToCheck)
ScheduledTaskHelper
fieldWasUpdated
in interface ScheduledTaskHelper
public com.bullhornsdk.data.model.entity.core.standard.CorporateUser getUpdatingUser()
public void setUpdatingUser(com.bullhornsdk.data.model.entity.core.standard.CorporateUser updatingUser)
public java.util.Map<java.lang.String,? extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> getAllEntitiesToSave()
getAllEntitiesToSave
in interface ScheduledTaskHelper
public com.bullhornsdk.data.api.BullhornData getBullhornData()
public SubscriptionEvent getEvent()
ScheduledTaskHelper
getEvent
in interface ScheduledTaskHelper
public com.bullhornsdk.data.model.entity.core.standard.Appointment findAppointment(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.CorporateUser findCorporateUser(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.Candidate findCandidate(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.CandidateEducation findCandidateEducation(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.CandidateReference findCandidateReference(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.CandidateWorkHistory findCandidateWorkHistory(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.ClientCorporation findClientCorporation(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.ClientContact findClientContact(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.JobSubmission findJobSubmission(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.JobOrder findJobOrder(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.Note findNote(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.Placement findPlacement(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.PlacementChangeRequest findPlacementChangeRequest(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.PlacementCommission findPlacementCommission(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.Task findTask(java.lang.Integer id)
id
- public UserTypeDto findUserType(java.lang.Integer id)
id
- public com.bullhornsdk.data.model.entity.core.standard.Sendout findSendout(java.lang.Integer id)
id
- public java.lang.String toString()
toString
in class java.lang.Object