T - The AbstractFormDto from the bullhorn formE - Bullhorn entity corresponding to the Tpublic abstract class AbstractFormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity> extends java.lang.Object implements FormTriggerHelper<T,E>
| Modifier and Type | Field and Description |
|---|---|
protected T |
formValues |
protected org.apache.log4j.Logger |
log |
protected E |
newEntity |
protected E |
oldEntity |
protected com.bullhornsdk.data.model.entity.core.standard.CorporateUser |
updatingUser |
protected java.lang.Integer |
updatingUserID |
protected com.bullhornsdk.data.model.entity.embedded.UserType |
updatingUserUserType |
| Constructor and Description |
|---|
AbstractFormTriggerHelper(T formValues,
java.lang.Integer updatingUserID,
com.bullhornsdk.data.api.BullhornData bullhornData) |
| Modifier and Type | Method and Description |
|---|---|
com.bullhornsdk.data.model.entity.core.standard.Candidate |
findCandidate(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.ClientContact |
findClientContact(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.ClientCorporation |
findClientCorporation(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.CorporateUser |
findCorporateUser(java.lang.Integer id) |
<RE extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity> |
findEntity(java.lang.Class<RE> type,
java.lang.Integer id) |
<RE extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity> |
findEntity(java.lang.Class<RE> type,
java.lang.Integer id,
java.util.Set<java.lang.String> fields) |
com.bullhornsdk.data.model.entity.core.standard.JobOrder |
findJobOrder(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.JobSubmission |
findJobSubmission(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.Note |
findNote(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.Placement |
findPlacement(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.core.standard.PlacementChangeRequest |
findPlacementChangeRequest(java.lang.Integer id) |
com.bullhornsdk.data.model.entity.embedded.UserType |
findUserType() |
com.bullhornsdk.data.api.BullhornData |
getBullhornData() |
java.util.List<com.bullhornsdk.data.model.entity.core.standard.PlacementCommission> |
getCommissions(java.lang.Integer placementID)
Returns all
PlacementCommission for the passed in placementID |
T |
getFormValues()
Gets the implementation of AbstractFormDto, that is the data from the bullhorn form.
|
E |
getNewEntity()
Returns the new entity instantiated from the T form values.
|
E |
getOldEntity()
The currently stored data for this entity that is saved in bullhorn.
|
com.bullhornsdk.data.model.entity.core.standard.CorporateUser |
getUpdatingUser()
The user who made the update
|
java.lang.Integer |
getUpdatingUserID()
The id of the corporate user saving the form in Bullhorn.
|
com.bullhornsdk.data.model.entity.embedded.UserType |
getUpdatingUserUserType()
The user type of the user who made the update.
|
<U extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> |
saveDto(U entity)
Save the entity to bullhorn
|
void |
setNewEntity(E newEntity) |
void |
setOldEntity(E oldEntity) |
void |
setUpdatingUser(com.bullhornsdk.data.model.entity.core.standard.CorporateUser updatingUser) |
void |
setUpdatingUserUserType(com.bullhornsdk.data.model.entity.embedded.UserType updatingUserUserType) |
protected final java.lang.Integer updatingUserID
protected T extends AbstractFormDto<E> formValues
protected E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity newEntity
protected E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity oldEntity
protected com.bullhornsdk.data.model.entity.core.standard.CorporateUser updatingUser
protected com.bullhornsdk.data.model.entity.embedded.UserType updatingUserUserType
protected final org.apache.log4j.Logger log
public AbstractFormTriggerHelper(T formValues, java.lang.Integer updatingUserID, com.bullhornsdk.data.api.BullhornData bullhornData)
public T getFormValues()
getFormValues in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public E getNewEntity()
getNewEntity in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>BullhornEntity based on the form just savedpublic void setNewEntity(E newEntity)
setNewEntity in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public E getOldEntity()
getOldEntity in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public void setOldEntity(E oldEntity)
setOldEntity in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public java.lang.Integer getUpdatingUserID()
getUpdatingUserID in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public com.bullhornsdk.data.model.entity.core.standard.CorporateUser getUpdatingUser()
getUpdatingUser in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public void setUpdatingUser(com.bullhornsdk.data.model.entity.core.standard.CorporateUser updatingUser)
setUpdatingUser in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public com.bullhornsdk.data.model.entity.embedded.UserType getUpdatingUserUserType()
getUpdatingUserUserType in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public void setUpdatingUserUserType(com.bullhornsdk.data.model.entity.embedded.UserType updatingUserUserType)
setUpdatingUserUserType in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>public <U extends com.bullhornsdk.data.model.entity.core.type.UpdateEntity> void saveDto(U entity)
saveDto in interface FormTriggerHelper<T extends AbstractFormDto<E>,E extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity>entity - any implementation of UpdateEntitypublic com.bullhornsdk.data.model.entity.embedded.UserType findUserType()
public com.bullhornsdk.data.model.entity.core.standard.CorporateUser findCorporateUser(java.lang.Integer id)
public <RE extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity> RE findEntity(java.lang.Class<RE> type,
java.lang.Integer id)
public <RE extends com.bullhornsdk.data.model.entity.core.type.BullhornEntity> RE findEntity(java.lang.Class<RE> type,
java.lang.Integer id,
java.util.Set<java.lang.String> fields)
public com.bullhornsdk.data.model.entity.core.standard.Candidate findCandidate(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.ClientCorporation findClientCorporation(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.ClientContact findClientContact(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.Placement findPlacement(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.JobSubmission findJobSubmission(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.JobOrder findJobOrder(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.Note findNote(java.lang.Integer id)
public com.bullhornsdk.data.model.entity.core.standard.PlacementChangeRequest findPlacementChangeRequest(java.lang.Integer id)
public java.util.List<com.bullhornsdk.data.model.entity.core.standard.PlacementCommission> getCommissions(java.lang.Integer placementID)
PlacementCommission for the passed in placementIDplacementID - PlacementCommissionpublic com.bullhornsdk.data.api.BullhornData getBullhornData()