Klasse ParcelOfferService
java.lang.Object
de.delinkedde.areashopreborn.application.ParcelOfferService
Coordinates persistent listing preparation with sale and rental publication services.
Prepared values survive restarts but are not financial journals. Publication always performs the authoritative state and permission checks again before creating an active listing.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungParcelOfferService(Database database, EstateRepository estates, ParcelOfferSettingsRepository settings, EstateApplicationService sales, RentalService rentals, BigDecimal minimumPrice, BigDecimal maximumPrice, int defaultMaximumRentalPeriods) Creates the parcel offer preparation service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungpublishRental(UUID actorId, String regionName) Publishes a rental listing using its prepared price and duration.publishSale(UUID actorId, String regionName) Publishes a managed draft using its prepared initial-sale price.setRentalPeriod(UUID actorId, String regionName, Duration period) Stores a billable rental duration for a managed draft parcel.setRentalPrice(UUID actorId, String regionName, BigDecimal price) Stores the price per period for a managed draft parcel.setSalePrice(UUID actorId, String regionName, BigDecimal price) Stores an initial-sale price for a managed draft parcel.
-
Konstruktordetails
-
ParcelOfferService
public ParcelOfferService(Database database, EstateRepository estates, ParcelOfferSettingsRepository settings, EstateApplicationService sales, RentalService rentals, BigDecimal minimumPrice, BigDecimal maximumPrice, int defaultMaximumRentalPeriods) Creates the parcel offer preparation service.- Parameter:
database- asynchronous database executorestates- estate repositorysettings- prepared-value repositorysales- initial-sale publisherrentals- rental publisherminimumPrice- inclusive minimum pricemaximumPrice- inclusive maximum pricedefaultMaximumRentalPeriods- default contract period limit
-
-
Methodendetails
-
setSalePrice
Stores an initial-sale price for a managed draft parcel.- Parameter:
actorId- landlord or delegated managerregionName- parcel nameprice- prepared sale price- Gibt zurück:
- completion future
-
publishSale
Publishes a managed draft using its prepared initial-sale price.- Parameter:
actorId- landlord or delegated managerregionName- parcel name- Gibt zurück:
- future containing the listing
-
setRentalPrice
Stores the price per period for a managed draft parcel.- Parameter:
actorId- landlord or delegated managerregionName- parcel nameprice- price per period- Gibt zurück:
- completion future
-
setRentalPeriod
Stores a billable rental duration for a managed draft parcel.- Parameter:
actorId- landlord or delegated managerregionName- parcel nameperiod- billable period- Gibt zurück:
- completion future
-
publishRental
Publishes a rental listing using its prepared price and duration.- Parameter:
actorId- landlord or delegated managerregionName- parcel name- Gibt zurück:
- future containing the rental listing
-