Interface RoomPreferenceService
- All Known Implementing Classes:
DefaultRoomPreferenceService
public interface RoomPreferenceService
RoomPreference Service interface which provides functionality to manage Room Preferences.
-
Method Summary
Modifier and TypeMethodDescriptiongetRoomPreferences(String roomPreferenceType) Fetches the room preferences for the accommodation based on the roomPreferenceType.getRoomPreferences(List<String> roomPreferenceCode) Fetches the room preferences for the accommodation based on the roomPreferenceCode.getRoomPreferencesByCode(List<String> roomPreferenceCodes) Fetches the room preferences for the accommodation based on the roomPreferenceCode.getRoomPreferencesForTypeAndAccommodation(String roomPreferenceType, List<String> roomTypeCodes) Returns the list of room preference of type roomPreferenceType for the given list of roomTypeCodessaveRoomPreference(int roomStayRefNum, List<String> roomPreferenceCodes) Saves roomPreference against AccommodationOrderEntryGroup for the roomStayRefNum.
-
Method Details
-
getRoomPreferences
Fetches the room preferences for the accommodation based on the roomPreferenceType.- Parameters:
roomPreferenceType- the room preference type- Returns:
- roomPreferences list of RoomPreferenceModel
-
getRoomPreferences
Fetches the room preferences for the accommodation based on the roomPreferenceCode.- Parameters:
roomPreferenceCode- list of String- Returns:
- roomPreferences list of RoomPreferenceModel
-
saveRoomPreference
Saves roomPreference against AccommodationOrderEntryGroup for the roomStayRefNum.- Parameters:
roomStayRefNum- the room stay ref numroomPreferenceCodes- the roomPreferenceCodes- Returns:
- boolean
-
getRoomPreferencesForTypeAndAccommodation
List<RoomPreferenceModel> getRoomPreferencesForTypeAndAccommodation(String roomPreferenceType, List<String> roomTypeCodes) Returns the list of room preference of type roomPreferenceType for the given list of roomTypeCodes- Parameters:
roomPreferenceType- the room preference typeroomTypeCodes- the list of room type codes- Returns:
- the list of room preferences
-
getRoomPreferencesByCode
Fetches the room preferences for the accommodation based on the roomPreferenceCode.- Parameters:
roomPreferenceCodes- list of String- Returns:
- roomPreferences list of RoomPreferenceModel
-