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 BullhornAPI
numberRequested
- 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)
BullhornAPI
findEntity
in interface BullhornAPI
public <T extends AbstractDto> void delete(T entity)
BullhornAPI
delete
in interface BullhornAPI
public UserTypeDto findUserType(int id)
BullhornAPI
findUserType
in interface BullhornAPI
id
- the id of the user typepublic <T extends AbstractDto> java.util.List<T> getQueryResults(java.lang.String entityType, DtoQuery dtoQuery)
getQueryResults
in interface BullhornAPI
entityType
- 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)
BullhornAPI
getDtosFromIds
in interface BullhornAPI
entityType
- the entity type to returnids
- the list of entity idspublic ApiQueryResult query(DtoQuery query)
query
in interface BullhornAPI
public ApiSaveResult save(AbstractDto entity)
save
in interface BullhornAPI
entity
- the entity to persistpublic <T extends AbstractDto> void saveDtos(java.util.List<T> dtoList)
saveDtos
in interface BullhornAPI
dtoList
- public ApiService getService()
getService
in interface BullhornAPI
public java.lang.String getSession()
getSession
in interface BullhornAPI
public void setSession(java.lang.String session)
setSession
in interface BullhornAPI
public int getCorporationID()
getCorporationID
in interface BullhornAPI
public ApplicationSettings getAppSettings()
getAppSettings
in interface BullhornAPI
public BullhornLogDAO getBullhornLogDAO()
getBullhornLogDAO
in interface BullhornAPI
public java.lang.String getHostName()
getHostName
in interface BullhornAPI
public java.lang.String assembleOpenWindowLink(java.lang.String hostName, ApiEntityName entity, java.lang.Integer id)
assembleOpenWindowLink
in interface BullhornAPI
public java.lang.String assembleOpenWindowLink(ApiEntityName entity, java.lang.Integer id)
BullhornAPI
assembleOpenWindowLink
in interface BullhornAPI