public interface BullhornAPI
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() |
java.util.List<SubscriptionEvent> |
getSubscriptionEvents(int numberRequested,
java.lang.String subscriptionName)
Retreives 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)
Persist a list of AbstractDtos to Bullhorn
|
void |
setSession(java.lang.String session) |
java.util.List<SubscriptionEvent> getSubscriptionEvents(int numberRequested, java.lang.String subscriptionName)
numberRequested
- the number of events to pull off the queue each timesubscriptionName
- the name of the specific subscription<T extends AbstractDto> T findEntity(java.lang.String entityType, java.lang.Object id)
entityType
- id
- <T extends AbstractDto> void delete(T entity)
entity
- UserTypeDto findUserType(int id)
id
- the id of the user type<T extends AbstractDto> java.util.List<T> getQueryResults(java.lang.String entityType, DtoQuery dtoQuery)
entityType
- the bullhorn entity type, see ApiEntityNamedtoQuery
- a query<T extends AbstractDto> java.util.List<T> getDtosFromIds(java.lang.String entityType, java.util.List<java.lang.Object> ids)
entityType
- the entity type to returnids
- the list of entity idsApiQueryResult query(DtoQuery query)
ApiSaveResult save(AbstractDto entity)
entity
- the entity to persist<T extends AbstractDto> void saveDtos(java.util.List<T> dtoList)
dtoList
- the entities to persistApiService getService()
java.lang.String getSession()
void setSession(java.lang.String session)
int getCorporationID()
ApplicationSettings getAppSettings()
BullhornLogDAO getBullhornLogDAO()
java.lang.String getHostName()
java.lang.String assembleOpenWindowLink(java.lang.String hostName, ApiEntityName entity, java.lang.Integer id)
java.lang.String assembleOpenWindowLink(ApiEntityName entity, java.lang.Integer id)
entity
- id
-