Interface B2BReservationFacade
- All Known Implementing Classes:
DefaultB2BReservationFacade
public interface B2BReservationFacade
Interface for B2B Reservation Facade.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckDatesInterval(Date fromDate, Date toDate) Check if fromDate is before toDate.findReservations(SearchStateData searchState, PageableData pageableData, String unitCode, String email, Date fromDate, Date toDate, String costCenterUid, String currency) Deprecated.Deprecated since version 3.0.findReservations(SearchStateData searchState, PageableData pageableData, List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenterUid, String currency) Retrieves a certain number of reservation based on the parameter passed in the method.findTotal(String unitCode, String email, Date fromDate, Date toDate, String costCenter, String currencyIso) Deprecated.Deprecated since version 3.0.findTotal(List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenter, String currencyIso) Returns the total price for all the bookings matching the search parameters.retrieves the default unit for the current userbooleanvalidateUnit(String unitCode) Validate unit boolean.
-
Method Details
-
findReservations
@Deprecated SearchPageData<B2BReservationData> findReservations(SearchStateData searchState, PageableData pageableData, String unitCode, String email, Date fromDate, Date toDate, String costCenterUid, String currency) Deprecated.Deprecated since version 3.0. Please usefindReservations(SearchStateData, PageableData, List, String, Date, Date, String, String)Retrieves a certain number of reservation based on the parameter passed in the method. b2bUnitCode is mandatory, everything else can be passed as null- Parameters:
searchState- the search statepageableData- the pageableDataunitCode- the b2b unit codeemail- the emailfromDate- the from datetoDate- the to datecostCenterUid- the cost centercurrency- the currency- Returns:
- SearchPageData the search results
-
findReservations
SearchPageData<B2BReservationData> findReservations(SearchStateData searchState, PageableData pageableData, List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenterUid, String currency) Retrieves a certain number of reservation based on the parameter passed in the method. b2bUnitCode is mandatory, everything else can be passed as null- Parameters:
searchState- the search statepageableData- the pageableDataunitCodes- the b2b unit codeemail- the emailfromDate- the from datetoDate- the to datecostCenterUid- the cost centercurrency- the currency- Returns:
- SearchPageData the search results
-
checkDatesInterval
Check if fromDate is before toDate.- Parameters:
fromDate- the date to comparetoDate- the date to be compared with- Returns:
- true if fromDate is before toDate, false otherwise.
-
getDefaultUnit
String getDefaultUnit()retrieves the default unit for the current user- Returns:
- the default unit
-
validateUnit
Validate unit boolean.- Parameters:
unitCode- the unit code validates a certain unit against the current user to make sure he can access the related informations- Returns:
- the boolean
-
findTotal
@Deprecated PriceData findTotal(String unitCode, String email, Date fromDate, Date toDate, String costCenter, String currencyIso) Deprecated.Deprecated since version 3.0. Please usefindTotal(List, String, Date, Date, String, String)Returns the total price for all the bookings matching the search parameters. unitId is mandatory, everything else can be passed as null- Parameters:
unitCode- the b2b unit codeemail- the emailfromDate- the from datetoDate- the to datecostCenter- the cost centercurrencyIso- the currency iso code- Returns:
- SearchPageData the search results
-
findTotal
PriceData findTotal(List<String> unitCodes, String email, Date fromDate, Date toDate, String costCenter, String currencyIso) Returns the total price for all the bookings matching the search parameters. unitId is mandatory, everything else can be passed as null- Parameters:
unitCodes- the b2b unit codeemail- the emailfromDate- the from datetoDate- the to datecostCenter- the cost centercurrencyIso- the currency iso code- Returns:
- SearchPageData the search results
-