public class BullhornAPISoap extends java.lang.Object implements BullhornAPI
| Constructor and Description |
|---|
BullhornAPISoap(ApplicationSettings appSettings,
BullhornLogDAO bullhornLogDAO) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
assembleOpenWindowLink(ApiEntityName entity,
java.lang.Integer id)
Returns a full open window link to the ApiEntityName with the passed in id.
|
java.lang.String |
assembleOpenWindowLink(java.lang.String hostName,
ApiEntityName entity,
java.lang.Integer id) |
<T extends AbstractDto> |
delete(T entity)
Deletes an entity
|
<T extends AbstractDto> |
findEntity(java.lang.String entityType,
java.lang.Object id)
Finds an entity of type entityType with the passed in id
|
UserTypeDto |
findUserType(int id)
Finds the user type of a Corporate User using the id of the user type
|
ApplicationSettings |
getAppSettings() |
BullhornLogDAO |
getBullhornLogDAO() |
int |
getCorporationID() |
<T extends AbstractDto> |
getDtosFromIds(java.lang.String entityType,
java.util.List<java.lang.Object> ids)
Returns a List
|
java.lang.String |
getHostName() |
<T extends AbstractDto> |
getQueryResults(java.lang.String entityType,
DtoQuery dtoQuery)
Takes a dto query and an entity type and returns the result in List
|
ApiService |
getService() |
java.lang.String |
getSession()
Checks is session is older than 4 minutes, if so it creates session again
|
java.util.List<SubscriptionEvent> |
getSubscriptionEvents(int numberRequested,
java.lang.String subscriptionName)
Retrieves a list of SubscriptionEvents based on the subscription name passed in.
|
ApiQueryResult |
query(DtoQuery query) |
ApiSaveResult |
save(AbstractDto entity)
Persist an entity to Bullhorn
|
<T extends AbstractDto> |
saveDtos(java.util.List<T> dtoList)
Persists a list of AbstractDtos to Bullhorn
|
void |
setSession(java.lang.String session)
Updates the session, and updates the sessionLastUpdated flag.
|
public BullhornAPISoap(ApplicationSettings appSettings, BullhornLogDAO bullhornLogDAO)
public java.util.List<SubscriptionEvent> getSubscriptionEvents(int numberRequested, java.lang.String subscriptionName)
getSubscriptionEvents in interface BullhornAPInumberRequested - the number of events to pull off the queue each timesubscriptionName - the name of the specific subscriptionpublic <T extends AbstractDto> T findEntity(java.lang.String entityType, java.lang.Object id)
BullhornAPIfindEntity in interface BullhornAPIpublic <T extends AbstractDto> void delete(T entity)
BullhornAPIdelete in interface BullhornAPIpublic UserTypeDto findUserType(int id)
BullhornAPIfindUserType in interface BullhornAPIid - the id of the user typepublic <T extends AbstractDto> java.util.List<T> getQueryResults(java.lang.String entityType, DtoQuery dtoQuery)
getQueryResults in interface BullhornAPIentityType - the bullhorn entity type, see ApiEntityNamedtoQuery - a querypublic <T extends AbstractDto> java.util.List<T> getDtosFromIds(java.lang.String entityType, java.util.List<java.lang.Object> ids)
BullhornAPIgetDtosFromIds in interface BullhornAPIentityType - the entity type to returnids - the list of entity idspublic ApiQueryResult query(DtoQuery query)
query in interface BullhornAPIpublic ApiSaveResult save(AbstractDto entity)
save in interface BullhornAPIentity - the entity to persistpublic <T extends AbstractDto> void saveDtos(java.util.List<T> dtoList)
saveDtos in interface BullhornAPIdtoList - public ApiService getService()
getService in interface BullhornAPIpublic java.lang.String getSession()
getSession in interface BullhornAPIpublic void setSession(java.lang.String session)
setSession in interface BullhornAPIpublic int getCorporationID()
getCorporationID in interface BullhornAPIpublic ApplicationSettings getAppSettings()
getAppSettings in interface BullhornAPIpublic BullhornLogDAO getBullhornLogDAO()
getBullhornLogDAO in interface BullhornAPIpublic java.lang.String getHostName()
getHostName in interface BullhornAPIpublic java.lang.String assembleOpenWindowLink(java.lang.String hostName,
ApiEntityName entity,
java.lang.Integer id)
assembleOpenWindowLink in interface BullhornAPIpublic java.lang.String assembleOpenWindowLink(ApiEntityName entity, java.lang.Integer id)
BullhornAPIassembleOpenWindowLink in interface BullhornAPI