Package sk.iway.iwcm.headless.service
Class HeadlessNewsService
java.lang.Object
sk.iway.iwcm.headless.service.HeadlessNewsService
Service for headless news listing.
Translates HeadlessNewsRequest parameters to NewsQuery behavior,
preserving core NewsActionBean semantics for ordering, publish filtering,
group filtering, paging, and offset.
Returns DocDetails directly — no DTO projection — so all document
properties are available to the consumer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistNews(HeadlessNewsRequest request) Executes a headless news query based on the request parameters.static intnormalizePageSize(Integer pageSize)
-
Field Details
-
MAX_PAGE_SIZE
public static final int MAX_PAGE_SIZE- See Also:
-
-
Constructor Details
-
HeadlessNewsService
public HeadlessNewsService()
-
-
Method Details
-
listNews
Executes a headless news query based on the request parameters.- Parameters:
request- the news request parameters- Returns:
- paginated response with news items
-
normalizePageSize
-