public class EmsClient
extends org.springframework.ws.client.core.support.WebServiceGatewaySupport
| Constructor and Description |
|---|
EmsClient(String login,
String password,
org.springframework.ws.client.core.WebServiceTemplate template)
EmsClient Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
addBooking(int reservationID,
int roomID,
Date bookingDate,
Date startTime,
Date endTime,
String eventName,
int statusID)
Adds a booking to a Reservation in EMS
|
ReservationAddResult |
addReservation(int groupID,
int roomID,
Date bookingDate,
Date startTime,
Date endTime,
String eventName,
int statusID)
Creates a Reservation in EMS
|
Integer |
addUDF(int parentLevelID,
int parentID,
int udfDefID,
String udfValue)
Add a user defined field to a reservation or booking
parentLevelID is 0 for reservation, 1 for booking
|
List<BookingDetail> |
getAllBookings(Date startDate,
Date endDate,
int buildingID,
boolean viewComboRoomComponents)
Get all bookings for a building for the specified date range.
|
List<BookingDetail> |
getAllBookings2(Date startDate,
Date endDate,
int buildingID,
boolean viewComboRoomComponents,
int udfDefID,
String udfValue)
Get all bookings for the specified date range and buillding.
|
List<EMSRoomComponent> |
getAllComboRoomComponents()
Get all combo room components
|
List<BookingDetail> |
getAllRoomBookings(Date startDate,
Date endDate,
int roomID,
boolean viewComboRoomComponents)
Search for all bookings in the specified room
|
List<EMSRoom> |
getAllRooms(int buildingID)
Get all rooms for the specified building.
|
APIVersion |
getApiVersion()
Return the version of the API running on the server
|
List<EMSArea> |
getAreas(int areaID)
Get the area details about the specified area.
|
BookingDetail |
getBooking(int bookingID)
Get the details for the specified booking ID
|
List<BookingDetail> |
getBookings(Date startDate,
Date endDate,
List<Integer> buildings,
List<Integer> statuses,
List<Integer> eventTypes,
List<Integer> groupTypes,
boolean viewComboRoomComponents)
Returns a list of bookings based on the filters provided
If a specific filter that is optional and not needed to be filtered
on, send a null parameter in.
|
List<BookingDetail> |
getBookings2(int reservationID,
Date startDate,
Date endDate,
List<Integer> buildings,
List<Integer> statusTypes,
List<Integer> eventTypes,
List<Integer> groupTypes,
boolean viewComboRoomComponents)
Returns a list of bookings based on filters provided and Reservation ID
|
List<BuildingHoliday> |
getBuildingHolidays(List<Integer> buildings,
Date requestDate)
Returns a list of holidays for a specific date
|
List<EMSBuildingHours> |
getBuildingHours(List<Integer> buildings,
Date requestDate)
Returns a list of building hours for a specific date
|
List<Building> |
getBuildings()
Returns a list of buildings
|
List<EMSCategory> |
getCategories(int buildingID)
This API retrieves EMS category information.
|
List<EMSCategoryState> |
getCategoryStates(int categoryID)
This API retrieves EMS category state information.
|
List<BookingDetail> |
getChangedBookings(Date startDate,
Date endDate,
List<Integer> rooms,
List<Integer> statuses,
List<Integer> eventTypes,
List<Integer> groupTypes,
boolean viewComboRoomComponents)
This call will return bookings that have been changed between the specified
start/end dates (date changed field search) and the other filters provided.
|
List<EMSRoomComponent> |
getComboRoomComponents(int roomid)
Returns component room details for a specific combo room
|
List<EMSCommentType> |
getCommentTypes()
Returns a list of comment types
|
List<EMSContactDetail> |
getContactDetails(int contactID)
Returns details for a specific Contact
|
List<EMSContact> |
getContacts(int groupID)
Returns Contact list for a Group
|
List<EMSEventType> |
getEventTypes()
Returns a list of event types
|
List<EMSFeature> |
getFeatures(int buildingID)
Returns a list of Features
|
List<BookingDetail> |
getGroupBookings(Date startDate,
Date endDate,
int groupID,
List<Integer> statuses,
List<Integer> statusTypes,
boolean viewComboRoomComponents)
Returns a list of bookings for a group based on filters provided
|
List<EMSGroupDetail> |
getGroupDetails(int groupID)
Returns details for a specific Group
|
List<EMSGroup> |
getGroups(String nameFilter,
String emailFilter)
Returns a list of groups
|
List<EMSGroupType> |
getGroupTypes()
Returns a list of group types
|
List<EMSPricingMethod> |
getPricingMethods()
This API returns active pricing methods to use with Service Order Detail API calls.
|
List<EMSComment> |
getReservationComments(int reservationID)
Returns Comments list for a Reservation
|
List<EMSReservationSource> |
getReservationSources()
Returns a list of Reservation Sources
|
List<EMSResource> |
getResources(int categoryID)
This API returns active resource information for the category entered.
|
boolean |
getRoomAvailability(int roomID,
Date bookingDate,
Date startTime,
Date endTime)
Returns whether a room is available or not
|
List<BookingDetail> |
getRoomBookings(Date startDate,
Date endDate,
int roomID,
List<Integer> statuses,
List<Integer> eventTypes,
List<Integer> groupTypes,
boolean viewComboRoomComponents)
Returns a list of bookings for a specific room based on filters provided
|
EMSRoomDetail |
getRoomDetails(int roomID)
Returns details for a specific room
|
List<EMSRoom> |
getRooms(List<Integer> buildings)
Returns list of rooms for multiple buildings
|
List<EMSSetupType> |
getSetupTypes()
Returns a list of event types
|
List<EMSStatus> |
getStatuses()
Returns a list of statuses
|
List<UDFDefinition> |
getUDFDefinitions()
Returns a list of User Defined Field Definitions
|
List<EMSMessage> |
updateBooking(int bookingID,
Date bookingDate,
Date startTime,
Date endTime,
int statusID,
int roomID)
Updates a single Booking in EMS
|
List<EMSMessage> |
updateBooking2(int bookingID,
Date bookingDate,
Date startTime,
Date endTime,
int statusID,
int roomID,
String eventName)
Updates a single Booking in EMS, includes event name
|
List<EMSMessage> |
updateReservation(int reservationID,
int bookingID,
int webUserID,
int webTemplateID,
int reservationSourceID,
String billingReference)
Updates a single Reservation in EMS
|
afterPropertiesSet, getDefaultUri, getDestinationProvider, getInterceptors, getMarshaller, getMessageFactory, getMessageSenders, getUnmarshaller, getWebServiceTemplate, initGateway, setDefaultUri, setDestinationProvider, setInterceptors, setMarshaller, setMessageFactory, setMessageSender, setMessageSenders, setUnmarshaller, setWebServiceTemplatepublic EmsClient(String login, String password, org.springframework.ws.client.core.WebServiceTemplate template)
login - The login name to use for request to the EMS Serverpassword - The password for the EMS accounttemplate - The web Service Template for the service to usepublic Integer addBooking(int reservationID, int roomID, Date bookingDate, Date startTime, Date endTime, String eventName, int statusID) throws EmsException
reservationID - The reservation ID to add the booking toroomID - The Room ID for the bookingbookingDate - The booking date (time values must be zero)startTime - The start time for the bookingendTime - The end time for the bookingeventName - The name of the eventstatusID - The status ID for the eventEmsException - Thrown on errorpublic ReservationAddResult addReservation(int groupID, int roomID, Date bookingDate, Date startTime, Date endTime, String eventName, int statusID) throws EmsException
groupID - The ID for the grouproomID - The room ID for the first bookingbookingDate - The date of the first bookingstartTime - The start time of the first bookingendTime - The end time of the first bookingeventName - The name of the eventstatusID - The status ID for the eventReservationAddResult containing the Rerservation ID and Booking IDEmsException - Thrown on exceptionpublic Integer addUDF(int parentLevelID, int parentID, int udfDefID, String udfValue) throws EmsException
parentLevelID - 0 for reservation, 1 for bookingparentID - The ID of the reservation or bookingudfDefID - The ID of the UDF TypeudfValue - The value for the UDFEmsException - Thrown on errorpublic List<BookingDetail> getAllBookings(Date startDate, Date endDate, int buildingID, boolean viewComboRoomComponents) throws EmsException
startDate - The Start Date to get bookings forendDate - The end date to get bookings for (single day, use same as start date)buildingID - The ID of the building to get bookings for. Send -1 for all buildingsviewComboRoomComponents - Should combo room components be returnedList of BookingDetailEmsException - Thrown on errorpublic List<BookingDetail> getAllBookings2(Date startDate, Date endDate, int buildingID, boolean viewComboRoomComponents, int udfDefID, String udfValue) throws EmsException
startDate - The first date to return bookings forendDate - The last date to return bookings forbuildingID - The ID of the building to get bookings for, use -1 for all buildingsviewComboRoomComponents - Should combo room compontents be includedudfDefID - The ID of the UDF Type to filter onudfValue - The value of the UDF to filter onList of BookingDetailEmsException - Thrown on errorpublic List<EMSRoomComponent> getAllComboRoomComponents() throws EmsException
List of EMSRoomComponentEmsException - Thrown on errorpublic List<BookingDetail> getAllRoomBookings(Date startDate, Date endDate, int roomID, boolean viewComboRoomComponents) throws EmsException
startDate - The first date to get bookings forendDate - The last date to get bookings forroomID - The ID of the room to get bookings forviewComboRoomComponents - Should combo room components be includedList of BookingDetailEmsException - Thrown on errorpublic List<EMSRoom> getAllRooms(int buildingID) throws EmsException
buildingID - The Building ID to get rooms for, -1 for all buildingsList of EMSRoomEmsException - Thrown on errorpublic APIVersion getApiVersion() throws EmsException
APIVersionEmsException - Thrown on errorpublic List<EMSArea> getAreas(int areaID) throws EmsException
areaID - The ID of the area to get information about, -1 to return all areasList of EMSAreaEmsException - Thrown on errorpublic BookingDetail getBooking(int bookingID) throws EmsException
bookingID - The ID of the booking to get details forBookingDetailEmsException - Thrown on errorpublic List<BookingDetail> getBookings(Date startDate, Date endDate, List<Integer> buildings, List<Integer> statuses, List<Integer> eventTypes, List<Integer> groupTypes, boolean viewComboRoomComponents) throws EmsException
startDate - The first date to search fromendDate - The last date to search frombuildings - (optional) The list of buildings to searchstatuses - (optional) The list of status types to searcheventTypes - (optional) The list of event types to searchgroupTypes - (optional) The list of group types to searchviewComboRoomComponents - Should combo room components be returnedList of BookingDetailEmsException - Thrown on errorpublic List<BookingDetail> getBookings2(int reservationID, Date startDate, Date endDate, List<Integer> buildings, List<Integer> statusTypes, List<Integer> eventTypes, List<Integer> groupTypes, boolean viewComboRoomComponents) throws EmsException
reservationID - the reservation ID to get bookings forstartDate - The first date to return bookings forendDate - The last date to return bookings forbuildings - (optional) A list of buildings to get bookings forstatusTypes - (optional) A list of status types to get bookings foreventTypes - (optional) A list of event types to get bookings forgroupTypes - (optional) A List of group types to get bookings forviewComboRoomComponents - View combo room componentsList of BookingDetailEmsException - Thrown on errorpublic List<BuildingHoliday> getBuildingHolidays(List<Integer> buildings, Date requestDate) throws EmsException
buildings - The lsit of buildings to get holiday info forrequestDate - The date to get holiday info forList of BuildingHolidayEmsException - Thrown on errorpublic List<EMSBuildingHours> getBuildingHours(List<Integer> buildings, Date requestDate) throws EmsException
buildings - (optional) A list of buildings to get hours forrequestDate - The date to get building hours forList of EMSBuildingHoursEmsException - Thrown on errorpublic List<Building> getBuildings() throws EmsException
BuildingEmsException - Thrown on errorpublic List<EMSCategory> getCategories(int buildingID) throws EmsException
buildingID - The ID of the building to get categories forList of EMSCategoryEmsException - Thrown on errorpublic List<EMSCategoryState> getCategoryStates(int categoryID) throws EmsException
categoryID - The ID of the category to get states forList of EMSCategoryStateEmsException - Thrown on errorpublic List<BookingDetail> getChangedBookings(Date startDate, Date endDate, List<Integer> rooms, List<Integer> statuses, List<Integer> eventTypes, List<Integer> groupTypes, boolean viewComboRoomComponents) throws EmsException
startDate - The starting date to searchendDate - The ending date to searchrooms - (optional) the list of rooms to searchstatuses - (optional) the list of status types to searcheventTypes - (optional) the list of event types to searchgroupTypes - (optional) the list of group types to searchviewComboRoomComponents - return combo room componentsList of BookingDetailEmsException - Thrown on errorpublic List<EMSRoomComponent> getComboRoomComponents(int roomid) throws EmsException
roomid - The ID of the room to get components forList of EMSRoomComponentEmsException - Thrown on errorpublic List<EMSCommentType> getCommentTypes() throws EmsException
List of EMSCommentTypeEmsException - Thrown on errorpublic List<EMSContactDetail> getContactDetails(int contactID) throws EmsException
contactID - The ID of the contact to get details forList of EMSContactDetailEmsException - Thrown on errorpublic List<EMSContact> getContacts(int groupID) throws EmsException
groupID - The ID of the group to get contacts forList of EMSContactEmsException - Thrown on errorpublic List<EMSEventType> getEventTypes() throws EmsException
List of EMSEventTypeEmsException - Thrown on errorpublic List<EMSFeature> getFeatures(int buildingID) throws EmsException
buildingID - The ID of the building to get features for, -1 for all buildingsList of EMSFeatureEmsException - Thrown on errorpublic List<BookingDetail> getGroupBookings(Date startDate, Date endDate, int groupID, List<Integer> statuses, List<Integer> statusTypes, boolean viewComboRoomComponents) throws EmsException
startDate - The date to start getting bookings forendDate - The last date to return bookings forgroupID - The ID of the group to get bookings forstatuses - (optional) The list of statuses to get bookings forstatusTypes - (optional) The list of status types to get bookings forviewComboRoomComponents - Return combo room componentsList of BookingDetailEmsException - Thrown on errorpublic List<EMSGroupDetail> getGroupDetails(int groupID) throws EmsException
groupID - The ID of the group to get details forList of EMSGroupDetailEmsException - Thrown on errorpublic List<EMSGroup> getGroups(String nameFilter, String emailFilter) throws EmsException
nameFilter - A name filter to useemailFilter - An email filter to useList of EMSGroupEmsException - Thrown on errorpublic List<EMSGroupType> getGroupTypes() throws EmsException
List of EMSGroupTypeEmsException - Thrown on errorpublic List<EMSPricingMethod> getPricingMethods() throws EmsException
List of EMSPricingMethodEmsException - Thrown on errorpublic List<EMSComment> getReservationComments(int reservationID) throws EmsException
reservationID - The ID of the reservation to get comments forList of EMSCommentEmsException - Thrown on errorpublic List<EMSReservationSource> getReservationSources() throws EmsException
List of EMSReservationSourceEmsException - Thrown on errorpublic List<EMSResource> getResources(int categoryID) throws EmsException
categoryID - The ID of the category to get resources forList of EMSResourceEmsException - Thrown on errorpublic boolean getRoomAvailability(int roomID,
Date bookingDate,
Date startTime,
Date endTime)
throws EmsException
roomID - The ID of the room to checkbookingDate - The date of the bookingstartTime - The start time of the bookingendTime - The end time of the bookingEmsException - Thrown on errorpublic List<BookingDetail> getRoomBookings(Date startDate, Date endDate, int roomID, List<Integer> statuses, List<Integer> eventTypes, List<Integer> groupTypes, boolean viewComboRoomComponents) throws EmsException
startDate - The first date to get bookings forendDate - The last date to get bookings forroomID - The ID of the room to get bookings forstatuses - (optional) The list of statuses to geteventTypes - (optional) The list of event types to getgroupTypes - (optional) The list of groups to getviewComboRoomComponents - Return combo room componentsList of BookingDetailEmsException - Thrown on errorpublic EMSRoomDetail getRoomDetails(int roomID) throws EmsException
roomID - The ID of the room to get details forEMSRoomDetailEmsException - Thrown on errorpublic List<EMSRoom> getRooms(List<Integer> buildings) throws EmsException
buildings - (optional) The list of buildings to get rooms forList of EMSRoomEmsException - Thrown on errorpublic List<EMSSetupType> getSetupTypes() throws EmsException
List of EMSSetupTypeEmsException - Thrown on errorpublic List<EMSStatus> getStatuses() throws EmsException
List of EMSStatusEmsException - Thrown on errorpublic List<UDFDefinition> getUDFDefinitions() throws EmsException
List of UDFDefinitionEmsException - Thrown on errorpublic List<EMSMessage> updateBooking(int bookingID, Date bookingDate, Date startTime, Date endTime, int statusID, int roomID) throws EmsException
bookingID - The ID of the booking to updatebookingDate - The date for the bookingstartTime - The start time of the eventendTime - The end time of the eventstatusID - The status for the eventroomID - The room for the bookingEMSMessageEmsException - Thrown on errorpublic List<EMSMessage> updateBooking2(int bookingID, Date bookingDate, Date startTime, Date endTime, int statusID, int roomID, String eventName) throws EmsException
bookingID - The ID of the booking to updatebookingDate - The date for the bookingstartTime - The start time of the bookingendTime - The end time of the bookingstatusID - The status of the bookingroomID - The ID for the room of the bookingeventName - The name for the eventEMSMessageEmsException - Thrown on errorpublic List<EMSMessage> updateReservation(int reservationID, int bookingID, int webUserID, int webTemplateID, int reservationSourceID, String billingReference) throws EmsException
reservationID - The ID of the reservation to update, use -1 to update bookingbookingID - The ID of the booking, use -1 to update reservationwebUserID - The ID of the web user, 0=none, -1=no changewebTemplateID - The ID of the web template, 0=none, -1=no changereservationSourceID - The ID of the reservation source 0=none, -1=no changebillingReference - The billing reference for the bookingList of EMSMessageEmsException - Thrown on errorCopyright © 2017 University of Wisconsin-Madison, Computer-Aided Engineering Center. All Rights Reserved.