Interface AmmPdfConditions
- All Known Implementing Classes:
DefaultAmmPdfConditions
public interface AmmPdfConditions
-
Method Summary
Modifier and TypeMethodDescriptiongetRelevantProjectActivity(PersistenceService persistenceService, Entity caseEntity, org.joda.time.LocalDate startOfMonth, org.joda.time.LocalDate endOfMonth) Resolves the project activity of the given case - trys to get a project activity that is relevant for the current month (begin / end of project activity) - if multiple project activities are found, the first one (ordered by "begin") is returnedgetRelevantRegistration(PersistenceService persistenceService, Entity caseEntity, org.joda.time.LocalDate startOfMonth, org.joda.time.LocalDate endOfMonth) Resolves the registration of the given case resolves the first Reservation_registration of the selected month (ordered by date_from of Reservation) and returns the linked registration
-
Method Details
-
getRelevantRegistration
default Optional<Entity> getRelevantRegistration(PersistenceService persistenceService, Entity caseEntity, org.joda.time.LocalDate startOfMonth, org.joda.time.LocalDate endOfMonth) Resolves the registration of the given case resolves the first Reservation_registration of the selected month (ordered by date_from of Reservation) and returns the linked registration- Parameters:
caseEntity- the current casestartOfMonth- the first day of the month we are generating the report forendOfMonth- the last day of the month we are generating the report for- Returns:
- the resolved Registration (optional)
-
getRelevantProjectActivity
default Optional<Entity> getRelevantProjectActivity(PersistenceService persistenceService, Entity caseEntity, org.joda.time.LocalDate startOfMonth, org.joda.time.LocalDate endOfMonth) Resolves the project activity of the given case - trys to get a project activity that is relevant for the current month (begin / end of project activity) - if multiple project activities are found, the first one (ordered by "begin") is returned- Parameters:
caseEntity- the current casestartOfMonth- the first day of the month we are generating the report forendOfMonth- the last day of the month we are generating the report for- Returns:
- the resolved project activity (optional)
-