Class PackageBaseController

java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlinepackagesocc.controllers.PackageBaseController
Direct Known Subclasses:
PackageCartsController, PackageSearchController

public class PackageBaseController extends AirlineBaseController
Base controller for packages. It defines the common methods to be used by all package controllers.
  • Constructor Details

    • PackageBaseController

      public PackageBaseController()
  • Method Details

    • createPackageSearchRequestData

      protected PackageSearchRequestData createPackageSearchRequestData(PackageSearchRequest packageSearchRequest)
      Creates package search request data.
      Parameters:
      packageSearchRequest - the package search request
      Returns:
      package search request data
    • createCriterionData

      protected CriterionData createCriterionData(PackageSearchRequest packageSearchRequest)
      Creates criterion data.
      Parameters:
      packageSearchRequest - the package search request
      Returns:
      the criterion data
    • populatePaginationDate

      protected PaginationWsDTO populatePaginationDate(Integer currentPage, Integer pageSize, Integer currentPageSize, Integer totalCount)
      Populates pagination data.
      Parameters:
      currentPage - the current page
      pageSize - the page size
      currentPageSize - the current page size
      totalCount - the total count
      Returns:
      the pagination data
    • getPaginateProperties

      protected List<PropertyData> getPaginateProperties(List<PropertyData> searchResponseProperties, Integer currentPage, Integer pageSize)
      Paginates response properties with the currentPage and pageSize.
      Parameters:
      searchResponseProperties - the search response properties
      currentPage - the current page
      pageSize - the page size
      Returns:
      the paginated properties
    • getPackageSolutions

      protected List<PackageSolution> getPackageSolutions(List<PropertyData> paginatedProperties, FlightSearchResponseData flightSearchResponseData)
      Gets a list of package solutions.
      Parameters:
      paginatedProperties - the paginated properties
      flightSearchResponseData - the flight search response data
      Returns:
      the package solutions
    • createPackageSolution

      protected PackageSolution createPackageSolution(String accommodationOfferingCode, List<Integer> solutions)
      Creates package solution.
      Parameters:
      accommodationOfferingCode - the accommodation offering code
      solutions - the solutions
      Returns:
      the package solution
    • createAddPackageRequestData

      protected AddPackageRequestData createAddPackageRequestData(AddSolutionRequestData addSolutionRequestData, AddRoomStayData addRoomStayData)
      Creates add package to cart request data.
      Parameters:
      addSolutionRequestData - the add solution request data
      addRoomStayData - the add room stay data
      Returns:
      the add package request data
    • getLocationFacade

      protected TravelLocationFacade getLocationFacade()
      Gets location facade.
      Returns:
      the location facade
    • getAccommodationHelper

      protected AccommodationHelper getAccommodationHelper()
      Gets accommodation helper.
      Returns:
      the accommodation helper